tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Thomas <ma...@apache.org>
Subject Re: Tomcat mapping of URLs -> servlets
Date Wed, 03 Dec 2008 17:18:42 GMT
André Warnier wrote:
> Caldarale, Charles R wrote:
>>> From: André Warnier [mailto:aw@ice-sa.com]
>>> Subject: Re: Tomcat mapping of URLs -> servlets
>>>
>>> At deployment time thus (in my hypothetical case above when
>>> Tomcat starts and finds a such webapps top dir), does it
>>> recursively go through the webapp dirs and subdirs, to
>>> determine what is a webapp and what is not ?
>>
>> No, that's not necessary; only .war files and directories immediately
>> under a <Host>'s appBase along with any <Context> elements with
>> non-redundant docBase attributes are webapps.
>>
> Ok, thanks.
> So, in my admittedly forced earlier example, only /foo would be
> recognised as a webapp, and even /foo/bar would not be.
> Except if there was, for /foo/bar, an appropriate <Context> element,
> inside a foo#bar.xml file, itself located under
> (tomcat_base)/conf/Catalina/(hostname)/
> 
> Have I finally got it right ?

Almost ;)

As of 6.0.18 you can have foo#bar.war or a foo#bar directory in your host's
appBase and they will also be recognised as having a context path of /foo/bar

Mark


---------------------------------------------------------------------
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