Eclipse啓動tomcat 報「 A child container failed during 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:684)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:597)
   at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:322)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:456)
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:732)
   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:1131)
   at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:302)
   at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
   ... 11 morejava

解決方案一:把在Tomcat上右鍵刪除後再從新建一個apache

 

解決方案二:post

1:項目名上右鍵>>properties>>java build pathui

2:libraries選項卡>>右邊Add library>>Server Runtime>>選一個Tomcat>>>finishcomponent

3:從新啓動blog

相關文章
相關標籤/搜索