-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Arjan,
On 8/7/2009 10:33 AM, M4N - Arjan Tijms wrote: > Well, in my humble opinion this is how it worked yesterday. Doesn't it > work like this today (for exploded archives): > > 1. If there is a context descriptor in > $CATALINA_BASE/conf/[enginename]/[hostname]/[webappname].xml use this. > 2. Otherwise, *copy* the context descriptor > $CATALINA_BASE/webapps/[webappname]/META-INF/context.xml to > $CATALINA_BASE/conf/[enginename]/[hostname]/[webappname].xml > 3. Go 1. > > I fully understand the need for global overrides, but the procedure of > copying the very first encountered context.xml from a web application > and then continue to use that as the global override variant, I'm sorry > but I just don't see the logic in doing that. This is a mechanism to protect cowboy developers against overwriting carefully-constructed deployment descriptors written by deployment experts. If the deployment folks are just updating the WAR (or exploded WAR... whatever), they don't expect the deployment to suddenly change. On the other hand, if the webapp is /undeployed/ and then re-deployed, then the deployment folks need to make sure that they are working with an updated deployment descriptor, and will either accept the one from those cowboy developers, or craft a new one using the WAR file and old carefully-crafted deployment descriptor as a reference. > It's just this > "copy-from-local-and-use-as-global-but-only-for-the-first-time" that > just raises questions with me. It's more like copy-from-local-and-use-as-global-on-initial-deployement. Re-deployment doesn't count as deployment. Again, everyone keeps telling you that your woes will disappear if you do an undeploy/deploy instead of a re-deploy. How often does your context.xml file change, anyway? :) > Maybe the one who writes the Tomcat documentation could make this a > little clearer? Patches are always welcome, including for documentation. - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkp8gX4ACgkQ9CaO5/Lv0PDJdgCgvKqNM1ig0jqUDcKtrVlPZElu mBsAmQHBWwWIJBIJyb7lz3D+I0CSR5pK =P9qP -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org