Re: Context root query

2012-11-21 Thread vicky007aggarwal
: Context root query On 20/11/2012 17:47, vicky wrote: 3 As i have a user requirement that they want to have a application context as different from application archive file name That sounds like an x-y problem to me. What is the real user requirement? Mark As has been said before: 1

Re: Context root query

2012-11-20 Thread Elias Kopsiaftis
did you reload tomcat after changing the file? On Tue, Nov 20, 2012 at 7:51 AM, vicky007aggar...@yahoo.co.in wrote: Hello Guys, I am trying to define the context root in my application using context.xml. I defined the following in application context.xml under meta-inf directory

Re: Context root query

2012-11-20 Thread André Warnier
vicky007aggar...@yahoo.co.in wrote: Hello Guys, I am trying to define the context root in my application using context.xml. I defined the following in application context.xml under meta-inf directory Context path=/app1 privileged=true/ But still tomcat is referring the application name as

Re: Context root query

2012-11-20 Thread André Warnier
André Warnier wrote: vicky007aggar...@yahoo.co.in wrote: Hello Guys, I am trying to define the context root in my application using context.xml. I defined the following in application context.xml under meta-inf directory Context path=/app1 privileged=true/ But still tomcat is referring

Re: Context root query

2012-11-20 Thread vicky007aggarwal
Helo, Yes , i restarted tomcat after that but that doesn't help. But if i define the following in server.xml , i am able to override the default context root of an application successfully Context path=/tests docBase=/var/www/test_application1/ debug=0 reloadable=true crossContext=false

RE: Context root query

2012-11-20 Thread Caldarale, Charles R
From: vicky007aggar...@yahoo.co.in [mailto:vicky007aggar...@yahoo.co.in] Subject: Re: Context root query Please suggest how i can override the context root of an application using META-INF/context.xml You cannot. Please actually read the documentation everyone has been pointing you

Re: Context root query

2012-11-20 Thread vicky
, Vicky  From: Caldarale, Charles R chuck.caldar...@unisys.com To: Tomcat Users List users@tomcat.apache.org Sent: Tuesday, 20 November 2012 10:15 PM Subject: RE: Context root query From: vicky007aggar...@yahoo.co.in [mailto:vicky007aggar...@yahoo.co.in

RE: Context root query

2012-11-20 Thread Caldarale, Charles R
From: vicky [mailto:vicky007aggar...@yahoo.co.in] Subject: Re: Context root query i located the snippet(mentioned below) in which its written that we can define application context in context.xml. ** Individual

Re: Context root query

2012-11-20 Thread vicky
November 2012 10:57 PM Subject: RE: Context root query From: vicky [mailto:vicky007aggar...@yahoo.co.in] Subject: Re: Context root query i located the snippet(mentioned below) in which its written that we can define application context in context.xml

Re: Context root query

2012-11-20 Thread Mark Thomas
On 20/11/2012 17:47, vicky wrote: 3 As i have a user requirement that they want to have a application context as different from application archive file name That sounds like an x-y problem to me. What is the real user requirement? Mark

RE: Context root query

2012-11-20 Thread Caldarale, Charles R
From: vicky [mailto:vicky007aggar...@yahoo.co.in] Subject: Re: Context root query What sense does it make to statically defining a Context in server.xml ?? Pretty much none, these days. Don't do it. we cannot override  the default  application context  using /META-INF/context.xml

Re: Context root query

2012-11-20 Thread vicky
: Tuesday, 20 November 2012 11:51 PM Subject: Re: Context root query On 20/11/2012 17:47, vicky wrote: 3  As i have a user requirement that they want to have a application context as different from application archive file name That sounds like an x-y problem to me. What is the real user

RE: Context root query

2012-11-20 Thread Caldarale, Charles R
From: vicky [mailto:vicky007aggar...@yahoo.co.in] Subject: Re: Context root query My client has application archives files which all have version string in it as stated below :- eg:- mom-1.2.0.war, mom-1.3.0.war,  mom-1.4.0.war,  mom-1.5.0.war So they doest want the version string

Re: Context root query

2012-11-20 Thread Mark Eggers
users@tomcat.apache.org Sent: Tuesday, 20 November 2012 11:51 PM Subject: Re: Context root query On 20/11/2012 17:47, vicky wrote: 3 As i have a user requirement that they want to have a application context as different from application archive file name That sounds like an x-y problem to me

Re: Context root query

2012-11-20 Thread Mark Thomas
On 20/11/2012 18:45, Caldarale, Charles R wrote: From: vicky [mailto:vicky007aggar...@yahoo.co.in] Subject: Re: Context root query My client has application archives files which all have version string in it as stated below :- eg:- mom-1.2.0.war, mom-1.3.0.war, mom-1.4.0.war, mom