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包删除,重新下载,但是依然报错??? 最后修改了所有spring下的jar包版本为4.2.4.RELEASE后,clean 重新编译成功了!!!

 

posted @ 2019-08-26 23:26  dd_227  阅读(2990)  评论(1编辑  收藏  举报