• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

embedded tomcat error: a child container failed during start  RSS feed

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey guys I've posted about this error before but with no responses.
So the thing is that i get this error when I've converted my application into a java web start file and deploy it. There were no errors when i ran it on eclipse. A tomcat server launched as expected with no errors or warnings.
I am a little confused as to which child container this is.
My error log from java web start is..



It would be really helpful if I could get a solution to this.
I am using Eclipse photon with built in maven and tomcat 8.5.5(embedded that is).
I am not making use of a web.xml file.

Also i fixed this error temporarily when i changed to tomcat 9.0.10 but only to get stuck at the creating SecureRandom instance. Thus i had to revert back to tomcat 8.5.5 to  face the above issue.
Any help would be appreciated.

Thanks,
Noel
 
Bartender
Posts: 20766
124
Android Eclipse IDE Java Linux Redhat Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I hope that you didn't name a package "com.TomCat.EmbTC". It probably would run, but it violates the package naming standards, so some tools might choke.

There's no hint in those logs, although that's awfully short to be the entire log. You could set the logger for "org.apache.catalina" to level "DEBUG" or "TRACE" and maybe it would tell you more.
 
Noel Joseph
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I didn't know package naming would have an effect on the program  I will try renaming it.
Also I am new to tomcat I have absolutely no clue on how to get the logs. If you could guide me on how to do that it would be really helpful.
 
Noel Joseph
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey,
Quick update, changing the name of the package didn't help.
Could you please help me out with the logging.
 
Saloon Keeper
Posts: 5491
143
Android Firefox Browser Mac OS X Safari Tomcat Server VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's configured in the conf/logging.properties file. Adding a line this might help, but I think it might produce a LOT of output, not much of which would be relevant:

org.apache.catalina.level = TRACE
 
Noel Joseph
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I agree but the doubt I have is that I'm using embedded tomcat and that generates no such file. I could change it though in the actual tomcat setup that I have. Would that be of any help?
 
Tim Moores
Saloon Keeper
Posts: 5491
143
Android Firefox Browser Mac OS X Safari Tomcat Server VI Editor
 
Tim Holloway
Bartender
Posts: 20766
124
Android Eclipse IDE Java Linux Redhat Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Good old Stack Overflow. Now you have a specific solution. It might even be one you can use cut-and-paste.

What this actually suggests is that when you're running Tomcat, you're running with the same logging environment as the code you're embedding from.  So if your outer app uses java.utility.logging (JULI), then it and Tomcat will log to the same channels. Which are set by the default logging properties in your JVM home if you don't provide explicit overrides. And that makes sense. It's not like Tomcat is magic.

Note that if your outer app is using another logging system (such as Log4J), you'll need a log aggregator such as slf4j in order to ensure that the different brands of logging systems all co-ordinate with each other.
 
For my next feat, I will require a volunteer from the audience! Perhaps this tiny ad?
how do I do my own kindle-like thing - without amazon
https://coderanch.com/t/711421/engineering/kindle-amazon
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!