-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Vas,
On 12/6/2009 5:17 PM, groupalias v wrote: > ProxyPass /test/ ajp://127.0.0.1:8009/A/ [snip] > I am able to call www.example.com/test/jsp/hi.jsp. The problem happens > when I call a servlet like -- www.example.com/test/hello > The hello is a servlet that sends back hi.jsp by using the following code -- > > RequestDispatcher req = request.getRequestDispatcher("/jsp/hi.jsp"); > req.forward(request, response); > > where request and response and the HttpServletRequest and Response > respectively. > > I get the following error -- The resource /A/jsp/hi.jsp is not available. > > Obviously the URL needs to be changed /A/jsp/hi.jsp to > /test/jsp/hi.jsp and I believe the mo_proxy can be configured to do > this. No, you don't want this. When doing a "forward", everything is internal to Tomcat, so the URL should be what Tomcat expects (that is, "/A/jsp/hi.jsp"). If you were redirecting, you'd need to use /test/jsp/hi.jsp. > But I am not able to find it. Can someone point me to the right > direction? As Andre (essentially) suggests, maybe you ought to mount /A on /A instead of /test. - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAksezY8ACgkQ9CaO5/Lv0PAu5wCfV1gn4U9Enj+9veQKM+Sqptd5 qdUAnjM8Ax3Bqey0/j6GFe/hbUJaSsxB =L4zf -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org