Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Stopping or reloading application shuts down tomcat server

 
Ana Windt
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have Tomcat 5.5.17 running und use the Manager to stop/start applications.

Problem: When I stop or reload one specific application, it shuts down the Tomcat server? Why could this be?

Thanks
K.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65115
89
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"schnegge",

There aren't many rules that you need to worry about here on the Ranch, but one that we take very seriously regards the use of proper names. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.

In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

Thanks!
bear
JavaRanch Sheriff
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13071
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When you say:
it shuts down the Tomcat server?


Do you get the normal shutdown messages or is some error appearing?

Bill
 
Ana Windt
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No error messages, simple shutdown of service

See localhost.log

15.06.2008 18:45:05 org.apache.catalina.core.ApplicationContext log
INFO: QuartzInitializer: Quartz Initializer Servlet loaded, initializing Scheduler...
15.06.2008 18:45:05 org.apache.catalina.core.ApplicationContext log
INFO: QuartzInitializer: Scheduler has been started...
15.06.2008 18:45:05 org.apache.catalina.core.ApplicationContext log
INFO: QuartzInitializer: Storing the Quartz Scheduler Factory in the servlet context at key: org.quartz.impl.StdSchedulerFactory.KEY
15.06.2008 18:45:05 org.apache.catalina.core.ApplicationContext log
INFO: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: [org.apache.webapp.balancer.RuleChain: [org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: News / Redirect URL: http://www.cnn.com], [org.apache.webapp.balancer.rules.RequestParameterRule: Target param name: paramName / Target param value: paramValue / Redirect URL: http://www.yahoo.com], [org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL: http://jakarta.apache.org]]
15.06.2008 18:45:06 org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
15.06.2008 18:45:06 org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
15.06.2008 18:45:59 org.apache.catalina.core.ApplicationContext log
INFO: QuartzInitializer: Quartz Scheduler successful shutdown.
15.06.2008 18:46:01 org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextDestroyed()
15.06.2008 18:46:01 org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextDestroyed()

I noticed that it works if ContextListener is removed, but I need it to initialize DBs and read .xml-configs. ContextListener should just remove context but not shutdown the server!?
 
Ana Windt
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Error found:
One always running job in the scheduler (receiving telegrams from a DB) was finished by System.exit().
This shut down Tomcat, too.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic