tomcat-users mailing list archives

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

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

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.

Vikram

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


Mime
View raw message