Thanks Charles / Thomas,

> This is not supported. You need to move
> /home/bijesh/webapps/Employee/Reports
> to
> /home/bijesh/webapps/Employee#Reports
>
> and then specify your context as:
> <Context crossContext="true" reloadable="false" />

Thanks, I will be moving the  Reports to
/home/bijesh/webapps/Employee#Reports

>> Where can I mention the path.my URLs are
>> http://localhost:8080/Employee/logon.do
>> http://localhost:8080/Employee/Reports/first.do
>
>> Thanks for the suggestion, but 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.
>
> That probably isn't going to be possible. You have over-lapping
> docBase's and that is not supported.
>

So you mean to say that my URL should be changed for the second context ?
Is there a way I can retain my
URL(http://localhost:8080/Employee/Reports/first.do) , I do not want
to change to http://localhost:8080/Employee#Reports/first.do

Just wanted to confirm if things are fine from my end.
My context files are located at (I changed the file name
Reports-context.xml to Employee#Reports.xml so that it match the
context path in URL )

/home/bijesh/tomcat/conf/Catalina/localhost/Employee.xml
/home/bijesh/tomcat/conf/Catalina/localhost/Employee#Reports.xml

Thanks,
Bijesh

On Fri, Aug 12, 2011 at 1:37 PM, Mark Thomas <ma...@apache.org> wrote:
> On 12/08/2011 18:23, Bijesh Vijayan wrote:
>> Thanks Charles,
>>
>>> What is the appBase setting for the <Host> named localhost?
>> /home/bijesh/webapps
>
>> Where can I mention the path.my URLs are
>> http://localhost:8080/Employee/logon.do
>> http://localhost:8080/Employee/Reports/first.do
>
>> Thanks for the suggestion, but 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.
>
> That probably isn't going to be possible. You have over-lapping
> docBase's and that is not supported.
>
>> I am not able to give absolute path for docBase as I an getting the
>> message "docBase inside the context is ignored". I think I am getting
>> this message as docBase directory is inside appBase directory.
>
> You must not specify the docBase since it is inside the appBase. All you
> have managed to do is bypass Tomcat's warning. You may have double
> deployment as a result.
>
>>>> file name = CATALINA_BASE/conf/Catalina/localhost/Employee.xml
>>>>                                <Context path="/Employee"
>>>>                                         docBase="./Employee"
>>>>                                         crossContext="true"
>>>>                                         reloadable="false"
>>>>                                         workDir="work/Employee">
>
> This should be:
> <Context crossContext="true" reloadable="false" />
>
>>>> file name = CATALINA_BASE/conf/Catalina/localhost/Employee#Reports.xml
>>>>                                <Context path="/Employee/Reports"
>>>>                                         docBase="./Employee/Reports"
>>>>                                         crossContext="true"
>>>>                                         reloadable="false"
>>>>                                         workDir="work/Employee/Reports">
>
> This is not supported. You need to move
> /home/bijesh/webapps/Employee/Reports
> to
> /home/bijesh/webapps/Employee#Reports
>
> and then specify your context as:
> <Context crossContext="true" reloadable="false" />
>
> Mark
>
> ---------------------------------------------------------------------
> 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

Reply via email to