You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by "Bobby Lawrence (JIRA)" <ji...@apache.org> on 2009/05/26 21:50:45 UTC

[jira] Created: (GERONIMO-4647) welcome files with servlet url-mappings

welcome files with servlet url-mappings
---------------------------------------

                 Key: GERONIMO-4647
                 URL: https://issues.apache.org/jira/browse/GERONIMO-4647
             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


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 "/index.do" 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.


[jira] Updated: (GERONIMO-4647) welcome files with servlet url-mappings

Posted by "Bobby Lawrence (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/GERONIMO-4647?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bobby Lawrence updated GERONIMO-4647:
-------------------------------------

    Attachment: sampleapp.war

Here's another sampleapp.
I modified the one I originally uploaded to show you what I'm talking about.
I created a servlet and set the welcome file to the servlet mapping.
Geronimo throws a 404. 

> welcome files with servlet url-mappings
> ---------------------------------------
>
>                 Key: GERONIMO-4647
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-4647
>             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 "/index.do" 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.


[jira] Updated: (GERONIMO-4647) welcome files with servlet url-mappings

Posted by "Bobby Lawrence (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/GERONIMO-4647?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bobby Lawrence updated GERONIMO-4647:
-------------------------------------

    Attachment: sampleapp.war

here's a sample app anyway

> welcome files with servlet url-mappings
> ---------------------------------------
>
>                 Key: GERONIMO-4647
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-4647
>             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
>
>
> 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 "/index.do" 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.


[jira] Commented: (GERONIMO-4647) welcome files with servlet url-mappings

Posted by "Rex Wang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GERONIMO-4647?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12730252#action_12730252 ] 

Rex Wang commented on GERONIMO-4647:
------------------------------------

Bobby Lawrence has raised a bug on Tomcat's bugzilla - https://issues.apache.org/bugzilla/show_bug.cgi?id=47378

-Rex

> welcome files with servlet url-mappings
> ---------------------------------------
>
>                 Key: GERONIMO-4647
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-4647
>             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
>            Assignee: Rex Wang
>         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 "/index.do" 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.


[jira] Commented: (GERONIMO-4647) welcome files with servlet url-mappings

Posted by "David Jencks (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GERONIMO-4647?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12713275#action_12713275 ] 

David Jencks commented on GERONIMO-4647:
----------------------------------------

Could you provide the information that determines what you expect this url to get mapped to, such as a servlet mapping?  Are any resource files involved?  A small sample app would be ideal.

IIRC what worked in tomcat was a servlet mapping generated by the jsp precompilation that mapped welcome.jsp to the compiled jsp servlet.  This worked even when the source jsp file was removed.  In jetty the source file had to be present anyway.

> welcome files with servlet url-mappings
> ---------------------------------------
>
>                 Key: GERONIMO-4647
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-4647
>             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
>
> 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 "/index.do" 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.


[jira] Updated: (GERONIMO-4647) welcome files with servlet mappings

Posted by "Rex Wang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/GERONIMO-4647?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rex Wang updated GERONIMO-4647:
-------------------------------

    Fix Version/s: 2.2
          Summary: welcome files with servlet mappings  (was: welcome files with servlet url-mappings)

> welcome files with servlet mappings
> -----------------------------------
>
>                 Key: GERONIMO-4647
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-4647
>             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
>            Assignee: Rex Wang
>             Fix For: 2.2
>
>         Attachments: GERONIMO-4647.patch, 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 "/index.do" 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.


[jira] Commented: (GERONIMO-4647) welcome files with servlet mappings

Posted by "Rex Wang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GERONIMO-4647?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12754894#action_12754894 ] 

Rex Wang commented on GERONIMO-4647:
------------------------------------

This has been applied to tomcat trunk, so should we applied it to our internal tomcat 6 build?

---------------------------------------------------------------------------------------------------------
Tim Funk      2009-08-31 07:02:01 PDT

Applied this to trunk - so it should make its way into tomcat7
http://svn.apache.org/viewvc?rev=809596&view=rev

I am not proposing this for backport to tomcat 6. But wouldn't be against it if
it were proposed. So I'm moving this to enhancement.
---------------------------------------------------------------------------------------------------------

> welcome files with servlet mappings
> -----------------------------------
>
>                 Key: GERONIMO-4647
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-4647
>             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
>            Assignee: Rex Wang
>             Fix For: 2.2
>
>         Attachments: GERONIMO-4647.patch, 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 "/index.do" 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.


[jira] Resolved: (GERONIMO-4647) welcome files with servlet mappings

Posted by "Rex Wang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/GERONIMO-4647?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rex Wang resolved GERONIMO-4647.
--------------------------------

    Resolution: Fixed

David has ported the fix to our private build in r814083. So change to "fixed"

-Rex

> welcome files with servlet mappings
> -----------------------------------
>
>                 Key: GERONIMO-4647
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-4647
>             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
>            Assignee: Rex Wang
>             Fix For: 2.2
>
>         Attachments: GERONIMO-4647.patch, 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 "/index.do" 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.


[jira] Commented: (GERONIMO-4647) welcome files with servlet url-mappings

Posted by "Bobby Lawrence (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GERONIMO-4647?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12713249#action_12713249 ] 

