Tomcat 7 "Severe: a Child Container Failed During Start"

Tomcat 7 SEVERE: A child container failed during start

When a servlet 3.0 application starts the container has to scan all the classes for annotations (unless metadata-complete=true). Tomcat uses a fork (no additions, just unused code removed) of Apache Commons BCEL to do this scanning. The web app is failing to start because BCEL has come across something it doesn't understand.

If the applications runs fine on Tomcat 6, adding metadata-complete="true" in your web.xml or declaring your application as a 2.5 application in web.xml will stop the annotation scanning.

At the moment, this looks like a problem in the class being scanned. However, until we know which class is causing the problem and take a closer look we won't know. I'll need to modify Tomcat to log a more useful error message that names the class in question. You can follow progress on this point at:
https://issues.apache.org/bugzilla/show_bug.cgi?id=53161

SEVERE: A child container failed during start

I guess the error log says it all. You have more than one servlet deployed on tomcat with the same URL pattern mapped in their web.xml [/*]
The servlets named [Project-1] and [com.example.project_1.Project_1UI$Servlet] are both mapped to the url-pattern [/*] which is not permitted at org.apache.catalina.deploy.WebXml.addServletMapping

This is confusing since the container will not know which servlet to invoke whenever you hit the URL localhost:[yourPort]/[AppName-Maybe]/. Try going through the web.xml and fixing this or you can post the same here and get additional help.

Apache Tomcat 7 in Eclipse fails to start: A child container failed during start

You are missing the json.jar in your classpath, if you add it in your build path it will not help, it should be available in your classpath on then it will be loaded at runtime.

In case of simple web application with no maven put your JAR libraries into the WEB-INF/lib folder.

If your question is you are not deploying any application in your tomcat server still facing this issue, try putting your json.jar in the common/lib folder of tomcat server and then start the server again.

Tomcat Maven Plugin - A child container failed during start

I solved the problem by adding this dependency

<dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
<version>2.5</version>
<scope>provided</scope>
</dependency>

Tomcat - A child container failed during start - After converting maven to gradle

The root cause is:

java.lang.NoSuchMethodError: javax.servlet.ServletContext.getVirtualServerName()Ljava/lang/String

This method has been added in Servlet 3.1. Are you sure you are deploying to the correct Tomcat version?



Related Topics



Leave a reply



Submit