[TOMCAT6.0] 기동에러_WebappClassLoader.loadClass 로드 못하는 에러

Posted by yvette.theomom's blog
2011. 9. 2. 14:46 개발/021_에러노트
반응형

TOMCAT 서버를 기동시킬때 아래 에러 발생

Error configuring application listener of class org.springframework.web.context.ContextLoaderListener

==> 이유: 생성한 프로젝트에 spring.jar 파일이 없기 때문인듯함.

참고URL:
http://www.mkyong.com/spring/spring-error-classnotfoundexception-org-springframework-web-context-contextloaderlistener/
에서 요부분 참조
4. Include the Spring jar file here , it may also required common log jar due to Spring dependency.

===============================================================================
두번째 방법: 
updated.2014.01.09

기본적으로 전자정부프레임워크와 Maven 으로 환경설정 되어진 프로젝트에서
was로 tomcat 을 구동하려 할때, 
모든 설정을 정확히 한것 같은데도 tomcat 이 정상적으로 시작되지 못하는 에러 발생.

에러메시지:


심각: Error configuring application listener of class org.springframework.web.context.ContextLoaderListener
java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1645)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1491)



는 이런류이다...

이 경우 java build 환경에서 maven dependency 를 잡아주면 해결된다.

참고 URL: http://dochi575.egloos.com/4691074
<발췌: http://dochi575.egloos.com/4691074>
프로젝트 >> properties >> Deployment Assembly를 선택한 후,
"Add" >> Java Build Path Entries >> Maven Dependencies 선택한 후, "Apply"를 해준다.

톰캣 재시작하면 서버가 정상적으로 실행된다.

메이븐 메뉴에서 "Update Project Configuration"를 실행하는 경우,
해당 정보가 삭제되므로 다시 등록해주면 된다.