Bobby Lawrence commented on GERONIMO-4647:
------------------------------------------

im using the tomcat distribution and we have our welcome-file pointing at "login.jsf" but I get a 404

> welcome files with servlet url-mappings
> ---------------------------------------
>
>                 Key: GERONIMO-4647
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-4647
>             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
>
> 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 "/index.do" 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.


[jira] Commented: (GERONIMO-4647) welcome files with servlet url-mappings

Posted by "David Jencks (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GERONIMO-4647?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12713605#action_12713605 ] 

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 http://jira.codehaus.org/browse/JETTY-936, 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: https://issues.apache.org/jira/browse/GERONIMO-4647
>             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 "/index.do" 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.


[jira] Assigned: (GERONIMO-4647) welcome files with servlet url-mappings

Posted by "Rex Wang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/GERONIMO-4647?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rex Wang reassigned GERONIMO-4647:
----------------------------------

    Assignee: Rex Wang

> welcome files with servlet url-mappings
> ---------------------------------------
>
>                 Key: GERONIMO-4647
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-4647
>             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
>            Assignee: Rex Wang
>         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 "/index.do" 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.


[jira] Commented: (GERONIMO-4647) welcome files with servlet url-mappings

Posted by "David Jencks (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GERONIMO-4647?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12713240#action_12713240 ] 

David Jencks commented on GERONIMO-4647:
----------------------------------------

Are you using geronimo jetty or geronimo tomcat (or both) ?

GERONIMO-4566 reports a similar problem in jetty.  I did not experience the same problem with tomcat.

> welcome files with servlet url-mappings
> ---------------------------------------
>
>                 Key: GERONIMO-4647
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-4647
>             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
>
> 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 "/index.do" 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.


[jira] Commented: (GERONIMO-4647) welcome files with servlet url-mappings

Posted by "Bobby Lawrence (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GERONIMO-4647?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12713412#action_12713412 ] 

Bobby Lawrence commented on GERONIMO-4647:
------------------------------------------

the point is, you don't have to name your JSP pages with a ".jsf" suffix.
According to the JSF specification, the default suffix for extension-mapped JSF resources is ".jsp".
What if I wanted a Struts action to be the default welcome page?  My welcome file would have a ".do" extension.
Or how about a custom servlet?  My welcome file would be "/someservlet" or something...
Is this a Tomcat issue?  Perhaps I have opened a case for the incorrect project...

> welcome files with servlet url-mappings
> ---------------------------------------
>
>                 Key: GERONIMO-4647
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-4647
>             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
>
>
> 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 "/index.do" 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.


[jira] Commented: (GERONIMO-4647) welcome files with servlet url-mappings

Posted by "viola.lu (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GERONIMO-4647?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12713362#action_12713362 ] 

viola.lu commented on GERONIMO-4647:
------------------------------------

hi, Bobby:

i looked into your sampe app attached, but there is just a login.jsp not login.jsf, so rename your login.jsp to login.jsf or modify your web.xml setting.

Good Luck.

> welcome files with servlet url-mappings
> ---------------------------------------
>
>                 Key: GERONIMO-4647
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-4647
>             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
>
>
> 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 "/index.do" 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.


[jira] Commented: (GERONIMO-4647) welcome files with servlet mappings

Posted by "David Jencks (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GERONIMO-4647?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12742481#action_12742481 ] 

David Jencks commented on GERONIMO-4647:
----------------------------------------

AFAICT this patch has not been applied to any version of tomcat.  I'm not sure if we should apply it to our fork.

> welcome files with servlet mappings
> -----------------------------------
>
>                 Key: GERONIMO-4647
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-4647
>             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
>            Assignee: Rex Wang
>             Fix For: 2.2
>
>         Attachments: GERONIMO-4647.patch, 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 "/index.do" 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.


[jira] Commented: (GERONIMO-4647) welcome files with servlet url-mappings

Posted by "Bobby Lawrence (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GERONIMO-4647?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12713276#action_12713276 ] 

Bobby Lawrence commented on GERONIMO-4647:
------------------------------------------

The URL mapping simply points to a regular JSF servlet mapping:

<servlet>
		<servlet-name>Faces Servlet</servlet-name>
		<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
</servlet>

<servlet-mapping>
		<servlet-name>Faces Servlet</servlet-name>
		<url-pattern>*.jsf</url-pattern>
</servlet-mapping>

<welcome-file-list>
		<welcome-file>login.jsf</welcome-file>
</welcome-file-list>

Do you really need a sample app?  This seems pretty straight-forward....

> welcome files with servlet url-mappings
> ---------------------------------------
>
>                 Key: GERONIMO-4647
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-4647
>             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
>
> 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 "/index.do" 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.


[jira] Updated: (GERONIMO-4647) welcome files with servlet url-mappings

Posted by "Rex Wang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/GERONIMO-4647?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rex Wang updated GERONIMO-4647:
-------------------------------

    Attachment: GERONIMO-4647.patch

Pull-in the patch from tomcat community.
-Rex

> welcome files with servlet url-mappings
> ---------------------------------------
>
>                 Key: GERONIMO-4647
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-4647
>             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
>            Assignee: Rex Wang
>         Attachments: GERONIMO-4647.patch, 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 "/index.do" 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.