There was an error in the Tomcat deployment project Java.lang.IllegalStateException:ContainerBase.addChild:start:org.apache.catalina.Life

Source: Internet
Author: User

There was an error in the Tomcat deployment project Java.lang.illegalstateexception:containerbase.addchild:start:o Rg.apache.catalina.LifecycleException:Failed to start Component[standardengine[catalina]. Standardhost[localhost]. standardcontext[/project Name]]

A very simple project without a compile error, starting with the Tomcat v7.0 server in eclipse the following error appears to be not an issue with the project itself (such as because the library is not imported).

June 10, 2015 2:02:50 pm Org.apache.catalina.startup.Catalina Start
Critical: The required Server component failed to start so Tomcat was 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 (Unknown Source)
At Sun.reflect.DelegatingMethodAccessorImpl.invoke (Unknown Source)
At Java.lang.reflect.Method.invoke (Unknown Source)
At Org.apache.catalina.startup.Bootstrap.start (bootstrap.java:321)
At Org.apache.catalina.startup.Bootstrap.main (bootstrap.java:455)
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:1131)
At Org.apache.catalina.core.StandardEngine.startInternal (standardengine.java:300)
At Org.apache.catalina.util.LifecycleBase.start (lifecyclebase.java:150)
... One more
June 10, 2015 2:02:50 pm Org.apache.coyote.AbstractProtocol Pause
Info: Pausing protocolhandler ["http-bio-8080"]
June 10, 2015 2:02:50 pm Org.apache.coyote.AbstractProtocol Pause
Info: Pausing protocolhandler ["ajp-bio-8009"]
June 10, 2015 2:02:50 pm Org.apache.catalina.core.StandardService stopinternal
Information: Stopping service Catalina
June 10, 2015 2:02:50 pm Org.apache.coyote.AbstractProtocol Destroy
Info: Destroying Protocolhandler ["http-bio-8080"]
June 10, 2015 2:02:50 pm Org.apache.coyote.AbstractProtocol Destroy
Info: Destroying Protocolhandler ["ajp-bio-8009"]

Deploy the project to the Tomcat directory and start with the command line to report the following error.

So it is certain that the Tomcat container is in the problem of loading our servlet, so focus on checking the Web. xml file for problems: whether the servlet is defined or not, the mapping mappings are defined correctly .... Finally, the source of the problem is that Servlet-name up and down no correspondence

There was an error in the Tomcat deployment project Java.lang.IllegalStateException:ContainerBase.addChild:start:org.apache.catalina.Life

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.