当前位置: 代码迷 >> Web前端 >> Error configuring application listener of class org.springframework.web.context
  详细解决方案

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

热度:1457   发布时间:2013-09-11 17:25:07.0
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包..加上去,就没有报错了.


我的异常网推荐解决方案:org.apache.catalina.loader.WebappClassLoader.loadClass,http://www.myexception.cn/java-web/org.apache.catalina.loader.WebappClassLoader.loadClass.html
  相关解决方案