Michael Ludwig wrote: > Mark Thomas schrieb: >> Michael Ludwig wrote: > >>> "Static deployment" does not seem to handle META-INF/context.xml - >>> and that looks broken. >> >> No, static deployment is not deprecated. >> >> Static deployment *does* handle context.xml. It is working as >> designed. If you delete the WAR/DIR *and wait for Tomcat to spot this* >> then any CATALINA_BASE/<engine>/<host>/context.xml will be deleted. > > Not rather $CATALINA_BASE/conf/[engine]/[host]/[appname].xml ?
Correct. I was being lazy. > And does it also apply when the [appname].xml wasn't copied there by > Tomcat but placed there by the admin? I suspected that Tomcat doesn't > distinguish between the two cases. Also correct. >> If you overwrite the WAR/DIR then the >> CATALINA_BASE/<engine>/<host>/context.xml will be left alone. > > This should go into the doc (possibly in corrected form), unless it is > there in some form and we haven't seen it. Fourth bullet of this page: http://tomcat.apache.org/tomcat-6.0-doc/config/context.html >>>> Currently the documentation says: >>>> >>>>> If you are not interested in using the Tomcat Manager, or TCD, then >>>>> you'll need to deploy your web applications statically to Tomcat, >>>>> followed by a Tomcat startup. >>>> See: http://tomcat.apache.org/tomcat-6.0-doc/deployer-howto.html > > This seems to imply that you have to shut down Tomcat before static > deployment. That all depends what risks you are prepared to take. There is a chance that Tomcat will spot the updated WAR and start to deploy it before the copy has finished. If this happens then the deployment will be corrupted. Larger WARs and copying over a slow network connection make this more likely. A local move is far less likely to have an issue but there is always a chance. >>> It seems misleading indeed. Maybe the description of the "deployment >>> sequence" should amend this sentence: >>> >>> | 1. Any Context Descriptors will be deployed first. >> >> This means any files found in >> CATALINA_BASE/<engine>/<host>/context.xml > > Just to be 100% sure, does that mean: Any WARs or web application > directories referenced from Context Descriptors found in > $CATALINA_BASE/conf/[engine]/[host]/ ? Correct. The deployer how-to probably needs: a) some tweaks b) a reference to the context config page Mark --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org