aspose file tools*
The moose likes Tomcat and the fly likes Stopping or reloading application shuts down tomcat server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Stopping or reloading application shuts down tomcat server" Watch "Stopping or reloading application shuts down tomcat server" New topic
Author

Stopping or reloading application shuts down tomcat server

Ana Windt
Greenhorn

Joined: Jun 15, 2008
Posts: 3
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

Joined: Jan 10, 2002
Posts: 61006
    
  65

"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


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12769
    
    5
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

Joined: Jun 15, 2008
Posts: 3
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

Joined: Jun 15, 2008
Posts: 3
Error found:
One always running job in the scheduler (receiving telegrams from a DB) was finished by System.exit().
This shut down Tomcat, too.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Stopping or reloading application shuts down tomcat server