DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16113>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16113

removing then replacing a jsp page continues to give a 404





------- Additional Comments From [EMAIL PROTECTED]  2004-03-05 13:39 -------
Another solution : in JspServletWrapper, line 343, before sending
HttpServletResponse.SC_NOT_FOUND, remove wrapper from collection of previously
created wrapper : 

Code from JspServletWrapper: 

       } catch (FileNotFoundException ex) { 
            String includeRequestUri = (String) 
                request.getAttribute("javax.servlet.include.request_uri"); 
            if (includeRequestUri != null) { 
                // This file was included. Throw an exception as 
                // a response.sendError() will be ignored by the 
                // servlet engine. 
                throw new ServletException(ex); 
            } else { 
                try { 
                    // BELOW 1 LINE PROPOSED FOR THIS BUG
                    ctxt.getRuntimeContext().removeWrapper(jspUri);
                    response.sendError(HttpServletResponse.SC_NOT_FOUND, 
                                      ex.getMessage()); 
                } catch (IllegalStateException ise) { 
                    log.error(Localizer.getMessage("jsp.error.file.not.found", 
                                                   ex.getMessage()), 
                              ex); 
                }

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

Reply via email to