tomcat启动报错:Error configuring application listener of class org.springframework.web.context.ContextLoaderListener

1、错误信息:

严重:   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:1352) 
at   org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1198) 
at   org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3677) 
at   org.apache.catalina.core.StandardContext.start(StandardContext.java:4187) 
at   org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759) 
at   org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739) 
at   org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524) 
at   org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:809) 
at   org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:698) 
at   org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472) 
at   org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122) 
at   org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310) 
at   org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) 
at   org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021) 
at   org.apache.catalina.core.StandardHost.start(StandardHost.java:718) 
at   org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013) 
at   org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442) 
at   org.apache.catalina.core.StandardService.start(StandardService.java:450) 
at   org.apache.catalina.core.StandardServer.start(StandardServer.java:709) 
at   org.apache.catalina.startup.Catalina.start(Catalina.java:551) 
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:585) 
at   org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294) 
at   org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)

2、解决方案:

1. 打开工程属性对话框,到Deployment Assembly页面,点击Add

tomcat启动报错:Error configuring application listener of class org.springframework.web.context.ContextLoaderListener

2. 选择Jave Build Path Entries

tomcat启动报错:Error configuring application listener of class org.springframework.web.context.ContextLoaderListener

 3. 把程序用于的Library加入进来

 tomcat启动报错:Error configuring application listener of class org.springframework.web.context.ContextLoaderListener

4. 重新运行Server应该看不到这个问题了

 

tomcat启动报错:Error configuring application listener of class org.springframework.web.context.ContextLoaderListener

上一篇:webstorm激活码


下一篇:李彦宏:未来20年人们对手机的依赖度会越来越低!