> From: Bijesh Vijayan [mailto:bije...@gmail.com] 
> Subject: Re: nested context issue in tomcat 7

> Where can I mention the path.my URLs are
> http://localhost:8080/Employee/logon.do
> http://localhost:8080/Employee/Reports/first.do

The path is derived from the name of the .xml file containing the <Context> 
element.  I cannot be set in the <Context> element itself, unless the <Context> 
is in server.xml - which is strongly discouraged.

> Thanks for the suggestion

It's not a suggestion.

> we are migrating from tomcat 5 to tomcat 7. Things work 
> fine in tomcat 5. we would like to keep the
> application directory structure as is.

Just because an illegal arrangement happened to give you usable results in one 
version does not mean it was correct.  You must change it.  Tomcat 7 is better 
at detecting invalid configurations.

> I think I am getting this message as docBase directory is 
> inside appBase directory.

Correct; docBase is not allowed if the webapps are deployed under the <Host> 
appBase; in that case, you need to remove both docBase attributes and place the 
Employee/Reports webapp in /home/bijesh/webapps/Employee#Reports, so it matches 
the name on the .xml file.

 - 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

Reply via email to