-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Dennis,
On 7/22/2011 12:22 PM, Dennis de Champeaux wrote: > The fragment of server.xml for this virtual host: <Host > name="www.testzzz.com" appBase="/home/ddc/test" unpackWARs="true" > autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false"> > <Context path="" docBase = "/home/ddc/test/test" debug="0" > reloadable="false" crossContext="false"> </Context> ... </Host> Having a <Context> docBase set to as subdirectory of the <Host> appBase will result in a double-deployment because: 1. <Context> specifies /home/ddc/test/test to deploy 2. <Host> autoDeploy="true" will auto-deploy "/home/ddc/test/test" because it is subdirectory of /home/ddc/test You have several options: 1. Remove <Context> from server.xml and rely on your webapp's META-INF/context.xml file to specify any settings you might need. Rely on auto-deploy to deploy this context. This is safer for a number of reasons, and is the recommended technique. 2. Move your "test" webapp somewhere other than in the <Host> appBase. It would be better to use conf/[service]/[host]/[webapp].xml instead of putting your <Context> directly into server.xml. 3. Change <Host> to autoDeploy="false" which will stop the second deployment listed above. This obviously means that other contexts will not be auto-deployed. 4. Change the <Host> appBase to point somewhere else. > Hence the question(s): URL/URI semantics allow both links to > succeed? No, this is a configuration issue, not any ambiguity in URL semantics. > If not, TC6 is willing to go the extra mile? No, you have a double-deployment which is why both are working. > TC (6.0.32) is wacko? TC is working as designed. TC is being directed to both auto-deploy the webapp and to explicitly deploy the webapp as well. Hope that helps, - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk4tiuQACgkQ9CaO5/Lv0PDaPQCeJnwS4EMfCHDdxkH7b9pYnYM7 13oAn1BU85qZOqqEEO6oQlV/bNtKHNWB =1iHH -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org