《Springboot极简教程》问题解决:org.apache.catalina.LifecycleException: A child container failed during start
来源:互联网 发布:web优化 sysctl 编辑:程序博客网 时间:2024/06/01 10:03
错误日志
org.apache.catalina.LifecycleException: A child container failed during start
原因分析
项目依赖里面单独指定了servlet-api,类路径里面有多个版本servlet-api,导致类冲突
<dependency> <groupId>javax.servlet</groupId> <artifactId>servlet-api</artifactId> <version>${servlet-api-version}</version> <scope>provided</scope></dependency>
解决方案
在Springboot中,不要单独指定下面几个依赖的版本,默认使用Springboot的配置完的依赖即可:
providedCompile('org.springframework.boot:spring-boot-starter-tomcat') compile('javax.servlet:jstl') providedCompile('org.apache.tomcat.embed:tomcat-embed-jasper')
阅读全文
0 0
- 《Springboot极简教程》问题解决:org.apache.catalina.LifecycleException: A child container failed during start
- org.apache.catalina.LifecycleException: A child container failed during
- Caused by: org.apache.catalina.LifecycleException: A child container failed during start
- @WebServlet org.apache.catalina.LifecycleException A child container failed during start
- A child container failed during start:org.apache.catalina.LifecycleException,有需要的朋友可以参考下。
- org.apache.catalina.LifecycleException: A child container failed during(转载)
- Caused by: org.apache.catalina.LifecycleException: A child container failed
- org.apache.catalina.core.ContainerBase startInternal 严重: A child container failed during start java.
- org.apache.catalina.core.ContainerBase.startInternal A child container failed during start
- org.apache.catalina.LifecycleException: Failed to start component [StandardService[Catalina]]
- org.apache.catalina.LifecycleException: Failed to start component [StandardService[Catalina]]
- A child container failed during start
- A child container failed during start
- A child container failed during start
- A child container failed during start
- 严重: A child container failed during start
- A child container failed during start
- A child container failed during start
- 《Springboot极简教程》继承WebMvcConfigurerAdapter: 一行代码写Controller
- LeetCode 105. Construct Binary Tree from Preorder and Inorder Traversal
- 搭建Maven(搭建+问题笔记)
- 《Springboot极简教程》问题解决:Idea解决Gradle库依赖冲突问题:Detected both log4j-over-slf4j.jar AND slf4j-log4j12.jar on the class path, preempting
- 传递WinMain的参数给main
- 《Springboot极简教程》问题解决:org.apache.catalina.LifecycleException: A child container failed during start
- 邮件发送和接收原理
- 【tyvj1098】任务安排(dp)
- 《Springboot极简教程》Springboot使用Kotlin和Java混合编程
- Elam的caffe笔记之配置篇(六):Centos6.5下编译caffe及caffe的python3.6接口
- 《Springboot极简教程》@EnableMongoRepositories路径配置:APPLICATION FAILED TO START: Parameter 0 of constructor in
- 《Springboot极简教程》MappingMongoConverter:Failed to convert from type [java.lang.String] to type [long] for value 'null'; ne
- 《Springboot极简教程》系统异常全局统一处理:@ControllerAdvice plus @ExceptionHandler
- 《JSP极简教程》jsp c:forEach用法