You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Luca Cicale <in...@alsoftware.it> on 2008/08/21 09:35:33 UTC
Re: [programmazione] how to set context path on TOMCAT6
A simple way is to put in your web application a file named context.xml in
META-INF directory, with the following content:
<?xml version="1.0" encoding="UTF-8"?>
<Context path="/reporting-application" />
then you can produce your war and deploy it as usually (a simple way is to
place it in your webapp directory in default tomcat6 configuration)
Tomcat6 will make the rest of the job for you.
Regards
Luca Cicale
--------------------------------------------------
From: "Sushil Dodake" <su...@gmail.com>
Sent: Thursday, August 21, 2008 9:04 AM
To: <us...@tomcat.apache.org>
Subject: [programmazione] how to set context path on TOMCAT6
> 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
> http://tomcat.apache.org/tomcat-6.0-doc/config/context.html
> but i am seem to be missing somthing as i cant run my application using a
> URL
>
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: [programmazione] how to set context path on TOMCAT6
Posted by Luca Cicale <in...@alsoftware.it>.
In the way I explained you create a application specific xml.
the META-INF directory containing the context.xml is in your application, in
your war file.
--------------------------------------------------
From: "Sushil Dodake" <su...@gmail.com>
Sent: Thursday, August 21, 2008 9:52 AM
To: "Tomcat Users List" <us...@tomcat.apache.org>
Subject: Re: [programmazione] how to set context path on TOMCAT6
> my requirement is to create a application specific xml file.
> am i making any mistake here?
>
> On Thu, Aug 21, 2008 at 2:35 AM, Luca Cicale <in...@alsoftware.it> wrote:
>
>> A simple way is to put in your web application a file named context.xml
>> in
>> META-INF directory, with the following content:
>> <?xml version="1.0" encoding="UTF-8"?>
>> <Context path="/reporting-application" />
>>
>> then you can produce your war and deploy it as usually (a simple way is
>> to
>> place it in your webapp directory in default tomcat6 configuration)
>>
>> Tomcat6 will make the rest of the job for you.
>>
>> Regards
>> Luca Cicale
>>
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: [programmazione] how to set context path on TOMCAT6
Posted by Sushil Dodake <su...@gmail.com>.
my requirement is to create a application specific xml file.
am i making any mistake here?
On Thu, Aug 21, 2008 at 2:35 AM, Luca Cicale <in...@alsoftware.it> wrote:
> A simple way is to put in your web application a file named context.xml in
> META-INF directory, with the following content:
> <?xml version="1.0" encoding="UTF-8"?>
> <Context path="/reporting-application" />
>
> then you can produce your war and deploy it as usually (a simple way is to
> place it in your webapp directory in default tomcat6 configuration)
>
> Tomcat6 will make the rest of the job for you.
>
> Regards
> Luca Cicale
>
> --------------------------------------------------
> From: "Sushil Dodake" <su...@gmail.com>
> Sent: Thursday, August 21, 2008 9:04 AM
> To: <us...@tomcat.apache.org>
> Subject: [programmazione] how to set context path on TOMCAT6
>
>
> 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
>> http://tomcat.apache.org/tomcat-6.0-doc/config/context.html
>> but i am seem to be missing somthing as i cant run my application using a
>> URL
>>
>>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
Re: [programmazione] how to set context path on TOMCAT6
Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Luca,
Luca Cicale wrote:
> A simple way is to put in your web application a file named context.xml
> in META-INF directory, with the following content:
> <?xml version="1.0" encoding="UTF-8"?>
> <Context path="/reporting-application" />
No, no, no. META-INF/context.xml should never contain the "path"
attribute. The path of the webapp will be determined by the name of the
WAR file (myApp.war -> /myApp).
- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkitneEACgkQ9CaO5/Lv0PAlFQCgnfX1oA4K2wANVl6AqmwRSs6s
280AnjP9UyWtRM1gmfyNQorCalWqsbOf
=IwpI
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org