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 18225] New: - Regression in Tomcat 5: Request failed to match "default" servlet
Date Fri, 21 Mar 2003 15:37:23 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=18225>.
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=18225

Regression in Tomcat 5: Request failed to match "default" servlet

           Summary: Regression in Tomcat 5: Request failed to match
                    "default" servlet
           Product: Tomcat 5
           Version: 5.0.1
          Platform: Sun
        OS/Version: Solaris
            Status: NEW
          Severity: Critical
          Priority: Other
         Component: Servlet & JSP API
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: dianne.jiao@sun.com
                CC: Ryan.Lubke@Sun.COM,jfarcand@apache.org


Server failed to map the following request: 
GET /servlet_jsh_httpservletrequest_web/getServletPathEmptyStringTest HTTP/1.1
To the default servlet, and return status code 404.

Servlet configuration:
  <servlet-mapping>
    <servlet-name>getServletPathEmptyStringTest</servlet-name>
    <url-pattern>/*</url-pattern>
  </servlet-mapping>

Test Servlet:
    public void service(PrintWriter pw, HttpServletRequest request,
HttpServletResponse response) throws ServletException, IOException {
        String expectedResult = "";
        String result = request.getServletPath();
        PrintWriter pw = response.getWriter();

        if (result != null) {
            if (!result.equals(expectedResult)) {
                pw.println("getServletPath() returned an incorrect result");
                pw.println("Expected result = ''");
                pw.println("Actual result = |" + result + "|");
            } 
        } else {
            pw.println("getServletPath() returned a null result");
        }
    }

---------------------------------------------------------------------
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