DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=31277>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=31277 Applciation deployed twice after restart if path doesn't match war filename [EMAIL PROTECTED] changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Component|Webapps:Manager |Webapps:Documentation Resolution|INVALID | ------- Additional Comments From [EMAIL PROTECTED] 2004-09-20 09:38 ------- I did have the flag autoDeploy set to false but your comment pointed me in the right direction. The flag that needs turning off is in fact deployOnStartup. So the host element needs to be: <Host name="localhost" debug="0" appBase="webapps" unpackWARs="false" autoDeploy="false" deployOnStartup="false"> I think there is still an issue around the documentation. The help on Automatic Application Deployment is misleading (http://jakarta.apache.org/tomcat/tomcat- 5.0-doc/config/host.html#Automatic%20Application%20Deployment). 1. I think the first action happens even when deployOnStartup is false - I didn't try this attribute because I thought it would stop things deploying on startup but it doesn't. Actually it solves the problem I was having by only deploying things from context files in $CATALINA_HOME/conf/[engine_name]/[host_name], but doesn't deploy things from appBase. 2. Should the second action read "Any web application archive file <ins>within the application base directory</ins> that does not have a corresponding directory of the same name..." 3. The paragraph starting "In addition to the automatic deployment" doesn't mention the attribute "autoDeploy" but I think this is what it is referring to. 4. The last paragraph starting "When using automatic deployment," doesn't reflect the fact that if you upload a war file, the docBase attribute is ignored and the file goes in the appBase directory. Hence you get double deployment on restart unless you disable deployOnStartup I accept that this was in fact a configuration issue but hopefully the documentation can be made clearer. Thanks --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]