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 49582] Mapping a servlet to the root (/) doesn't work when accessing the root
Date Sun, 11 Jul 2010 21:13:46 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=49582

Mark Thomas <markt@apache.org> changed:

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

--- Comment #1 from Mark Thomas <markt@apache.org> 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: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

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


Mime
View raw message