java.lang.ClassNotFoundException: org.springframework.web.content.ContextLoaderListener
阿新 • • 發佈:2017-06-08
pla nag sdn fonts b2c dsm exc span fontsize
2、錯誤原因
1、錯誤描寫敘述
嚴重: Error configuring application listener of class org.springframework.web.content.ContextLoaderListener java.lang.ClassNotFoundException: org.springframework.web.content.ContextLoaderListener at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1305) at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1157) at org.apache.catalina.core.DefaultInstanceManager.loadClass(DefaultInstanceManager.java:520) at org.apache.catalina.core.DefaultInstanceManager.loadClassMaybePrivileged(DefaultInstanceManager.java:501) at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:120) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4650) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5166) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1409) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1399) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) 八月 13, 2015 7:53:50 下午 org.apache.catalina.core.StandardContext listenerStart 嚴重: Skipped installing application listeners due to previous error(s) 八月 13, 2015 7:53:50 下午 org.apache.catalina.core.StandardContext startInternal 嚴重: Error listenerStart 八月 13, 2015 7:53:50 下午 org.apache.catalina.core.StandardContext startInternal 嚴重: Context [/SendMail] startup failed due to previous errors
2、錯誤原因
我在web.xml中加入了一個監聽器
<listener> <listener-class>org.springframework.web.content.ContextLoaderListener</listener-class> </listener>而且導入了spring-web-4.1.1.RELEASE.jar,用反編譯工具查看了這個jar,的確存在org.springframework.web.context.ContextLoaderListener,可是執行項目,還是報錯
3、解決的方法
java.lang.ClassNotFoundException: org.springframework.web.content.ContextLoaderListener