org.apache.catalina.core.StandardContext.startInternal One or more listeners failed to start

今天应用启动控制台报下面的错误:
20-May-2020 15:10:05.207 严重 [localhost-startStop-1] org.apache.catalina.core.StandardContext.startInternal One or more listeners failed to start. Full details will be found in the appropriate container log file
20-May-2020 15:10:05.294 严重 [localhost-startStop-1] org.apache.catalina.core.StandardContext.startInternal Context [/yajy] startup failed due to previous errors
20-May-2020 15:10:05.392 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Deployment of web application archive [/opt/apache-tomcat-8.5.32/webapps/yajy.war] has finished in [6,692] ms

进一步查看tomcat下面的localhost.log日志,发现:
20-May-2020 15:20:57.018 严重 [localhost-startStop-1] org.apache.catalina.core.StandardContext.listenerStart Error configuring application listener of class com.yinhai.project.listener.StartupListener
java.lang.NoClassDefFoundError: org/springframework/web/context/ContextLoaderListener
初步确定是包的问题,检查项目的pom文件,发现有个packagingExcludes,注释掉,问题解决


org.apache.maven.plugins
maven-war-plugin


****


展开阅读全文

没有更多推荐了,返回首页

©️2019 CSDN 皮肤主题: 1024 设计师: 上身试试
应支付0元
点击重新获取
扫码支付

支付成功即可阅读