• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 2
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.

 
Ranch Hand
Posts: 5575
Eclipse IDE Windows XP Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 Windows XP Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
and Welcome to JavaRanch Anil Prajapati
 
Anil Prajapati
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 1
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 8
IBM DB2 MyEclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This worked for me , Follow the post related to open Launch configuration. That helped me. Thanks
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"there is no problem with tomcat".

I have suffered 4-5 days to resolve the issue (same issue mentioned above). here i was using tomcat 8.5. Finally, the issue got resolved, the issue was with the "Corrupted jar files". You have to delete all your .m2 repository (for me C:\Users\Bandham.m2\repository). den run "mvn clean install" command from your project folder.

happy coding.
 
reply
    Bookmark Topic Watch Topic
  • New Topic