tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 49582] Mapping a servlet to the root (/) doesn't work when accessing the root
Date Sun, 11 Jul 2010 21:13:46 GMT

Mark Thomas <> changed:

           What    |Removed                     |Added
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID

--- Comment #1 from Mark Thomas <> 2010-07-11 17:13:40 EDT ---
What I suspect is happening is that you have a set of welcome files that
include index.jsp. The requirements of section 10.10 of the Servlet 3.0 spec
mean that the request matches the JSP servlet so the request gets mapped to the
JSP servlet which then results in a 404 since index.jsp does not exist.

You have two options:
- remove index.jsp from the list of welcome files
- map the dispatcher servlet to /* which will bypass the welcome files

The 2.5 spec wasn't as clear as the 3.0 spec on this point. Tomcat 7 implements
the requirements for welcome files without a physical backing.

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message