tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 39221] New: - httpd / mod_jk / tomcat ErrorDocument 404 /servlet/xxx does not pass the missing document to tomcat
Date Thu, 06 Apr 2006 10:57:28 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=39221>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=39221

           Summary: httpd / mod_jk / tomcat ErrorDocument 404 /servlet/xxx
                    does not pass the missing document to tomcat
           Product: Tomcat 5
           Version: 5.5.16
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Native:JK
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: jtm@mostlyharmless.dk


I have setup Apache 2.0.55 with mod_jk 1.2.15 talking to a tomcat 5.5.16.

Everything works nice except one thing. I have the following httpd config entry:

ErrorDocument 404 /servlet/SnoopServlet

(i use a home made snoop servlet for easy testing)

When i request a document that apache can not find (/somefile) the servlet is
called as expected, but /somefile is not passed to tomcat, the only thing i can
get from the request object is that /servlet/SnoopServlet was called.

With resin i have a bit more luck, since mod_caucho sets the http header
REDIRECT_URL: /somefile
But i would rather use tomcat.

Would it not be correct to set javax.servlet.error.request_uri request attribute
to /somefile (or some other javax.servlet.* parameter, don't remember the spec.)
and if that is not possible then set some request header like resin does?

What i want to do it match /somefile against a 'redirect' database and if a
match is found then send a redirect, if not send an error page.

I'm not sure where the error is located, but my guess would be mod_jk, i have
tried with several combinations of mod_jk and tomcat versions.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message