aspose file tools*
The moose likes IDEs, Version Control and other tools and the fly likes In eclipse: A child container failed during start and Failed to start components Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "In eclipse: A child container failed during start and Failed to start components" Watch "In eclipse: A child container failed during start and Failed to start components" New topic
Author

In eclipse: A child container failed during start and Failed to start components

Anil Prajapati
Greenhorn

Joined: Aug 24, 2012
Posts: 2
Hello Everyone, I got a Error in Starting tomcat server in my Eclipse Java EE IDE, Junu release. It had worked fine and smoothly for a week and some. In the morning also i was using it and after i stop it and extending my code for developing admin section. I only added one admin.java servlet and admin.jsp in their respective folder and then i click same process to run it on Tomcat. But this time i got the following Error.
I tried deleting the old server and again creating new server but no luck. I also deleted the codes but it hadnot helped. i also tried selecting other projects to Run on Server but thats also not working. Its always showing same error again and again.

Please Help.

Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575

I think you try to run messed tomcat in eclipse. eclipse keep its server copy at its workspace. go there cleanup.
and again configure the new installed tomcat in eclipse.
Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575

and Welcome to JavaRanch Anil Prajapati
Anil Prajapati
Greenhorn

Joined: Aug 24, 2012
Posts: 2
Thanks for the welcome,

What do you mean by cleanup. I had deleted the server, even the folder from workspace and from the list of server in eclipse too. I was working normally as usual and you said messed, i really didn't understood that. Ok then how to cleanup all and start again. I can start again but how to remove all the settings. Do i have to delete all the projects that i created in eclipse or need to delete only those related to servlets which should run on Server ???

Thank you for quick response.
Khalid Chowdhury
Greenhorn

Joined: Jun 03, 2008
Posts: 2
I had the same problem I deleted the server from the server tab, and also the server folder under your eclipse workspace, restarted eclipse, set up a new server, and it appears to be running OK now.

Quick update, I ran a certain jsp, which seemed to screw everything up and give me the same problem, this time around I just right clicked on the server and deleted it, and checked 'Delete unused server configuration(s)' - that seemed to do the trick.

UPDATE - I think I know why I got this problem, I had made a small error in my WEB-INF/web.xml file, once I corrected this, it worked fine.
Santhosh Natarajan
Greenhorn

Joined: Mar 11, 2013
Posts: 1
The solution was straightforward:

In Eclipse, open the Servers tab
Double-click on "Tomcat v7.0 Server at localhost"
The settings tab opens, click on the Open launch configuration link in General Information
The Edit Configuration screen opens, click on the Classpath tab.
Click on the "Add External JARs..." button and browse for the missing library. In my case it was the following:

C:\Java\commons-logging-1.1.1-bin\commons-logging-1.1.1\commons-logging-1.1.1.jar
David Samuel Untama
Greenhorn

Joined: Apr 08, 2013
Posts: 1
the problem is in the descriptor web.xml, may be in the section



may be you omit the "/" character in the url-pattern

you have

but it must be


regards...
David
 
Consider Paul's rocket mass heater.
 
subject: In eclipse: A child container failed during start and Failed to start components