Thanks Bill. It is exactly my problem. It is a bug of TC4.1.12. I noticed
that there is fixing solution to the source code. Does it mean that I have
to download the source code and modify it and recompile it?

-----Original Message-----
From: Bill Barker [mailto:[EMAIL PROTECTED]]
Sent: 30. tammikuuta 2003 9:18
To: [EMAIL PROTECTED]
Subject: Re: Context problem, urgent!


Look at http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13040 to see if it
looks like what you are seeing.

"Peng Annie / FINLAND" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
> Hi,
>
> In Tomcat4, I can not get the right context of other webapp from my app.
My
> app is set as the doc root. For example I have configuration  like
>
> <Context path="" docBase="MyApp" debug="0" reloadable="true"
> crossContext="true"/>
> <Context path="/OtherApp" docBase="OtherApp" debug="0" reloadable="true"
> crossContext="true"/>
>
> in server.xml. But the difference from in Tomcat3.2 is, when I user the
> following statement in my servlet:
>
>         ServletContext sc =
> this.getServletConfig().getServletContext().getContext("/OtherApp");
>
> sc.getRequestDispatcher("/servlet/ControllerServlet").forward(request,
> response);
>
> Tomcat can not find the "OtherApp" context!
>
> Can anybody help? This is really urgent!
>
> Many thanks in advance!
>
> Annie
>
>
>




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to