Tomcat启动报错 严重: A child container failed during start java.util.concurrent.ExecutionException...

Ecplise中项目启动报错Tomcat 严重: A child container failed during start

八月 27, 2019 2:51:39 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server version: Apache Tomcat/8.5.38
八月 27, 2019 2:51:39 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server built: Feb 5 2019 11:42:42 UTC
八月 27, 2019 2:51:39 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server number: 8.5.38.0
八月 27, 2019 2:51:39 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: OS Name: Windows 7
八月 27, 2019 2:51:39 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: OS Version: 6.1
八月 27, 2019 2:51:39 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Architecture: x86
八月 27, 2019 2:51:39 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Java Home: C:\Program Files\Java\jdk1.8.0_131\jre
八月 27, 2019 2:51:39 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: JVM Version: 1.8.0_131-b11
八月 27, 2019 2:51:39 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: JVM Vendor: Oracle Corporation
八月 27, 2019 2:51:39 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: CATALINA_BASE: D:\Program Files\eclipse.metadata.plugins\org.eclipse.wst.server.core\tmp0
八月 27, 2019 2:51:39 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: CATALINA_HOME: D:\Program Files\apache-tomcat-8.5.38
八月 27, 2019 2:51:39 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dcatalina.base=D:\Program Files\eclipse.metadata.plugins\org.eclipse.wst.server.core\tmp0
八月 27, 2019 2:51:39 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dcatalina.home=D:\Program Files\apache-tomcat-8.5.38
八月 27, 2019 2:51:39 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dwtp.deploy=D:\Program Files\eclipse.metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps
八月 27, 2019 2:51:39 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Djava.endorsed.dirs=D:\Program Files\apache-tomcat-8.5.38\endorsed
八月 27, 2019 2:51:39 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dfile.encoding=GBK
八月 27, 2019 2:51:39 下午 org.apache.catalina.core.AprLifecycleListener lifecycleEvent
信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: [C:\Program Files\Java\jdk1.8.0_131\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:/Program Files/Java/jdk1.8.0_131/bin/…/jre/bin/client;C:/Program Files/Java/jdk1.8.0_131/bin/…/jre/bin;C:/Program Files/Java/jdk1.8.0_131/bin/…/jre/lib/i386;D:\oracle\product\10.2.0\db_1\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program Files\MySQL\MySQL Server 5.5\bin;C:\Program Files\Java\jdk1.8.0_131\bin;C:\Program Files\Java\jdk1.8.0_131\jre\bin;c:\Program Files\Microsoft SQL Server\100\Tools\Binn;c:\Program Files\Microsoft SQL Server\100\DTS\Binn;D:\Program Files\eclipse\Eclipse;;.]
八月 27, 2019 2:51:39 下午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler [“http-nio-8080”]
八月 27, 2019 2:51:39 下午 org.apache.tomcat.util.net.NioSelectorPool getSharedSelector
信息: Using a shared selector for servlet write/read
八月 27, 2019 2:51:39 下午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler [“ajp-nio-8009”]
八月 27, 2019 2:51:39 下午 org.apache.tomcat.util.net.NioSelectorPool getSharedSelector
信息: Using a shared selector for servlet write/read
八月 27, 2019 2:51:39 下午 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 1023 ms
八月 27, 2019 2:51:39 下午 org.apache.catalina.core.StandardService startInternal
信息: Starting service [Catalina]
八月 27, 2019 2:51:39 下午 org.apache.catalina.core.StandardEngine startInternal
信息: Starting Servlet Engine: Apache Tomcat/8.5.38
八月 27, 2019 2:51:44 下午 org.apache.jasper.servlet.TldScanner scanJars
信息: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
八月 27, 2019 2:51:47 下午 org.apache.catalina.core.ContainerBase startInternal
严重: A child container failed during start
java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/ChinaUnicomKPIGS]]
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:942)
at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:872)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase S t a r t C h i l d . c a l l ( C o n t a i n e r B a s e . j a v a : 1423 ) a t o r g . a p a c h e . c a t a l i n a . c o r e . C o n t a i n e r B a s e StartChild.call(ContainerBase.java:1423) at org.apache.catalina.core.ContainerBase StartChild.call(ContainerBase.java:1423)atorg.apache.catalina.core.ContainerBaseStartChild.call(ContainerBase.java:1413)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:748)
Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/ChinaUnicomKPIGS]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167)
… 6 more
Caused by: java.lang.IllegalArgumentException: Filter mapping specifies an unknown filter name [dofilter]
at org.apache.catalina.core.StandardContext.validateFilterMap(StandardContext.java:3043)
at org.apache.catalina.core.StandardContext.addFilterMap(StandardContext.java:3006)
at org.apache.catalina.startup.ContextConfig.configureContext(ContextConfig.java:1275)
at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1156)
at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:769)
at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:299)
at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:94)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5181)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
… 6 more

