I noticed that most of the timeI when I tried to re-deploy the petclinic application (undeploy and browse deploy) that the hot deploy would fail, or to be more precise the undeploy would only partially work.
The problem appeared to be that certain jar files of the application remained locked and therefore could not be deleted from the windows directory (C:\workspace\tools\apache-tomcat-5.5.23\webapps\petclinic)
I looked into several issues:
- virus scan locking the file (so I disabled that)
- Ctfmon.exe (language text program) locking the file (not sure why I thought this might be a problem but I disabled it as well)
http://support.microsoft.com/default.aspx?scid=kb;EN-US;q282599
FINALLY...
- I found a blog entry that described the problem and how to fix it.
I've put the fix into the repository in
C:\workspace\tools\apache-tomcat-5.5.23\conf\context.xml
changing:
<Context>
to:
<Context antiJARLocking="true">
NOTE: I don't know if this will cause problems for linux users.