That worked!

Thank you very much.  Now I don't have to tell the developers that to
upgrade to TC5.5, they have to change their code.

Thanks again,
Matt Mejaski


-----Original Message-----
From: Benjamin Armintor [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, January 11, 2005 5:52 PM
To: Tomcat Users List
Cc: [EMAIL PROTECTED]
Subject: RE: Tomcat 5.5.4 - Using a Context.xml File With a Path Different
Than The File Name

Try naming the second context file myapp#savedfiles.xml; that should result
in startup deployment to the correct context path.

Benjamin J. Armintor
Operations Systems Specialist
ITS-Systems: Mainframe Group
University of Texas - Austin
tele: (512) 232-6562
email: [EMAIL PROTECTED]
 


-----Original Message-----
From: Matt Mejaski [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 11, 2005 9:31 AM
To: tomcat-user@jakarta.apache.org
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: <Tomcat
Home>/conf/Catalina/localhost/myapp.xml
:
        <Context path="/myapp" docBase="myapp" cookies="true" debug="0"
reloadable="false" />

Context 2, loaded from file: <Tomcat
Home>/conf/Catalina/localhost/myappsavedfiles.xml :
        <Context path="/myapp/savedfiles" docBase="C:\MyApp\Saved" />

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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to