tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Caldarale, Charles R" <Chuck.Caldar...@unisys.com>
Subject RE: How set a default context
Date Tue, 26 Sep 2006 19:14:31 GMT
> From: Angelov, Rossen [mailto:Rossen.Angelov@SourceMedia.com] 
> Subject: RE: How set a default context
> 
> - a Context that has an empty PATH attribute will become the 
> default web application for the virtual host. This definitely
> works on Tomcat 5.5

Definitely not true.  Read the doc:
http://tomcat.apache.org/tomcat-5.5-doc/config/context.html

which states:

"Please note that for tomcat 5, unlike tomcat 4.x, it is NOT recommended
to place <Context> elements directly in the server.xml file.  Instead,
put them in the META-INF/context.xml directory of your WAR file or the
conf directory as described above."

and

"The value of this field [path] must not be set except when statically
defining a Context in server.xml, as it will be infered [sic] from the
filenames used for either the .xml context file or the docBase."

> - DefaultContext element in the Host is the other way to define a
> default context, but this may work only on Tomcat 5.0

The DefaultContext element only specified the set of attributes common
to all contexts; it did not specify what the default application was.
DefaultContext was replaced by the conf/context.xml file quite some time
ago.

 - 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


Mime
View raw message