八月 27, 2019 2:51:47 下午 org.apache.catalina.core.ContainerBase startInternal
严重: A child container failed during start
java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost]]
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:942)
at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:262)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.StandardService.startInternal(StandardService.java:422)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:793)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.startup.Catalina.start(Catalina.java:688)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:353)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:493)
Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167)
at org.apache.catalina.core.ContainerBase S t a r t C h i l d . c a l l ( C o n t a i n e r B a s e . j a v a : 1423 ) a t o r g . a p a c h e . c a t a l i n a . c o r e . C o n t a i n e r B a s e StartChild.call(ContainerBase.java:1423) at org.apache.catalina.core.ContainerBase StartChild.call(ContainerBase.java:1423)atorg.apache.catalina.core.ContainerBaseStartChild.call(ContainerBase.java:1413)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:748)
Caused by: org.apache.catalina.LifecycleException: A child container failed during start
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:953)
at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:872)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
… 6 more
Caused by: java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/ChinaUnicomKPIGS]]
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:942)
… 8 more
Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/ChinaUnicomKPIGS]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167)
… 6 more
Caused by: java.lang.IllegalArgumentException: Filter mapping specifies an unknown filter name [dofilter]
at org.apache.catalina.core.StandardContext.validateFilterMap(StandardContext.java:3043)
at org.apache.catalina.core.StandardContext.addFilterMap(StandardContext.java:3006)
at org.apache.catalina.startup.ContextConfig.configureContext(ContextConfig.java:1275)
at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1156)
at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:769)
at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:299)
at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:94)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5181)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
… 6 more

八月 27, 2019 2:51:47 下午 org.apache.catalina.startup.Catalina start
严重: The required Server component failed to start so Tomcat is unable to start.
org.apache.catalina.LifecycleException: Failed to start component [StandardServer[8005]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167)
at org.apache.catalina.startup.Catalina.start(Catalina.java:688)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:353)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:493)
Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardService[Catalina]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167)
at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:793)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
… 7 more
Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167)
at org.apache.catalina.core.StandardService.startInternal(StandardService.java:422)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
… 9 more
Caused by: org.apache.catalina.LifecycleException: A child container failed during start
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:953)
at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:262)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
… 11 more
Caused by: java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost]]
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:942)
… 13 more
Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167)
at org.apache.catalina.core.ContainerBase S t a r t C h i l d . c a l l ( C o n t a i n e r B a s e . j a v a : 1423 ) a t o r g . a p a c h e . c a t a l i n a . c o r e . C o n t a i n e r B a s e StartChild.call(ContainerBase.java:1423) at org.apache.catalina.core.ContainerBase StartChild.call(ContainerBase.java:1423)atorg.apache.catalina.core.ContainerBaseStartChild.call(ContainerBase.java:1413)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:748)
Caused by: org.apache.catalina.LifecycleException: A child container failed during start
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:953)
at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:872)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
… 6 more
Caused by: java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/ChinaUnicomKPIGS]]
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:942)
… 8 more
Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/ChinaUnicomKPIGS]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167)
… 6 more
Caused by: java.lang.IllegalArgumentException: Filter mapping specifies an unknown filter name [dofilter]
at org.apache.catalina.core.StandardContext.validateFilterMap(StandardContext.java:3043)
at org.apache.catalina.core.StandardContext.addFilterMap(StandardContext.java:3006)
at org.apache.catalina.startup.ContextConfig.configureContext(ContextConfig.java:1275)
at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1156)
at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:769)
at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:299)
at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:94)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5181)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
… 6 more

八月 27, 2019 2:51:47 下午 org.apache.coyote.AbstractProtocol pause
信息: Pausing ProtocolHandler [“http-nio-8080”]
八月 27, 2019 2:51:47 下午 org.apache.coyote.AbstractProtocol pause
信息: Pausing ProtocolHandler [“ajp-nio-8009”]
八月 27, 2019 2:51:47 下午 org.apache.catalina.core.StandardService stopInternal
信息: Stopping service [Catalina]
八月 27, 2019 2:51:47 下午 org.apache.coyote.AbstractProtocol destroy
信息: Destroying ProtocolHandler [“http-nio-8080”]
八月 27, 2019 2:51:47 下午 org.apache.coyote.AbstractProtocol destroy
信息: Destroying ProtocolHandler [“ajp-nio-8009”]


**解决办法:(逐一排查,检查问题根源)**
        (1)单独启动Tomcat是否正常?

Tomcat启动报错 严重: A child container failed during start java.util.concurrent.ExecutionException..._第1张图片
        (2)检查Tomcat 的apache-tomcat-8.5.38 \ conf \ server.xml(注:一般项目迁移会有这种情况)
Tomcat启动报错 严重: A child container failed during start java.util.concurrent.ExecutionException..._第2张图片
        (3)检查项目的web.xml 格式和语法是否正确?

                【url-pattern中 必须是 /*】
Tomcat启动报错 严重: A child container failed during start java.util.concurrent.ExecutionException..._第3张图片


在这里插入图片描述
        (4)是否缺少jar包? (ssh 核心常用jar)
Tomcat启动报错 严重: A child container failed during start java.util.concurrent.ExecutionException..._第4张图片
        (5)Tomcat服务配置检查 (每次启动前 Clean一下服务)
Tomcat启动报错 严重: A child container failed during start java.util.concurrent.ExecutionException..._第5张图片
        (6)查看Caused by,的主要原因,检查jar包是否重复? 或 jar包是否冲突 …等
在这里插入图片描述
                方法1、右击项目名 >> Run as >> Maven XXX ,控制台就会报哪个jar包出错。

                方法2、打开项目中的pom.xml文件,在自己的Maven本地仓库去查找pom.xml文件中每一个dependency节点所对应的jar包版本,进行挨个挨个的对比
Tomcat启动报错 严重: A child container failed during start java.util.concurrent.ExecutionException..._第6张图片

你可能感兴趣的:(Ecplise,Tomcat服务启动报错)