Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Tomcat Users »

Putting context.xml in .war/META-INF/context.xml

Matt Raible

2004-01-16


>From reading this article:

http://www.onjava.com/pub/a/onjava/2003/01/08/tomcat4.html?page=3

I assumed that Tomcat supported putting a context.xml in META-INF/ and
it would act the same as placing it in webapps. If found that this
didn't work testing today. And after reviewing the article more, I
found it was the "install" target that made this look like it worked:

  <target name="install" description="Installs the Web Application"
depends="package">
    <echo message="Installing ${app.name} ..."/>
    <install url="${manager.url}" username="${username}"
password="${password}" path="/${app.name}"
       config="file:${basedir}/war/META-INF/context.xml"
war="file:${basedir}/${app.name}.war"/>
  </target>

I remember one time on this list that added support for
META-INF/context.xml was going to be added. So my question is - was it
ever added, and if so - which version of Tomcat supports it.

Thanks,

Matt


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)



©2008 junlu.com - Jax Systems, LLC, U.S.A.