tomcat启动失败_严重: A child container failed during start

Posted sunchunmei

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了tomcat启动失败_严重: A child container failed during start相关的知识,希望对你有一定的参考价值。

错误信息代码:
严重: A child container failed during start
java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Tomcat].StandardHost[localhost].StandardContext[]]
    at java.util.concurrent.FutureTask.report(FutureTask.java:122)
    at java.util.concurrent.FutureTask.get(FutureTask.java:192)
    at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1123)
    at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:800)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at java.lang.Thread.run(Thread.java:748)
Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Tomcat].StandardHost[localhost].StandardContext[]]
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
    ... 6 more

前提: maven项目 ,tomcat 7 ,jdk 1.8

其他人也出现了这个问题,他的问题是在web.xml文件<url-pattern>/*.do</url-pattern>多加了一个 ‘/‘

检查了我的xml文件,我的问题并不在此

 

然后我考虑是jar包下载问题:

1:首先run as --> maven test检查是否报错,并没有报错

2:然后run as-->maven build,再Goals下输入以下命令:clean install -e(如果构建出现异常,该参数能让Maven打印完整的stack trace,以方便分析错误原因)

严重: Unable to process Jar entry [org/springframework/mail/MailSender.class] from Jar [jar:file:/D:/maven/repository/org/springframework/spring-context-support/5.1.7.RELEASE/spring-context-support-5.1.7.RELEASE.jar!/] for annotations
java.util.zip.ZipException: invalid LOC header (bad signature)

可以看出该问题是spring-context-support-5.1.7.RELEASE.jar 包下载不完全,或者jar 包缺失导致的

3:把该jar包删除,重新下载,但是依然报错??? 最后修改了jar包版本后,clean重新编译成功了!!!

 

以上是关于tomcat启动失败_严重: A child container failed during start的主要内容,如果未能解决你的问题,请参考以下文章

Tomcat启动失败

A child container failed during start

Tomcat启动异常:A child container failed during start 与 ClassNotFoundException: org.slf4j.Loggerl分析与解决方法(

严重: A child container failed during start的问题解决方法

Tomcat启动失败【not found on the java.library.path】 错误信息如下【MyEclipse 10.0 -- jdk1.6.0_37】

Tomcat启动失败问题解决