geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Jencks (JIRA)" <>
Subject [jira] Commented: (GERONIMO-4647) welcome files with servlet url-mappings
Date Wed, 27 May 2009 15:38:46 GMT


David Jencks commented on GERONIMO-4647:

I'd like to try to clarify what the problem is as I understand it.

1. request comes in that is not mapped directly but should get a welcome file
2. request gets to DefaultServlet which tries to figure out it goes to a welcome file
3. At this point we expect the constructed url to the welcome resource should be evaluated
against the servlet mappings and dispatched appropriately, perhaps to the jsf handler or servlet.
 Instead, the DefaultServlet is assuming that the url points to a file resource (even if that
is a jsp which gets compiled and accessed through the jsp servlet).

I only verified that the problem is in the DefaultServlet in jetty, since I didn't see this
problem in tomcat.

According to, this is fixed in jetty.  It should
work in the jetty7 integration, the jetty6 integration needs to be upgraded.

I probaby won't get to looking into this soon in tomcat.  According to the jetty issue the
correct algorithm is:

1. scan welcome file choices for actual files.  If one is found, use it.
2. If none are found, try servlet mappings for the constructed url.

The logic is probably in the tomcat DefaultServlet.

> welcome files with servlet url-mappings
> ---------------------------------------
>                 Key: GERONIMO-4647
>                 URL:
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: web
>    Affects Versions: 2.1.4
>         Environment: JRE 1.5.0_06, Windows XP
>            Reporter: Bobby Lawrence
>         Attachments: sampleapp.war, sampleapp.war
> When you specify welcome files in web.xml Geronimo throws 404 errors if the welcome file
isn't a valid file resource.
> Values that are URL mappings to a servlet are ignored by the app server even through
they are valid.
> This means that I can't have a welcome file of "/index.jsf" or "/" or "/someservlet".
> The only welcome files that Geronimo seems to not throw a 404 Not Found error are actual
files found in the web application.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message