On 30/10/2012 13:29, Ted Smith wrote:
> None of these alternatives is suitable for my situation.
> 
> I wonder since tomcat knows the contextname for each app,  if it is
> possible to have a context specific web.xml
> in the conf file in addition to the one for all web.xml,   such as  
> web_contextname.xml
> that can be applied to contextname only.

There is an undocumented (apart from the JavaDoc) attribute for the
StandardContext [1] that you can use to specify an alternative
deployment descriptor. Look for altDDName. It needs to be the full path
to the alternative web.xml. I haven't tested this in a long time.

Mark

[1]
http://tomcat.apache.org/tomcat-7.0-doc/api/org/apache/catalina/core/StandardContext.html


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to