You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Vigorito, Nicholas E." <NI...@saic.com> on 2007/08/09 20:50:42 UTC
Tomcat 5.5.20 application context set using Path?
I have a web app that is located outside the webapps directory. Put the
context file app_name.xml in the conf/Catalina/localhost directory. The
context has a docBase attribute that points to the directory and has a
path attribute. The context for the application always ends up being
/app_name instead of what is specified in the path attribute. Is there
any way to get it to use the path attribute? This worked just fine with
Tomcat 5.0.28.
Thanks!
Nick
RE: Tomcat 5.5.20 application context set using Path?
Posted by "Vigorito, Nicholas E." <NI...@saic.com>.
Thanks!
-----Original Message-----
From: users-return-167415-NICHOLAS.E.VIGORITO=saic.com@tomcat.apache.org
[mailto:users-return-167415-NICHOLAS.E.VIGORITO=saic.com@tomcat.apache.o
rg] On Behalf Of Caldarale, Charles R
Sent: Thursday, August 09, 2007 3:24 PM
To: Tomcat Users List
Subject: RE: Tomcat 5.5.20 application context set using Path?
> From: Vigorito, Nicholas E. [mailto:NICHOLAS.E.VIGORITO@saic.com]
> Subject: RE: Tomcat 5.5.20 application context set using Path?
>
> Actually, having the path attribute is more flexible. You can then
> specify something like /a/b/c which you cannot do with a filename.
Not correct; use the name a#b#c.xml if you want a multi-level path.
- Chuck
THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
RE: Tomcat 5.5.20 application context set using Path?
Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Vigorito, Nicholas E. [mailto:NICHOLAS.E.VIGORITO@saic.com]
> Subject: RE: Tomcat 5.5.20 application context set using Path?
>
> Actually, having the path attribute is more flexible. You can then
> specify something like /a/b/c which you cannot do with a filename.
Not correct; use the name a#b#c.xml if you want a multi-level path.
- Chuck
THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
RE: Tomcat 5.5.20 application context set using Path?
Posted by "Vigorito, Nicholas E." <NI...@saic.com>.
Actually, having the path attribute is more flexible. You can then
specify something like /a/b/c which you cannot do with a filename.
Nick
-----Original Message-----
From: users-return-167406-NICHOLAS.E.VIGORITO=saic.com@tomcat.apache.org
[mailto:users-return-167406-NICHOLAS.E.VIGORITO=saic.com@tomcat.apache.o
rg] On Behalf Of Caldarale, Charles R
Sent: Thursday, August 09, 2007 3:10 PM
To: Tomcat Users List
Subject: RE: Tomcat 5.5.20 application context set using Path?
> From: Vigorito, Nicholas E. [mailto:NICHOLAS.E.VIGORITO@saic.com]
> Subject: Tomcat 5.5.20 application context set using Path?
>
> I have a web app that is located outside the webapps directory. Put
> the context file app_name.xml in the conf/Catalina/localhost
> directory. The context has a docBase attribute that points to the
> directory and has a path attribute.
You were o.k. up to that point. The path attribute must not be used;
instead, insure that the name of the file containing your <Context>
element is the path you wish to use for your webapp. Recent versions of
Tomcat got rid of the redundancy and ambiguity of the path attribute.
- Chuck
THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
RE: Tomcat 5.5.20 application context set using Path?
Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Vigorito, Nicholas E. [mailto:NICHOLAS.E.VIGORITO@saic.com]
> Subject: Tomcat 5.5.20 application context set using Path?
>
> I have a web app that is located outside the webapps
> directory. Put the context file app_name.xml in the
> conf/Catalina/localhost directory. The context has a
> docBase attribute that points to the directory and has
> a path attribute.
You were o.k. up to that point. The path attribute must not be used;
instead, insure that the name of the file containing your <Context>
element is the path you wish to use for your webapp. Recent versions of
Tomcat got rid of the redundancy and ambiguity of the path attribute.
- Chuck
THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org