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

Error configuring application listener of class org.springframework.web.context.解决办法

热度:237   发布时间:2016-04-22 01:19:21.0
Error configuring application listener of class org.springframework.web.context.
Spring初学者,做了一个简单的Spring+Struts的例子,报错如下:

严重: Error configuring application listener of class org.springframework.web.context.ContextLoaderListener
java.lang.NoClassDefFoundError: org/springframework/context/ApplicationContextException
  at java.lang.Class.getDeclaredConstructors0(Native Method)
  at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
  at java.lang.Class.getConstructor0(Class.java:2699)
  at java.lang.Class.newInstance0(Class.java:326)
  at java.lang.Class.newInstance(Class.java:308)
  at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:125)
  at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4715)
  at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5273)
  at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
  at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1568)
  at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1558)
  at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
  at java.util.concurrent.FutureTask.run(FutureTask.java:138)
  at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
  at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.ClassNotFoundException: org.springframework.context.ApplicationContextException
  at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1701)
  at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1546)
  ... 16 more
2012-5-9 13:41:15 org.apache.catalina.core.StandardContext listenerStart
严重: Skipped installing application listeners due to previous error(s)
2012-5-9 13:41:15 org.apache.catalina.core.StandardContext startInternal
严重: Error listenerStart
2012-5-9 13:41:15 org.apache.catalina.core.StandardContext startInternal
严重: Context [/SpringFrame] startup failed due to previous errors
2012-5-9 13:41:16 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["http-bio-8080"]
2012-5-9 13:41:16 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["ajp-bio-8009"]
2012-5-9 13:41:16 org.apache.catalina.startup.Catalina start

信息: Server startup in 6251 ms


弄了很长时间,还是没有弄出来,求解答!

------解决方案--------------------
缺少spring-web.jar,以后不要用myeclipes了,用eclipse里面的插件很多,自己配就不会出错了。
  相关解决方案