Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 30160 invoked from network); 10 Jan 2003 21:04:12 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 10 Jan 2003 21:04:12 -0000 Received: (qmail 13457 invoked by uid 97); 10 Jan 2003 21:05:07 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@jakarta.apache.org Received: (qmail 13407 invoked by uid 97); 10 Jan 2003 21:05:06 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 13394 invoked by uid 98); 10 Jan 2003 21:05:05 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) Content-Type: text/plain; charset="windows-1251" From: Paul Yunusov Reply-To: pyunusov@rogers.com To: "Tomcat Users List" Subject: Re: Context elements question Date: Fri, 10 Jan 2003 16:02:32 -0500 User-Agent: KMail/1.4.1 References: <20030110205337.VZOY460760.fep02-mail.bloor.is.net.cable.rogers.com@exchange.sun.com> In-Reply-To: <20030110205337.VZOY460760.fep02-mail.bloor.is.net.cable.rogers.com@exchange.sun.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <200301101602.32956.pyunusov@rogers.com> X-Authentication-Info: Submitted using SMTP AUTH PLAIN at fep02-mail.bloor.is.net.cable.rogers.com from [24.157.66.141] using ID at Fri, 10 Jan 2003 16:02:55 -0500 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N On Friday 10 January 2003 03:53 pm, Charlie Toohey wrote: > per the Tomcat configuration documentation at > http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/context.html > > "you MUST define a Context with a context path equal to a zero-length > string. This Context becomes the default web application for this virtual > host, and is used to process all requests that do not match any other > Context's context path." > > I have two questions about this statement: > > 1) > I don't have a Context meeting this description and everything seems to > work fine, so what are the ramifications of violating this ? Charlie, if you click on the Automatic Application Deployment link in the fourth or fifth paragraph on the same page, you will read the following: Automatic Application Deployment * Any XML ... * Any web... * Any subdirectory within the Application Base directory that appears to be an unpacked web application (that is, it contains a /WEB-INF/web.xml file) will receive an automatically generated Context element, even if this directory is not mentioned in the conf/server.xml file. This generated Context entry will be configured according to the properties set in any DefaultContext element nested in this Host element. The context path for this deployed Context will be a slash character ("/") followed by the directory name, unless the directory name is ROOT, in which case the context path will be an empty string (""). The last sentence seems to address your question but you could try deleting the ROOT directory, restarting Tomcat and seeing what happens then. > > 2) > If I were to follow this, and did not have an actual webapp with a > zero-length string as the context path (meaning that I would not have > anything valid to specify for docBase), would I then just create a dummy > webapp in directory ROOT (or wherever) just so that I could comply with > this ? > > - Charlie Paul -- To unsubscribe, e-mail: For additional commands, e-mail: