Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@www.apache.org Received: (qmail 47036 invoked from network); 11 Jan 2005 15:31:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 11 Jan 2005 15:31:22 -0000 Received: (qmail 8813 invoked by uid 500); 11 Jan 2005 15:30:55 -0000 Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 8553 invoked by uid 500); 11 Jan 2005 15:30:54 -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 8527 invoked by uid 99); 11 Jan 2005 15:30:54 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from mx1.magmacom.com (HELO mx1.magmacom.com) (206.191.0.217) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 11 Jan 2005 07:30:53 -0800 Received: from mail1.magma.ca (mail1.magma.ca [206.191.0.252]) by mx1.magmacom.com (8.13.0/8.13.0) with ESMTP id j0BFUpIP003559 for ; Tue, 11 Jan 2005 10:30:52 -0500 Received: from mmejaski (d141-255-218.home.cgocable.net [24.141.255.218]) (authenticated bits=0) by mail1.magma.ca (8.13.0/8.13.0) with ESMTP id j0BFUl2T017253 for ; Tue, 11 Jan 2005 10:30:51 -0500 Message-Id: <200501111530.j0BFUl2T017253@mail1.magma.ca> From: "Matt Mejaski" To: Subject: Tomcat 5.5.4 - Using a Context.xml File With a Path Different Than The File Name Date: Tue, 11 Jan 2005 10:30:46 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.6353 Thread-Index: AcT38frPljR2JF0NSDWJY4iJcmHtpg== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527 X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi all, Using Tomcat 5.0.30, I had two Contexts for webapps set up as follows. Context 1, loaded from file: /conf/Catalina/localhost/myapp.xml : Context 2, loaded from file: /conf/Catalina/localhost/myappsavedfiles.xml : Notice that the path of Context 2 is a subdirectory of Context 1. Also, notice that the docBase's are completely different directories (i.e. the docBase for context 2 isn't actually a subdirectory of the docBase of Context 1) The reason I do this is because I want the data in context 1 (my web app) to be upgradeable (and thus be blown away at will), but the data in my Context 2 (which isn't even in the webapps directory) to be persistent. Now, I want to upgrade to Tomcat 5.5.4. However, it seems that I can no longer do this in Tomcat 5.5 (according to the description of the 'path' attribute described here: http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/context.html) unless I do one of the following: 1) Put the Context tag for Context 2 directly in my server.xml, which is no longer recommended 2) Somehow name my Context 2 file with a slash in it -- which Windows isn't going to let me do! =) 3) Rename my Context 2 file to be a different path altogether, which means that I have to change by Context 1 code that refers to files in Context 2. Does anyone have any suggestions on how I can keep both of these contexts without changing my code in Context 1 that refers to the path /myapp/savedfiles, and hopefully without modifying my Tomcat server.xml? I appreciate any suggestions you may have. Thanks, Matt Mejaski --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org