Unable to get RequestDispatcher for Context
843840May 17 2009 — edited May 17 2009Eclipse 3.3.0
Tomcat 6.0.16
Java 1.5.0_13
Mac OS X 10.5.6
Greetings:
I'm attempting to retrieve information cross context in my web application. I've attempted to enable cross context access by three means.
- I've added "crossContext=true" to the <Context> element in the server.xml of the Tomcat configuration under the Servers project of my workspace.
- I've added "crossContext=true" to the <Context> element in a META-INF/context.xml in the WebContent folder of my project.
- I've added "crossContext=true" to the <Context> element of the context.xml file in the conf directory of the Tomcat installation directory.
Yet despite these changes I'm still seeing "Unable to get RequestDispatcher for Context....Verify values and/or enable cross context access" in the console. What do I need to do to enable cross context access using Eclipse? Thanks for any help.
ETA - I've had this working before. I believe that I upgraded to Tomcat 6 from Tomcat 5.5 and that's when the jstl cross context actions broke.
ETA - I've got it working in Tomcat 6. The problem arises when I change the name of my webapplication from "foo" to ROOT inside eclipse. I want a jsp page in the ROOT web application to be able to access a servlet in the "bar" web application.
Edited by: nantucket on May 17, 2009 2:17 PM
Edited by: nantucket on May 17, 2009 2:26 PM