tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Smith <>
Subject Re: how to set context path on TOMCAT6
Date Thu, 21 Aug 2008 12:05:37 GMT
You have two options. 

1. Rename aaa.0.0.1d.war to reporting-application.war and place it in 
tomcat's webapps directory.  This is the easiest and recommended method 
of deployment.

2. Deploy the war file from somewhere outside tomcat's webapps directory 
and add reporting-application.xml to the conf/Catalina/localhost 
folder.  In the reporting-application.xml file you'll have the <Context 
...>...</Context> element configured with a docBase pointing to your war 
file.  It's a pain and only useful if you really, really, really can't 
change the war file's name.


Sushil Dodake wrote:
>  hi all,
> I am using TOMCAT 6.
> i have a application war file named as 'aaa.0.0.1d.war'
> i need to set a context path for this application as
> '/reporting-application'
> so for this to work i am creating a xml file 'reporting-application.xml' and
> deploying it in the conf/Catalina/locahost/ direcotry.
> the XML file content looks as below
> <?xml version="1.0" encoding="UTF-8"?>
> <!-- Context fragment for deploying the build-demo application
> -->
> <Context path="/reporting-application" docBase="..\webapps\aaa.0.0.1d.war"
> />
> i followed the instructions given on the link
> but i am seem to be missing somthing as i cant run my application using a

To start a new topic, e-mail:
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message