首页 > 编程语言 > 详细

java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Tomcat].StandardHost[localhost].StandardContext[]]

时间:2021-03-26 21:44:13      阅读:54      评论:0      收藏:0      [点我收藏+]

 

项目一启动就报错

java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Tomcat].StandardHost[localhost].StandardContext[]]

Caused by: java.lang.LinkageError: loader constraint violation: loader (instance of org/apache/catalina/loader/WebappClassLoader) previously initiated loading for a different type with name "javax/servlet/ServletContext"

技术分享图片

 

1.解决方法:

技术分享图片

 

根本问题就是和toncat的依赖相冲突了,加上一个provided 就可以了

 技术分享图片

 

 

 修改完之后运行就成功啦

技术分享图片

 

java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Tomcat].StandardHost[localhost].StandardContext[]]

原文:https://www.cnblogs.com/KcBlog/p/14584025.html

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