Suppose you have a JSP that throws an exception. Then you have an error page to deal with the exception. The error page calls request.getRequestURL(). The bug is that this URL will be ".../error.jsp" instead of the JSP that was actually requested by the client. The J2EE 1.4 API spec says "Reconstructs the URL the client used to make the request". The client did not request ".../error.jsp", the client requested the original page that threw the exception. Note this works as expected in Tomcat 4.1.31 but not 5.5.16. Note there is another API called getRequestURI, which has a similar problem although this API works consistently wrong in Tomcat 4.1.31 also.
<spec-quote version="2.4" section="9.9.1"> The request path and attributes are set as if a RequestDispatcher.forward to the error resource had been performed. </spec-quote>