Monday, October 03, 2005

Tomcat Deploy on Restart

It seems that Tomcat has a deployment problem. If you stop Tomcat, copy a new .war file to ./webapps, and start Tomcat, it won't pick up the new file and deploy it. I'm not certain about this, but it also seems that even if the file is placed there right when Tomcat finishes startup, it might not be picked up.

In my case, I was doing a full build and restart after I grabbed new files from CVS. A coworker suggested that the best way to do this would be to grab new, rebuild, deploy, let Tomcat catch up, and then restart Tomcat (especially if there are changes that would require a restart, such as a new JNI shared/dynamic library).

1 Comments:

Anonymous Anonymous said...

If you're running Tomcat under JBoss, you don't have this problem... Of course that is a lot of overhead depending on what you're doing. Just a thought.

11:29 PM  

Post a Comment

<< Home