Error configuring application listener of class org.springframework.web.context.
在整合Struts2+Hibernate.Spring的时候,启动tomcat报如下错误:
?
2011-10-5 17:46:58 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:1387)
?at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)
?at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3877)
?at org.apache.catalina.core.StandardContext.start(StandardContext.java:4429)
?at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
?at org.apache.catalina.core.StandardHost.start(StandardHost.java:722)
?at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
?at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
?at org.apache.catalina.core.StandardService.start(StandardService.java:516)
?at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
?at org.apache.catalina.startup.Catalina.start(Catalina.java:583)
?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:288)
?at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
2011-10-5 17:46:58 org.apache.catalina.core.StandardContext listenerStart
严重: Skipped installing application listeners due to previous error(s)
2011-10-5 17:46:58 org.apache.catalina.core.StandardContext start
严重: Error listenerStart
?
?
解决方案:
是因为少了一个spring的? spring-web.jar包..加上去,就没有报错了.