You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2003/04/03 16:23:02 UTC

DO NOT REPLY [Bug 18658] New: - HTTP 404 when welcome-file doesn't exist but servlet-mapping exists

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