You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2011/07/23 10:56:10 UTC
svn commit: r1150070 - in /tomcat/trunk/webapps/docs: changelog.xml
config/context.xml
Author: markt
Date: Sat Jul 23 08:56:10 2011
New Revision: 1150070
URL: http://svn.apache.org/viewvc?rev=1150070&view=rev
Log:
Make rules on settng path clearer
Modified:
tomcat/trunk/webapps/docs/changelog.xml
tomcat/trunk/webapps/docs/config/context.xml
Modified: tomcat/trunk/webapps/docs/changelog.xml
URL: http://svn.apache.org/viewvc/tomcat/trunk/webapps/docs/changelog.xml?rev=1150070&r1=1150069&r2=1150070&view=diff
==============================================================================
--- tomcat/trunk/webapps/docs/changelog.xml (original)
+++ tomcat/trunk/webapps/docs/changelog.xml Sat Jul 23 08:56:10 2011
@@ -129,6 +129,11 @@
if the connector is also configured with
<code>URIEncoding="UTF-8"</code>.(markt)
</update>
+ <update>
+ 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)
+ </update>
</changelog>
</subsection>
<subsection name="Other">
Modified: tomcat/trunk/webapps/docs/config/context.xml
URL: http://svn.apache.org/viewvc/tomcat/trunk/webapps/docs/config/context.xml?rev=1150070&r1=1150069&r2=1150070&view=diff
==============================================================================
--- tomcat/trunk/webapps/docs/config/context.xml (original)
+++ tomcat/trunk/webapps/docs/config/context.xml Sat Jul 23 08:56:10 2011
@@ -307,9 +307,15 @@
If you specify a context path of an empty string (""), you are
defining the <em>default</em> web application for this Host, which
will process all requests not assigned to other Contexts.</p>
- <p>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.</p>
+ <p>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.
+ </p>
+ <p>Even when statically defining a Context in server.xml, this attribute
+ must not be set unless either the docBase is not located under the
+ <a href="host.html">Host</a>'s <code>appBase</code> or both
+ <code>deployOnStartup</code> and <code>autoDeploy</code> are false. If
+ this rule is not followed, double deployment is likely to result.</p>
</attribute>
<attribute name="preemptiveAuthentication" required="false">
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org