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"> </Context> But this is not the appropriate way as i don't want to touch the tomcat server.xml for every application Please suggest how i can override the context root of an application using META-INF/context.xml Thanks for your time, Vicky On Nov 20, 2012, at 6:35 PM, Elias Kopsiaftis <yemi...@gmail.com> wrote: > 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 >>> >>> <Context path="/app1" privileged="true"/> >>> >>> But still tomcat is referring the application name as my context. The >> value which i defined in context.xml is not getting referenced by tomcat. >>> >>> Can some one please help me in defining the context root for an >> application . I don't want to use the application name as context root for >> my app. >>> >>> Thanks for your help, >>> Vicky >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org >> For additional commands, e-mail: users-h...@tomcat.apache.org >> >> --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org