• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Anil Prajapati
Greenhorn
Posts: 2
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5575
Eclipse IDE Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5575
Eclipse IDE Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
and Welcome to JavaRanch Anil Prajapati
 
Anil Prajapati
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Shobana Thambidurai
Greenhorn
Posts: 8
IBM DB2 Java MyEclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This worked for me , Follow the post related to open Launch configuration. That helped me. Thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic