Default web.xml for all webapps of a specific Host

2013-05-16 Thread Xavier Dury
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  -

Re: Default web.xml for all webapps of a specific Host

2013-05-16 Thread Mark Thomas
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 -

RE: Default web.xml for all webapps of a specific Host

2013-05-16 Thread Xavier Dury
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

Re: Default web.xml for all webapps of a specific Host

2013-05-16 Thread Mark Thomas
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

RE: Default web.xml for all webapps of a specific Host

2013-05-16 Thread Xavier Dury
...@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

Re: Default web.xml for all webapps of a specific Host

2013-05-16 Thread Mark Thomas
On 16/05/2013 14:47, Xavier Dury wrote: 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.

RE: Default web.xml for all webapps of a specific Host

2013-05-16 Thread Xavier Dury
no harm in asking =) Thanks, Xavier Date: Thu, 16 May 2013 15:01:28 +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 14:47, Xavier Dury wrote: I tried adding

Re: Default web.xml for all webapps of a specific Host

2013-05-16 Thread Mark Thomas
On 16/05/2013 15:55, Xavier Dury wrote: Ok, I checked with only listeners and filter-mappings (whose order matters) and the resulting order is the following (from top to bottom in effective web.xml): 1: main web.xml 2: global web.xml 3: host web.xml.default So is it possible to have

RE: Default web.xml for all webapps of a specific Host

2013-05-16 Thread Xavier Dury
the content of the host web.xml to be applied first and transparently to the webapp. Xavier From: kal...@hotmail.com To: users@tomcat.apache.org Subject: RE: Default web.xml for all webapps of a specific Host Date: Thu, 16 May 2013 16:55:55 +0200 Ok, I

RE: Default web.xml for all webapps of a specific Host

2013-05-16 Thread Xavier Dury
Nevermind my last mail, you responded while I was typing. I will look into ServletContextInitializer. Thanks, Xavier From: kal...@hotmail.com To: users@tomcat.apache.org Subject: RE: Default web.xml for all webapps of a specific Host Date: Thu, 16