tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vikram Vaswani <>
Subject Deploying Tomcat app with Ant to non-webapps location (Windows)
Date Wed, 03 Nov 2010 03:32:45 GMT

I am new to Tomcat and request help with the following problem on

My Tomcat installation is at C:\program files\Tomcat

I have created an application as per the instructions in the Tomcat
Application Developer's Guide and am able to build and deploy it using
Ant. When deployed, the application ends up at C:\program
files\Tomcat\lcs (lcs is the application name).

I would however like to have the application deployed to a different
path ie. c:\lcs.

I am able to do this manually, by creating a separate context file in
Catalina/localhost/lcs.xml and specifying the C:\lcs path as the
Context docbase. However, I would like this to happen automatically.

I read that if I place the context fragment in my applications
META-INF/context.xml file, then this should happen automatically.
However, despite doing this, the application is still always deployed
to C:\program files\Tomcat\webapps\lcs instead of C:\lcs.

Any advice would be appreciated. TIA.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message