I tried adding a $CATALINA_BASE/conf/[enginename]/[hostname]/web.xml.default 
and checked what was the resulting web.xml with logEffectiveWebXml="true". I 
noticed that the order of the various elements (filter, servlets...) appeared 
as:

 1. conf/web.xml
 2. WEB-INF/web.xml
 3. $CATALINA_BASE/conf/[enginename]/[hostname]/web.xml.default

I would have expected WEB-INF/web.xml to be the last one (or the first one if 
you want, but certainly not between the 2 others). Is it normal?

Thanks,

Xavier

----------------------------------------
> Date: Thu, 16 May 2013 10:12:46 +0100
> From: ma...@apache.org
> To: users@tomcat.apache.org
> Subject: Re: Default web.xml for all webapps of a specific Host
>
> On 16/05/2013 09:55, Xavier Dury wrote:
>> Thanks, I didn't find any reference to web.xml.default in the doc. Maybe, I 
>> wasn't looking at the right place.
>
> It is only mentioned as a constant in the Javadocs so folks are going to
> find it there. Patches to improve the docs are welcome.
>
> Mark
>
>>
>> Regards,
>>
>> Xavier
>>
>> ----------------------------------------
>>> Date: Thu, 16 May 2013 09:49:34 +0100
>>> From: ma...@apache.org
>>> To: users@tomcat.apache.org
>>> Subject: Re: Default web.xml for all webapps of a specific Host
>>>
>>> On 16/05/2013 09:40, Xavier Dury wrote:
>>>> Hi,
>>>>
>>>> Is it possible to have a default web.xml that will be loaded for all 
>>>> applications inside a Host?
>>>>
>>>> The doc states this is possible for context.xml which is computed from:
>>>>
>>>> - $CATALINA_BASE/conf/context.xml
>>>> - $CATALINA_BASE/conf/[enginename]/[hostname]/context.xml.default
>>>> - /META-INF/context.xml
>>>>
>>>> For web.xml, the following files are used:
>>>>
>>>> - $CATALINA_BASE/conf/web.xml
>>>> - /WEB-INF/web.xml
>>>>
>>>> I would like to have some sort of 
>>>> $CATALINA_BASE/conf/[enginename]/[hostname]/web.xml.default too.
>>>
>>> That is already supported and that is exactly the right location and
>>> name for the per-host web.xml file.
>>>
>>> Mark
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
>>> For additional commands, e-mail: users-h...@tomcat.apache.org
>>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
>> For additional commands, e-mail: users-h...@tomcat.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>                                         
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to