Thanks a ton charles for passionatly explaining me the intrinsic things , it means a lot to me... 1> What sense does it make to statically defining a Context in server.xml ??
2> Just to confirm , so using we cannot override the default application context using "/META-INF/context.xml" ?? 3> As i have a user requirement that they want to have a application context as different from application archive file name , so i can achieve this by adding the below snippet in server.xml, provided the docBase location shouldnt be the same as of Tomcat WebApps Directory to avoid double deployment . correct ?? <Context path="/tests" docBase="/var/www/test_application1/" debug="0" reloadable="true" crossContext="false"> </Context> Thanks Again ________________________________ From: "Caldarale, Charles R" <chuck.caldar...@unisys.com> To: Tomcat Users List <users@tomcat.apache.org> Sent: Tuesday, 20 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. > ****************************************************************************** > Individual Context elements may be explicitly defined: > In an individual file at /META-INF/context.xml inside the application files. > Optionally (based on the Host's copyXML attribute) this may be copied to > $CATALINA_BASE/conf/[enginename]/[hostname]/ and renamed to application's base > file name plus a ".xml" extension. > ****************************************************************************** And you completely ignored this wording in the description of the path element: "This attribute must only be used when statically defining a Context in server.xml. In all other circumstances, the path will be inferred from the filenames used for either the .xml context file or the docBase." - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org