Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@www.apache.org Received: (qmail 88239 invoked from network); 11 Jan 2005 16:38:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 11 Jan 2005 16:38:06 -0000 Received: (qmail 10106 invoked by uid 500); 11 Jan 2005 16:37:48 -0000 Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 10023 invoked by uid 500); 11 Jan 2005 16:37:47 -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 10010 invoked by uid 99); 11 Jan 2005 16:37:47 -0000 X-ASF-Spam-Status: No, hits=0.4 required=10.0 tests=DNS_FROM_RFC_ABUSE,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of parsonstechnical@earthlink.net designates 207.217.121.183 as permitted sender) Received: from pop-a065c05.pas.sa.earthlink.net (HELO pop-a065c05.pas.sa.earthlink.net) (207.217.121.183) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 11 Jan 2005 08:37:46 -0800 Received: from va-69-34-33-6.sta.sprint-hsd.net ([69.34.33.6] helo=ptslaptop) by pop-a065c05.pas.sa.earthlink.net with smtp (Exim 3.33 #1) id 1CoP1c-0000wr-00 for tomcat-user@jakarta.apache.org; Tue, 11 Jan 2005 08:37:44 -0800 Message-ID: <28cd01c4f7fb$d5c906f0$8101a8c0@ptslaptop> From: "Parsons Technical Services" To: "Tomcat Users List" References: <200501111530.j0BFUl2T017253@mail1.magma.ca> Subject: Re: Tomcat 5.5.4 - Using a Context.xml File With a Path Different Than The File Name Date: Tue, 11 Jan 2005 11:37:26 -0500 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N If you don't use autodeploy, you can turn this off and use a context with "yourchoice" path like in 5.0 . Otherwise Tomcat will deploy the app twice, once using your xml and once using the default xml. http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/host.html#Automatic%20Application%20Deployment Someone slap me if I am wrong here. Doug ----- Original Message ----- From: "Matt Mejaski" To: Sent: Tuesday, January 11, 2005 10:30 AM Subject: Tomcat 5.5.4 - Using a Context.xml File With a Path Different Than The File Name > Hi all, > > Using Tomcat 5.0.30, I had two Contexts for webapps set up as follows. > > Context 1, loaded from file: Home>/conf/Catalina/localhost/myapp.xml > : > reloadable="false" /> > > Context 2, loaded from file: Home>/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 > > > --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org