tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John Sidney-Woollett" <>
Subject TC 5.0.18 RequestDespatcher bug?
Date Fri, 13 Feb 2004 10:16:50 GMT
I think that there may be a bug in TC 5.0.18 when issuing a
RequestDespatcher.forward with an URL that has the jsessionid encoded in
the URL. My setup is RH 8, JDK 1.4.2_03 + Apache 1.3.29 + mod_jk + TC

I have a servlet (mapped in web.xml to /home/*) which catches all URLs
starting with "/home/". The servlet "looks" at the URL to work out which
JSP page to render by forwarding to it. The service method code is as

String fwdURL = "/en/home/welcome.jsp";

//create the request dispatcher (for the new URL)
RequestDispatcher rqdD =

//and forward the request
rqdD.forward(request, response);

Here is the error produced by TC

HTTP Status 404 -

type Status report

message /en/home/welcome.jsp;jsessionid=35CC14009BCF7CCED835634586378F46

description The requested resource
(/en/home/welcome.jsp;jsessionid=35CC14009BCF7CCED835634586378F46) is not
Apache Tomcat/5.0.18

Is this a bug, or am I doing something wrong. Maybe I should not be
encoding the forwarded URL. The bug manifests itself when switching from
an SSL to a non-SSL connection, or when cookies are turned off.

Thanks for any help.

John Sidney-Woollett

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message