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 18658] New: - HTTP 404 when welcome-file doesn't exist but servlet-mapping exists
Date Thu, 03 Apr 2003 14:23:02 GMT
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=18658>.
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=18658

HTTP 404 when welcome-file doesn't exist but servlet-mapping exists

           Summary: HTTP 404 when welcome-file doesn't exist but servlet-
                    mapping exists
           Product: Tomcat 4
           Version: 4.1.18
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Catalina
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: pkrasimirov@neterra.net


If I have mapped /welcome.jsp to a servlet (my servlet, not the default jsp   
handler) AND there is no file "welcome.jsp" in the documents root -- HTTP 404.   
But if there IS such file (even zero-length) the request is properly mapped to   
the servlet and goes ok. My pain in this case is that the URI changes --  
instead of "http://www.mysite.com/" it reads "http://www.mysite.com/index.jsp".  
That doesn't happen if there is a "real" JSP page (or index.html page, or any 
other), it is processed and the URL is the same. 
Again, if there is servlet-mapping with the same name -- servlet is invoked 
ONLY if there is real-existing file (and the file itself is unreachable).

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


Mime
View raw message