严重: A child container failed during start

简介: 严重: 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[Catalina].StandardHost[localhost].StandardContext[/smart-mps]]
  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:943)
  at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:871)
  at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
  at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1408)
  at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1398)
  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[Catalina].StandardHost[localhost].StandardContext[/smart-mps]]
  at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:162)
  ... 6 more
Caused by: java.lang.NoClassDefFoundError: org/springframework/web/context/WebApplicationContext
  at java.lang.Class.getDeclaredFields0(Native Method)
  at java.lang.Class.privateGetDeclaredFields(Class.java:2583)
  at java.lang.Class.getDeclaredFields(Class.java:1916)
  at org.apache.catalina.util.Introspection.getDeclaredFields(Introspection.java:106)
  at org.apache.catalina.startup.WebAnnotationSet.loadFieldsAnnotation(WebAnnotationSet.java:256)
  at org.apache.catalina.startup.WebAnnotationSet.loadApplicationServletAnnotations(WebAnnotationSet.java:132)
  at org.apache.catalina.startup.WebAnnotationSet.loadApplicationAnnotations(WebAnnotationSet.java:65)
  at org.apache.catalina.startup.ContextConfig.applicationAnnotationsConfig(ContextConfig.java:336)
  at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:786)
  at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:307)
  at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:95)
  at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
  at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5213)
  at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
  ... 6 more
Caused by: java.lang.ClassNotFoundException: org.springframework.web.context.WebApplicationContext
  at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1339)
  at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1167)
  ... 20 more
一月 22, 2019 4:07:51 下午 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:943)
  at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:262)
  at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
  at org.apache.catalina.core.StandardService.startInternal(StandardService.java:441)
  at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
  at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:789)
  at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
  at org.apache.catalina.startup.Catalina.start(Catalina.java:630)
  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:351)
  at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:485)
Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost]]
  at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:162)
  at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1408)
  at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1398)
  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: A child container failed during start
  at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:951)
  at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:871)
  at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
  ... 6 more
一月 22, 2019 4:07:51 下午 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:162)
  at org.apache.catalina.startup.Catalina.start(Catalina.java:630)
  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:351)
  at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:485)
Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardService[Catalina]]
  at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:162)
  at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:789)
  at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
  ... 7 more
Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina]]
  at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:162)
  at org.apache.catalina.core.StandardService.startInternal(StandardService.java:441)
  at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
  ... 9 more
Caused by: org.apache.catalina.LifecycleException: A child container failed during start
  at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:951)
  at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:262)
  at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
  ... 11 more
一月 22, 2019 4:07:51 下午 org.apache.coyote.AbstractProtocol pause
信息: Pausing ProtocolHandler ["http-nio-8080"]
一月 22, 2019 4:07:51 下午 org.apache.coyote.AbstractProtocol pause
信息: Pausing ProtocolHandler ["ajp-nio-8009"]
一月 22, 2019 4:07:51 下午 org.apache.catalina.core.StandardService stopInternal
信息: Stopping service Catalina
一月 22, 2019 4:07:51 下午 org.apache.coyote.AbstractProtocol destroy
信息: Destroying ProtocolHandler ["http-nio-8080"]
一月 22, 2019 4:07:51 下午 org.apache.coyote.AbstractProtocol destroy
严重: Failed to destroy end point associated with ProtocolHandler ["http-nio-8080"]
java.lang.NullPointerException
  at org.apache.tomcat.util.net.NioEndpoint.releaseCaches(NioEndpoint.java:315)
  at org.apache.tomcat.util.net.NioEndpoint.unbind(NioEndpoint.java:491)
  at org.apache.tomcat.util.net.AbstractEndpoint.destroy(AbstractEndpoint.java:896)
  at org.apache.coyote.AbstractProtocol.destroy(AbstractProtocol.java:551)
  at org.apache.catalina.connector.Connector.destroyInternal(Connector.java:1023)
  at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:292)
  at org.apache.catalina.core.StandardService.destroyInternal(StandardService.java:589)
  at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:292)
  at org.apache.catalina.core.StandardServer.destroyInternal(StandardServer.java:879)
  at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:292)
  at org.apache.catalina.startup.Catalina.start(Catalina.java:634)
  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:351)
  at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:485)
一月 22, 2019 4:07:51 下午 org.apache.coyote.AbstractProtocol destroy
信息: Destroying ProtocolHandler ["ajp-nio-8009"]
一月 22, 2019 4:07:51 下午 org.apache.coyote.AbstractProtocol destroy
严重: Failed to destroy end point associated with ProtocolHandler ["ajp-nio-8009"]
java.lang.NullPointerException
  at org.apache.tomcat.util.net.NioEndpoint.releaseCaches(NioEndpoint.java:315)
  at org.apache.tomcat.util.net.NioEndpoint.unbind(NioEndpoint.java:491)
  at org.apache.tomcat.util.net.AbstractEndpoint.destroy(AbstractEndpoint.java:896)
  at org.apache.coyote.AbstractProtocol.destroy(AbstractProtocol.java:551)
  at org.apache.catalina.connector.Connector.destroyInternal(Connector.java:1023)
  at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:292)
  at org.apache.catalina.core.StandardService.destroyInternal(StandardService.java:589)
  at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:292)
  at org.apache.catalina.core.StandardServer.destroyInternal(StandardServer.java:879)
  at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:292)
  at org.apache.catalina.startup.Catalina.start(Catalina.java:634)
  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:351)
  at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:485)

解决方案:

一、jar包正常情况下:

第一步:

      Remove Server 、

f48d12a6d0e9e8871246b803842d5b8.png

第二步:

        Clean Project、

66aa5f3f6d86672d58ecec802ebf0ec.png

第三步:

       Start Server

第四步:

       Finish、

二、jar包不正常情况

1、项目名上右键>>properties>>java build path    

2、libraries选项卡>>右边Add library>>Server Runtime>>选一个Tomcat>>>finish

3、重复【操作一】的流程

目录
相关文章
|
Java 应用服务中间件 Maven
解决A child container failed during start报错问题
解决A child container failed during start报错问题
173 0
|
Shell 容器 Perl
Back-off restarting failed container 问题解决
Back-off restarting failed container 问题解决
1543 0
|
4月前
|
网络安全
androidstudio无法启动,Failed to create a child event loop
androidstudio无法启动,Failed to create a child event loop
115 0
|
Java 应用服务中间件 容器
Tomcat报错 严重: A child container failed during start
Tomcat报错 严重: A child container failed during start
197 0
|
7月前
|
消息中间件
ERROR 65639 --- [Container#0-217] o.s.a.r.l.SimpleMessageListenerContainer Failed to check/redeclare
ERROR 65639 --- [Container#0-217] o.s.a.r.l.SimpleMessageListenerContainer Failed to check/redeclare
113 0
|
7月前
|
存储
tracker_query_storage fail, error no: 28, error info: No space left on device
tracker_query_storage fail, error no: 28, error info: No space left on device
175 0
|
Java 开发工具 git
解决Error running XXXApplicationCommand line is too long.报错
解决Error running XXXApplicationCommand line is too long.报错
Error running Application. Command line is too long.
【2月更文挑战第2天】Error running Application. Command line is too long. 问题处理
|
编译器 Serverless Go
Fail to start function, Code:1
Fail to start function, Code:1
70 2
|
Java Maven 容器
A child container failed during start
A child container failed during start
154 0
A child container failed during start