Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Restarting a Context in Tomcat 5?

Status
Not open for further replies.

probedb

Programmer
Oct 10, 2007
1
Hi all,

I'm trying to get Tomcat to properly reload a webapp that is deployed from a war file.

All JSPs are precompiled into the classes directory.

If I use a 'Reload' in the manager webapp then Tomcat won't pick up the changes if I redeploy the app....basically you get this single line in the log:

10-Oct-2007 08:12:33 org.apache.catalina.core.StandardContext reload
INFO: Reloading this Context has started

However if I make a change to the web.xml it will pick the changes and I've noticed a restartContext line in the logs (below) that I can't work out how to do through the manager app.

10-Oct-2007 08:12:34 org.apache.catalina.startup.HostConfig restartContext
INFO: restartContext()

I also tried the "reloadable" attribute in the relevant Context and this works and it will pick up changes but this is not recommended on a live website according to the docs.

Any thoughts?

Cheers!

Paul.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top