Bug#570485: Trigger implentation to restart tomcat after a web application has been installed/upgraded

Marcus Better marcus at better.se
Fri Feb 19 09:31:25 UTC 2010


On 2010-02-19 10:24, Benoit GUERIN wrote:
> But, how do you "redeploy" a web app ?  With my own experience, I sometimes
> met some problems while upgrading a war or and unpacked web app while tomcat
> was running (incorrect class loaded, mix between old and new jars, new files
> unpacked but existing ones not being updated ...)

I know Tomcat can be flaky with redeployment and require restart at 
times, but that should be for the administrator to decide.

Also, it sounds like you are relying on Tomcat's automatic redeployment 
feature. If you manually undeploy the webapp, replace the files, and 
redeploy, there can be no risk of mixing up classes. Same if you deploy 
a WAR file - Tomcat will undeploy the old webapp before deploying the 
new one.

Replacing a running unpacked webapp without undeploying first is asking 
for trouble, of course.

Cheers,

Marcus





More information about the pkg-java-maintainers mailing list