塔塔二的gravatar头像
塔塔二 2018-09-04 10:15:34
A child container failed during start Tomcat启动报错

A child container failed during start   Tomcat启动报错

(表示链接超时)

 

项目本来没事的,就是改了个Tomcat的虚拟路径后就报这个错了

  九月 04, 2018 10:02:21 上午 org.apache.catalina.core.StandardContext resourcesStart
严重: Error starting static Resources
java.lang.IllegalArgumentException: Document base E:\22\img does not exist or is not a readable directory
    at org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:136)
    at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:5132)
    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5319)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1574)
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1564)
    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)

九月 04, 2018 10:02:21 上午 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[/upload]]
    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:1122)
    at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:819)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1574)
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1564)
    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[/upload]]
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
    ... 6 more
Caused by: org.apache.catalina.LifecycleException: Error in resourceStart()
    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5320)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    ... 6 more

九月 04, 2018 10:02:21 上午 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:1122)
    at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:300)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    at org.apache.catalina.core.StandardService.startInternal(StandardService.java:443)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:739)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:689)
    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:294)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:428)
Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost]]
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1574)
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1564)
    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:1130)
    at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:819)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    ... 6 more

九月 04, 2018 10:02:21 上午 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:154)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:689)
    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:294)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:428)
Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardService[Catalina]]
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
    at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:739)
    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:154)
    at org.apache.catalina.core.StandardService.startInternal(StandardService.java:443)
    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:1130)
    at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:300)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    ... 11 more

