Return-Path:
X-Original-To: apmail-tomcat-dev-archive@www.apache.org
Delivered-To: apmail-tomcat-dev-archive@www.apache.org
Received: from mail.apache.org (hermes.apache.org [140.211.11.3])
by minotaur.apache.org (Postfix) with SMTP id 2A4E660D3
for ;
Tue, 2 Aug 2011 09:39:26 +0000 (UTC)
Received: (qmail 89381 invoked by uid 500); 2 Aug 2011 09:39:24 -0000
Delivered-To: apmail-tomcat-dev-archive@tomcat.apache.org
Received: (qmail 88863 invoked by uid 500); 2 Aug 2011 09:39:08 -0000
Mailing-List: contact dev-help@tomcat.apache.org; run by ezmlm
Precedence: bulk
List-Help:
List-Unsubscribe:
List-Post:
List-Id:
Reply-To: "Tomcat Developers List"
Delivered-To: mailing list dev@tomcat.apache.org
Received: (qmail 88840 invoked by uid 99); 2 Aug 2011 09:39:02 -0000
Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136)
by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Aug 2011 09:39:02 +0000
X-ASF-Spam-Status: No, hits=-2000.0 required=5.0
tests=ALL_TRUSTED
X-Spam-Check-By: apache.org
Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4)
by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Aug 2011 09:39:01 +0000
Received: from eris.apache.org (localhost [127.0.0.1])
by eris.apache.org (Postfix) with ESMTP id E92AA23888CE
for ; Tue, 2 Aug 2011 09:38:40 +0000 (UTC)
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Subject: svn commit: r1153083 - in /tomcat/tc6.0.x/trunk/webapps/docs:
changelog.xml
config/context.xml
Date: Tue, 02 Aug 2011 09:38:40 -0000
To: dev@tomcat.apache.org
From: kkolinko@apache.org
X-Mailer: svnmailer-1.0.8
Message-Id: <20110802093840.E92AA23888CE@eris.apache.org>
Author: kkolinko
Date: Tue Aug 2 09:38:38 2011
New Revision: 1153083
URL: http://svn.apache.org/viewvc?rev=1153083&view=rev
Log:
CTR: docs
Clarify rules on setting the path attribute on Context elements when defined in server.xml
It is backport of Mark's r1150070.
Modified:
tomcat/tc6.0.x/trunk/webapps/docs/changelog.xml
tomcat/tc6.0.x/trunk/webapps/docs/config/context.xml
Modified: tomcat/tc6.0.x/trunk/webapps/docs/changelog.xml
URL: http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/webapps/docs/changelog.xml?rev=1153083&r1=1153082&r2=1153083&view=diff
==============================================================================
--- tomcat/tc6.0.x/trunk/webapps/docs/changelog.xml (original)
+++ tomcat/tc6.0.x/trunk/webapps/docs/changelog.xml Tue Aug 2 09:38:38 2011
@@ -333,6 +333,11 @@
Improve class loading documentation. (kkolinko)
+
+ Update documentation to be even more explicit about the implications
+ of setting the path
attribute on a Context
+ element in server.xml
. (markt/kkolinko)
+
Modified: tomcat/tc6.0.x/trunk/webapps/docs/config/context.xml
URL: http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/webapps/docs/config/context.xml?rev=1153083&r1=1153082&r2=1153083&view=diff
==============================================================================
--- tomcat/tc6.0.x/trunk/webapps/docs/config/context.xml (original)
+++ tomcat/tc6.0.x/trunk/webapps/docs/config/context.xml Tue Aug 2 09:38:38 2011
@@ -220,9 +220,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.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org