Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Apache Tomcat »

RE: Tomcat 5.5.20 application context set using Path?

Vigorito, Nicholas E.

2007-08-09

Replies:

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@(protected)
[mailto:users-return-167406-NICHOLAS.E.VIGORITO=saic.com@(protected)
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@(protected)]
> 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@(protected),
e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)

---------------------------------------------------------------------
To start a new topic, e-mail: users@(protected)
To unsubscribe, e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.