九月 04, 2018 10:02:21 上午 org.apache.coyote.AbstractProtocol pause
信息: Pausing ProtocolHandler ["http-bio-8080"]
九月 04, 2018 10:02:21 上午 org.apache.coyote.AbstractProtocol pause
信息: Pausing ProtocolHandler ["ajp-bio-8009"]
九月 04, 2018 10:02:21 上午 org.apache.catalina.core.StandardService stopInternal
信息: Stopping service Catalina
九月 04, 2018 10:02:21 上午 org.apache.coyote.AbstractProtocol destroy
信息: Destroying ProtocolHandler ["http-bio-8080"]
九月 04, 2018 10:02:21 上午 org.apache.coyote.AbstractProtocol destroy
信息: Destroying ProtocolHandler ["ajp-bio-8009"]
九月 04, 2018 10:02:21 上午 org.apache.catalina.loader.WebappClassLoaderBase clearReferencesJdbc
严重: The web application [/bin-nps-v] registered the JDBC driver [oracle.jdbc.driver.OracleDriver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
九月 04, 2018 10:02:21 上午 org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads
严重: The web application [/bin-nps-v] appears to have started a thread named [MyClusteredScheduler_Worker-1] but has failed to stop it. This is very likely to create a memory leak.
九月 04, 2018 10:02:21 上午 org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads
严重: The web application [/bin-nps-v] appears to have started a thread named [MyClusteredScheduler_Worker-2] but has failed to stop it. This is very likely to create a memory leak.
九月 04, 2018 10:02:21 上午 org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads
严重: The web application [/bin-nps-v] appears to have started a thread named [MyClusteredScheduler_Worker-3] but has failed to stop it. This is very likely to create a memory leak.
九月 04, 2018 10:02:21 上午 org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads
严重: The web application [/bin-nps-v] appears to have started a thread named [MyClusteredScheduler_Worker-4] but has failed to stop it. This is very likely to create a memory leak.
九月 04, 2018 10:02:21 上午 org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads
严重: The web application [/bin-nps-v] appears to have started a thread named [MyClusteredScheduler_Worker-5] but has failed to stop it. This is very likely to create a memory leak.
九月 04, 2018 10:02:21 上午 org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads
严重: The web application [/bin-nps-v] appears to have started a thread named [MyClusteredScheduler_Worker-6] but has failed to stop it. This is very likely to create a memory leak.
九月 04, 2018 10:02:21 上午 org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads
严重: The web application [/bin-nps-v] appears to have started a thread named [MyClusteredScheduler_Worker-7] but has failed to stop it. This is very likely to create a memory leak.
九月 04, 2018 10:02:22 上午 org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads
严重: The web application [/bin-nps-v] appears to have started a thread named [MyClusteredScheduler_Worker-8] but has failed to stop it. This is very likely to create a memory leak.
九月 04, 2018 10:02:22 上午 org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads
严重: The web application [/bin-nps-v] appears to have started a thread named [MyClusteredScheduler_Worker-9] but has failed to stop it. This is very likely to create a memory leak.
九月 04, 2018 10:02:22 上午 org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads
严重: The web application [/bin-nps-v] appears to have started a thread named [MyClusteredScheduler_Worker-10] but has failed to stop it. This is very likely to create a memory leak.
九月 04, 2018 10:02:22 上午 org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads
严重: The web application [/bin-nps-v] appears to have started a thread named [MyClusteredScheduler_Worker-11] but has failed to stop it. This is very likely to create a memory leak.
九月 04, 2018 10:02:22 上午 org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads
严重: The web application [/bin-nps-v] appears to have started a thread named [MyClusteredScheduler_Worker-12] but has failed to stop it. This is very likely to create a memory leak.
九月 04, 2018 10:02:22 上午 org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads
严重: The web application [/bin-nps-v] appears to have started a thread named [MyClusteredScheduler_Worker-13] but has failed to stop it. This is very likely to create a memory leak.
九月 04, 2018 10:02:22 上午 org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads
严重: The web application [/bin-nps-v] appears to have started a thread named [MyClusteredScheduler_Worker-14] but has failed to stop it. This is very likely to create a memory leak.
九月 04, 2018 10:02:22 上午 org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads
严重: The web application [/bin-nps-v] appears to have started a thread named [MyClusteredScheduler_Worker-15] but has failed to stop it. This is very likely to create a memory leak.
九月 04, 2018 10:02:22 上午 org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads
严重: The web application [/bin-nps-v] appears to have started a thread named [MyClusteredScheduler_Worker-16] but has failed to stop it. This is very likely to create a memory leak.
九月 04, 2018 10:02:22 上午 org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads
严重: The web application [/bin-nps-v] appears to have started a thread named [MyClusteredScheduler_Worker-17] but has failed to stop it. This is very likely to create a memory leak.
九月 04, 2018 10:02:22 上午 org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads
严重: The web application [/bin-nps-v] appears to have started a thread named [MyClusteredScheduler_Worker-18] but has failed to stop it. This is very likely to create a memory leak.
九月 04, 2018 10:02:22 上午 org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads
严重: The web application [/bin-nps-v] appears to have started a thread named [MyClusteredScheduler_Worker-19] but has failed to stop it. This is very likely to create a memory leak.
九月 04, 2018 10:02:22 上午 org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads
严重: The web application [/bin-nps-v] appears to have started a thread named [MyClusteredScheduler_Worker-20] but has failed to stop it. This is very likely to create a memory leak.
九月 04, 2018 10:02:22 上午 org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads
严重: The web application [/bin-nps-v] appears to have started a thread named [MyClusteredScheduler_Worker-21] but has failed to stop it. This is very likely to create a memory leak.
九月 04, 2018 10:02:22 上午 org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads
严重: The web application [/bin-nps-v] appears to have started a thread named [MyClusteredScheduler_Worker-22] but has failed to stop it. This is very likely to create a memory leak.
九月 04, 2018 10:02:22 上午 org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads
严重: The web application [/bin-nps-v] appears to have started a thread named [MyClusteredScheduler_Worker-23] but has failed to stop it. This is very likely to create a memory leak.
九月 04, 2018 10:02:22 上午 org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads
严重: The web application [/bin-nps-v] appears to have started a thread named [MyClusteredScheduler_Worker-24] but has failed to stop it. This is very likely to create a memory leak.
九月 04, 2018 10:02:22 上午 org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads
严重: The web application [/bin-nps-v] appears to have started a thread named [MyClusteredScheduler_Worker-25] but has failed to stop it. This is very likely to create a memory leak.
九月 04, 2018 10:02:22 上午 org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads
严重: The web application [/bin-nps-v] appears to have started a thread named [QuartzScheduler_MyClusteredScheduler-UT3UZIE0L6YHC881536026541125_ClusterManager] but has failed to stop it. This is very likely to create a memory leak.
九月 04, 2018 10:02:22 上午 org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads
严重: The web application [/bin-nps-v] appears to have started a thread named [QuartzScheduler_MyClusteredScheduler-UT3UZIE0L6YHC881536026541125_MisfireHandler] but has failed to stop it. This is very likely to create a memory leak.
九月 04, 2018 10:02:22 上午 org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads
严重: The web application [/bin-nps-v] appears to have started a thread named [MyClusteredScheduler_QuartzSchedulerThread] but has failed to stop it. This is very likely to create a memory leak.
九月 04, 2018 10:02:22 上午 org.apache.catalina.loader.WebappClassLoaderBase checkThreadLocalMapForLeaks
严重: The web application [/bin-nps-v] created a ThreadLocal with key of type [org.apache.axis.utils.XMLUtils.ThreadLocalDocumentBuilder] (value [org.apache.axis.utils.XMLUtils$ThreadLocalDocumentBuilder@735982b7]) and a value of type [org.apache.xerces.jaxp.DocumentBuilderImpl] (value [org.apache.xerces.jaxp.DocumentBuilderImpl@5e8428c5]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.

 

一开始直接百度弹框的超时信息,结果都是建议修改超时时间什么的,然后从错误原因那里随机找了个提示(标题)去百度,又是一些建议修改配置,删除jar包之类的,个人感觉不太对。于是仔细地查看报错的信息,结果看到了这个

A child container failed during start   Tomcat启动报错

 

这就很明显了,是因为我刚创建的虚拟路径找不到,没有那个文件(我没有创建img这个文件夹),到路径下去创建了img文件夹后,问题解决了。

个人感悟:项目报错后先自己查看报错信息,实在看不懂后再百度,对于自己的技术成长会有些帮助。(本人小菜鸟,有不对的地方请多指教,但别喷,谢谢)


打赏
最近浏览
xiaofeng88  LV5 2021年2月3日
09890987895  LV1 2021年1月15日
xiaokeimi01  LV15 2020年12月19日
kobe729  LV5 2020年11月5日
Super强  LV13 2020年10月2日
Jianarbek 2020年8月4日
暂无贡献等级
y_0913cai  LV1 2020年6月29日
adminnjnjn  LV2 2020年5月18日
吴aaaaa  LV1 2020年5月9日
蓉蓉mmmyr  LV1 2020年4月26日
顶部 客服 微信二维码 底部
>扫描二维码关注最代码为好友扫描二维码关注最代码为好友