I'm trying to use the ant autodeploy feature with a context.xml fragment in
the MET-INF directory. Mailing lists and all the documentation I've read
show this to be a no-brainer. I'm sure I'm being ignorant of something
incredibly obvious, but I just can't see it.

 

I'm using the basic build.xml  file from the Tomcat site.

I'm using Tomcat version 5.0.16

 

In the source directory I have

 

Build

Dist

Docs

Src

Web

 

Under web I have

 

META-INF

Templates

WEB-INF

 

In META-INF I have a context.xml fragment (contents included below).

 

When I do a build, I see that the META-INF directory and the context.xml
file gets copied the build directory. But when I do an ant deploy, it does
create an xml file in the Catalina conf directory (name of the file when
copied is the name of the web app, not context.xml). However, the contents
of the this file do not contain the specific configuration information I put
in context.xml.

 

 In summary, it does not appear as though the deploy task is using my
context.xml file when it does the install/deploy.

 

Ideas?

 

Many thanks in advance ..

 

Reply via email to