From: markt Date: Sat, 23 Jul 2011 08:56:10 +0000 (+0000) Subject: Make rules on settng path clearer X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=d12b93d0dc08e0ae4e2853f2cb8e063f6b60708f;p=tomcat7.0 Make rules on settng path clearer git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1150070 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/webapps/docs/changelog.xml b/webapps/docs/changelog.xml index 8cac95dc3..9caec84ce 100644 --- a/webapps/docs/changelog.xml +++ b/webapps/docs/changelog.xml @@ -129,6 +129,11 @@ if the connector is also configured with URIEncoding="UTF-8".(markt) + + Update the documentation web application to be even more explicit about + the implications of setting the path attribute on a Context element in + server.xml. (markt) + diff --git a/webapps/docs/config/context.xml b/webapps/docs/config/context.xml index f87723128..30a52f985 100644 --- a/webapps/docs/config/context.xml +++ b/webapps/docs/config/context.xml @@ -307,9 +307,15 @@ If you specify a context path of an empty string (""), you are defining the default web application for this Host, which will process all requests not assigned to other Contexts.

-

The value of this field must not be set except when statically - defining a Context in server.xml, as it will be inferred from the - filenames used for either the .xml context file or the docBase.

+

This attribute must only be used when statically defining a Context + in server.xml. In all other circumstances, the path will be inferred + from the filenames used for either the .xml context file or the docBase. +

+

Even when statically defining a Context in server.xml, this attribute + must not be set unless either the docBase is not located under the + Host's appBase or both + deployOnStartup and autoDeploy are false. If + this rule is not followed, double deployment is likely to result.