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.
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.