首页 > 移动平台 > 详细

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

时间:2019-05-28 13:10:52      阅读:187      评论:0      收藏:0      [点我收藏+]

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

技术分享图片

2. 选择Jave Build Path Entries

技术分享图片

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

 技术分享图片

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

 

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

原文:https://www.cnblogs.com/hongmoshui/p/10936492.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!