ECLIPSE-TOMCAT-org.springframework.web.context.ContextLoaderListener

Posted by yvette.theomom's blog
2014. 1. 27. 16:05 개발/021_에러노트

2014.01.27 Yvette



Eclipse-Tomcat Server 구동시 아래와 같은 에러

 

2014. 1. 27 오후 3:52:02 org.apache.catalina.core.AprLifecycleListener init

정보: Loaded APR based Apache Tomcat Native library 1.1.20.

2014. 1. 27 오후 3:52:02 org.apache.catalina.core.AprLifecycleListener init

정보: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].

2014. 1. 27 오후 3:52:02 org.apache.tomcat.util.digester.SetPropertiesRule begin

경고: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:lpsms' did not find a matching property.

2014. 1. 27 오후 3:52:03 org.apache.coyote.http11.Http11AprProtocol init

정보: Initializing Coyote HTTP/1.1 on http-8090

2014. 1. 27 오후 3:52:03 org.apache.coyote.ajp.AjpAprProtocol init

정보: Initializing Coyote AJP/1.3 on ajp-8009

2014. 1. 27 오후 3:52:03 org.apache.catalina.startup.Catalina load

정보: Initialization processed in 785 ms

2014. 1. 27 오후 3:52:03 org.apache.catalina.core.StandardService start

정보: Starting service Catalina

2014. 1. 27 오후 3:52:03 org.apache.catalina.core.StandardEngine start

정보: Starting Servlet Engine: Apache Tomcat/6.0.29

2014. 1. 27 오후 3:52:03 org.apache.catalina.core.StandardContext listenerStart

심각: 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)

at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4078)

at org.apache.catalina.core.StandardContext.start(StandardContext.java:4630)

at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)

at org.apache.catalina.core.StandardHost.start(StandardHost.java:785)

at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)

at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:445)

at org.apache.catalina.core.StandardService.start(StandardService.java:519)

at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)

at org.apache.catalina.startup.Catalina.start(Catalina.java:581)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:592)

at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)

at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)

2014. 1. 27 오후 3:52:03 org.apache.catalina.core.StandardContext listenerStart

심각: Skipped installing application listeners due to previous error(s)

2014. 1. 27 오후 3:52:03 org.apache.catalina.core.StandardContext start

심각: Error listenerStart

2014. 1. 27 오후 3:52:03 org.apache.catalina.core.StandardContext start

심각: Context [/lpsms] startup failed due to previous errors


해결 Guide URL ==> 

http://stackoverflow.com/questions/6210757/java-lang-classnotfoundexception-org-springframework-web-context-contextloaderl


 

203down voteaccepted

I had a similar problem when running a spring web application in an Eclipse managed tomcat. I solved this problem by adding maven dependencies in the project's web deployment assembly.

  1. Open the project's properties (e.g., right-click on the project's name in the project explorer and select "Properties").
  2. Select "Deployment Assembly".
  3. Click the "Add..." button on the right margin.
  4. Select "Java Build Path Entries" from the menu of Directive Type and click "Next".
  5. Select "Maven Dependencies" from the Java Build Path Entries menu and click "Finish".

You should see "Maven Dependencies" added to the Web Deployment Assembly definition.

share|improve this answer