Bug 38262

Summary: ambiguous documentation re: redploying updated WAR
Product: Tomcat 5 Reporter: Jeffrey Bennett <jbennett2091>
Component: Webapps:DocumentationAssignee: Tomcat Developers Mailing List <dev>
Severity: normal    
Priority: P2    
Version: 5.0.28   
Target Milestone: ---   
Hardware: All   
OS: other   
URL: file://///rochdev1/Tomcat/webapps/tomcat-docs/config/printer/host.html#Automatic%20Application%20Deployment

Description Jeffrey Bennett 2006-01-13 16:36:02 UTC
Original Text:
Any web application archive file that does not have a corresponding directory of
the same name (without the ".war" extension) will be automatically expanded,
unless the unpackWARs property is set to false. If you redeploy an updated WAR
file, be sure to delete the expanded directory when restarting Tomcat, so that
the updated WAR file will be re-expanded (note that the auto deployer will
automatically take care of this if it is enabled).

Does the auto-deployer take care of the reexpansion, or the deleting of the
previously expanded directory?  In practice, it seems to be the former (meaning
you have to delete the dir, and autoDeploy will reexpand the new war for you),
but this passage could also be interpretted as: autoDeploy will check the date
of the war vs what is already expanded and re-expand as necessary (it doesn't).

I recommend:
"(note that the auto deployer will automatically expand the updated WAR file
once the previously expanded directory is removed)."
Comment 1 Yoav Shapira 2006-04-13 19:24:35 UTC
Good suggestion, I've applied it, thank you.