You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Uday Kari (Created) (JIRA)" <ji...@apache.org> on 2012/04/13 12:49:20 UTC

[jira] [Created] (TAP5-1904) Tomcat 7 Deployment Issue: Default Welcome File List Overrides Index component in T5 application

Tomcat 7 Deployment Issue: Default Welcome File List Overrides Index component in T5 application
------------------------------------------------------------------------------------------------

                 Key: TAP5-1904
                 URL: https://issues.apache.org/jira/browse/TAP5-1904
             Project: Tapestry 5
          Issue Type: Bug
          Components: tapestry-core
    Affects Versions: 5.3.2
            Reporter: Uday Kari


In Tomcat 7, the root index page/component in T5 application is being overridden by Default Welcome File List.  

For more please see: 

http://tapestry.1045711.n5.nabble.com/Tomcat-7-deployment-TapestryModule-RequestExceptionHandler-Processing-of-request-failed-with-uncaugh-td5637647.html

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (TAP5-1904) Tomcat 7 Deployment Issue: Default Welcome File List Overrides Index component in T5 application

Posted by "Uday Kari (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TAP5-1904?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13254183#comment-13254183 ] 

Uday Kari commented on TAP5-1904:
---------------------------------

Actually, the servlet spec apparently calls for MERGING the welcome file list of application and container.  So, this would be a temporary workaround.  The correct workaround may be best controlled by
"resourceOnlyServlets" option in <Context>,  see
http://tomcat.apache.org/tomcat-7.0-doc/config/context.html

                
> Tomcat 7 Deployment Issue: Default Welcome File List Overrides Index component in T5 application
> ------------------------------------------------------------------------------------------------
>
>                 Key: TAP5-1904
>                 URL: https://issues.apache.org/jira/browse/TAP5-1904
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.3.2
>            Reporter: Uday Kari
>              Labels: tomcat
>
> In Tomcat 7, the root index page/component in T5 application is being overridden by Default Welcome File List.  
> For more please see: 
> http://tapestry.1045711.n5.nabble.com/Tomcat-7-deployment-TapestryModule-RequestExceptionHandler-Processing-of-request-failed-with-uncaugh-td5637647.html

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (TAP5-1904) Tomcat 7 Deployment Issue: Default Welcome File List Overrides Index component in T5 application

Posted by "Lance (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TAP5-1904?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13253281#comment-13253281 ] 

Lance commented on TAP5-1904:
-----------------------------

I think this might solve it

public static void contributeIgnoredPathsFilter(Configuration<String> configuration) {
   configuration.add("/index\\.(?:html|htm|jsp)");
} 
                
> Tomcat 7 Deployment Issue: Default Welcome File List Overrides Index component in T5 application
> ------------------------------------------------------------------------------------------------
>
>                 Key: TAP5-1904
>                 URL: https://issues.apache.org/jira/browse/TAP5-1904
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.3.2
>            Reporter: Uday Kari
>              Labels: tomcat
>
> In Tomcat 7, the root index page/component in T5 application is being overridden by Default Welcome File List.  
> For more please see: 
> http://tapestry.1045711.n5.nabble.com/Tomcat-7-deployment-TapestryModule-RequestExceptionHandler-Processing-of-request-failed-with-uncaugh-td5637647.html

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (TAP5-1904) Tomcat 7 Deployment Issue: Default Welcome File List Overrides Index component in T5 application

Posted by "Uday Kari (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TAP5-1904?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13253649#comment-13253649 ] 

Uday Kari commented on TAP5-1904:
---------------------------------

Yep.  Fixed.  Most definitely a tomcat issue.  

    <welcome-file-list>
     <welcome-file />
    </welcome-file-list>

This, in web.xml, seems to tell Tomcat "there are no welcome files in this application, do not look for index.jsp etc" ...   

                
> Tomcat 7 Deployment Issue: Default Welcome File List Overrides Index component in T5 application
> ------------------------------------------------------------------------------------------------
>
>                 Key: TAP5-1904
>                 URL: https://issues.apache.org/jira/browse/TAP5-1904
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.3.2
>            Reporter: Uday Kari
>              Labels: tomcat
>
> In Tomcat 7, the root index page/component in T5 application is being overridden by Default Welcome File List.  
> For more please see: 
> http://tapestry.1045711.n5.nabble.com/Tomcat-7-deployment-TapestryModule-RequestExceptionHandler-Processing-of-request-failed-with-uncaugh-td5637647.html

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Issue Comment Edited] (TAP5-1904) Tomcat 7 Deployment Issue: Default Welcome File List Overrides Index component in T5 application

Posted by "Lance (Issue Comment Edited) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TAP5-1904?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13253281#comment-13253281 ] 

Lance edited comment on TAP5-1904 at 4/13/12 12:46 PM:
-------------------------------------------------------

Adding the following to web.xml might fix it

<welcome-file-list>
    <welcome-file>Index</welcome-file>
</welcome-file-list> 
                
      was (Author: uklance):
    I think this might solve it

public static void contributeIgnoredPathsFilter(Configuration<String> configuration) {
   configuration.add("/index\\.(?:html|htm|jsp)");
} 
                  
> Tomcat 7 Deployment Issue: Default Welcome File List Overrides Index component in T5 application
> ------------------------------------------------------------------------------------------------
>
>                 Key: TAP5-1904
>                 URL: https://issues.apache.org/jira/browse/TAP5-1904
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.3.2
>            Reporter: Uday Kari
>              Labels: tomcat
>
> In Tomcat 7, the root index page/component in T5 application is being overridden by Default Welcome File List.  
> For more please see: 
> http://tapestry.1045711.n5.nabble.com/Tomcat-7-deployment-TapestryModule-RequestExceptionHandler-Processing-of-request-failed-with-uncaugh-td5637647.html

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (TAP5-1904) Tomcat 7 Deployment Issue: Default Welcome File List Overrides Index component in T5 application

Posted by "Uday Kari (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TAP5-1904?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13254183#comment-13254183 ] 

Uday Kari commented on TAP5-1904:
---------------------------------

Actually, the servlet spec apparently calls for MERGING the welcome file list of application and container.  So, this would be a temporary workaround.  The correct workaround may be best controlled by
"resourceOnlyServlets" option in <Context>,  see
http://tomcat.apache.org/tomcat-7.0-doc/config/context.html

                
> Tomcat 7 Deployment Issue: Default Welcome File List Overrides Index component in T5 application
> ------------------------------------------------------------------------------------------------
>
>                 Key: TAP5-1904
>                 URL: https://issues.apache.org/jira/browse/TAP5-1904
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.3.2
>            Reporter: Uday Kari
>              Labels: tomcat
>
> In Tomcat 7, the root index page/component in T5 application is being overridden by Default Welcome File List.  
> For more please see: 
> http://tapestry.1045711.n5.nabble.com/Tomcat-7-deployment-TapestryModule-RequestExceptionHandler-Processing-of-request-failed-with-uncaugh-td5637647.html

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (TAP5-1904) Tomcat 7 Deployment Issue: Default Welcome File List Overrides Index component in T5 application

Posted by "Uday Kari (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TAP5-1904?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13253649#comment-13253649 ] 

Uday Kari commented on TAP5-1904:
---------------------------------

Yep.  Fixed.  Most definitely a tomcat issue.  

    <welcome-file-list>
     <welcome-file />
    </welcome-file-list>

This, in web.xml, seems to tell Tomcat "there are no welcome files in this application, do not look for index.jsp etc" ...   

                
> Tomcat 7 Deployment Issue: Default Welcome File List Overrides Index component in T5 application
> ------------------------------------------------------------------------------------------------
>
>                 Key: TAP5-1904
>                 URL: https://issues.apache.org/jira/browse/TAP5-1904
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.3.2
>            Reporter: Uday Kari
>              Labels: tomcat
>
> In Tomcat 7, the root index page/component in T5 application is being overridden by Default Welcome File List.  
> For more please see: 
> http://tapestry.1045711.n5.nabble.com/Tomcat-7-deployment-TapestryModule-RequestExceptionHandler-Processing-of-request-failed-with-uncaugh-td5637647.html

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (TAP5-1904) Tomcat 7 Deployment Issue: Default Welcome File List Overrides Index component in T5 application

Posted by "Uday Kari (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-1904?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Uday Kari updated TAP5-1904:
----------------------------

    Comment: was deleted

(was: Yep.  Most definitely a tomcat issue.  

    <welcome-file-list>
     <welcome-file />
    </welcome-file-list>

This, in web.xml, seems to tell Tomcat "there are no welcome files in this application, do not look for index.jsp etc" ...   
)
    
> Tomcat 7 Deployment Issue: Default Welcome File List Overrides Index component in T5 application
> ------------------------------------------------------------------------------------------------
>
>                 Key: TAP5-1904
>                 URL: https://issues.apache.org/jira/browse/TAP5-1904
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.3.2
>            Reporter: Uday Kari
>              Labels: tomcat
>
> In Tomcat 7, the root index page/component in T5 application is being overridden by Default Welcome File List.  
> For more please see: 
> http://tapestry.1045711.n5.nabble.com/Tomcat-7-deployment-TapestryModule-RequestExceptionHandler-Processing-of-request-failed-with-uncaugh-td5637647.html

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Issue Comment Edited] (TAP5-1904) Tomcat 7 Deployment Issue: Default Welcome File List Overrides Index component in T5 application

Posted by "Uday Kari (Issue Comment Edited) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TAP5-1904?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13253649#comment-13253649 ] 

Uday Kari edited comment on TAP5-1904 at 4/13/12 7:02 PM:
----------------------------------------------------------

Yep.  Most definitely a tomcat issue.  

    <welcome-file-list>
     <welcome-file />
    </welcome-file-list>

This, in web.xml, seems to tell Tomcat "there are no welcome files in this application, do not look for index.jsp etc" ...   

                
      was (Author: netdawg):
    Yep.  Fixed.  Most definitely a tomcat issue.  

    <welcome-file-list>
     <welcome-file />
    </welcome-file-list>

This, in web.xml, seems to tell Tomcat "there are no welcome files in this application, do not look for index.jsp etc" ...   

                  
> Tomcat 7 Deployment Issue: Default Welcome File List Overrides Index component in T5 application
> ------------------------------------------------------------------------------------------------
>
>                 Key: TAP5-1904
>                 URL: https://issues.apache.org/jira/browse/TAP5-1904
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.3.2
>            Reporter: Uday Kari
>              Labels: tomcat
>
> In Tomcat 7, the root index page/component in T5 application is being overridden by Default Welcome File List.  
> For more please see: 
> http://tapestry.1045711.n5.nabble.com/Tomcat-7-deployment-TapestryModule-RequestExceptionHandler-Processing-of-request-failed-with-uncaugh-td5637647.html

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (TAP5-1904) Tomcat 7 Deployment Issue: Default Welcome File List Overrides Index component in T5 application

Posted by "Uday Kari (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-1904?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Uday Kari updated TAP5-1904:
----------------------------

    Comment: was deleted

(was: Yep.  Most definitely a tomcat issue.  

    <welcome-file-list>
     <welcome-file />
    </welcome-file-list>

This, in web.xml, seems to tell Tomcat "there are no welcome files in this application, do not look for index.jsp etc" ...   
)
    
> Tomcat 7 Deployment Issue: Default Welcome File List Overrides Index component in T5 application
> ------------------------------------------------------------------------------------------------
>
>                 Key: TAP5-1904
>                 URL: https://issues.apache.org/jira/browse/TAP5-1904
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.3.2
>            Reporter: Uday Kari
>              Labels: tomcat
>
> In Tomcat 7, the root index page/component in T5 application is being overridden by Default Welcome File List.  
> For more please see: 
> http://tapestry.1045711.n5.nabble.com/Tomcat-7-deployment-TapestryModule-RequestExceptionHandler-Processing-of-request-failed-with-uncaugh-td5637647.html

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Issue Comment Edited] (TAP5-1904) Tomcat 7 Deployment Issue: Default Welcome File List Overrides Index component in T5 application

Posted by "Lance (Issue Comment Edited) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TAP5-1904?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13253281#comment-13253281 ] 

Lance edited comment on TAP5-1904 at 4/13/12 12:46 PM:
-------------------------------------------------------

Adding the following to web.xml might fix it

<welcome-file-list>
    <welcome-file>Index</welcome-file>
</welcome-file-list> 
                
      was (Author: uklance):
    I think this might solve it

public static void contributeIgnoredPathsFilter(Configuration<String> configuration) {
   configuration.add("/index\\.(?:html|htm|jsp)");
} 
                  
> Tomcat 7 Deployment Issue: Default Welcome File List Overrides Index component in T5 application
> ------------------------------------------------------------------------------------------------
>
>                 Key: TAP5-1904
>                 URL: https://issues.apache.org/jira/browse/TAP5-1904
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.3.2
>            Reporter: Uday Kari
>              Labels: tomcat
>
> In Tomcat 7, the root index page/component in T5 application is being overridden by Default Welcome File List.  
> For more please see: 
> http://tapestry.1045711.n5.nabble.com/Tomcat-7-deployment-TapestryModule-RequestExceptionHandler-Processing-of-request-failed-with-uncaugh-td5637647.html

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (TAP5-1904) Tomcat 7 Deployment Issue: Default Welcome File List Overrides Index component in T5 application

Posted by "Uday Kari (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TAP5-1904?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13265735#comment-13265735 ] 

Uday Kari commented on TAP5-1904:
---------------------------------

Update from Tomcat guys: 

2012/4/20 Christopher Schultz <ch...@christopherschultz.net>:
> To whom it may concern,
>
> On 4/14/12 3:37 PM, Net Dawg wrote:
>> To your question as to "what point merging algorithms are not
>> followed", please try this inside your application context and you will
>> probably see the same:
>>
>>     <welcome-file-list>
>>      <welcome-file />
>>     </welcome-file-list>
>>
>> This seems to tell Tomcat 7, in plain English, "there are no welcome
>> files, don't bother looking for them anywhere" ...
>
> You probably aren't getting a response because you didn't answer the
> question. Your opinion of how things should work isn't really relevant,
> here. Konstantin asked where Tomcat's behavior violates the servlet spec
> and you replied by telling him what you think ought to happen. That's
> not an answer, so you're being ignored.
>
> Can you find a place where your "seems to tell" scenario above is
> actually supported by language in the servlet specification? If so, tell
> us where. If the spec isn't clear on a subject, usually the safest thing
> to do is not change anything because users have become reliant on
> certain behavior. If and when the spec is clarified, a change will be made.
>

1. According to XSD, and as illustrated in Figure 14-9 on page #153
("175 of 230") of Servlet 3.0 Rev.a specification,  welcome-file-list
should contain at least one welcome-file element.

2. welcome-file type is xsd:string and said "contains file name to use
as a default welcome file".

So an empty string formally passes the XSD, but I nowhere see an
explicit saying on how to handle it.  It certainly is not a "file
name", but it passes the restriction of not having leading or trailing
'/'.

The algorithm in ch. 10.10 may work with empty strings (running a
fruitless loop - looking for a resource that is already known to not
exist), but I am not sure that it is a well-defined behaviour.

I'd be nice to have this clarified from the specification team (elsewhere).

3. According to chapter 8.1.6 (page #64, 86/230) of the same spec,
welcome file list defaults to contain index.htm(l) and index.jsp.

Best regards,
Konstantin Kolinko
                
> Tomcat 7 Deployment Issue: Default Welcome File List Overrides Index component in T5 application
> ------------------------------------------------------------------------------------------------
>
>                 Key: TAP5-1904
>                 URL: https://issues.apache.org/jira/browse/TAP5-1904
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.3.2
>            Reporter: Uday Kari
>              Labels: tomcat
>
> In Tomcat 7, the root index page/component in T5 application is being overridden by Default Welcome File List.  
> For more please see: 
> http://tapestry.1045711.n5.nabble.com/Tomcat-7-deployment-TapestryModule-RequestExceptionHandler-Processing-of-request-failed-with-uncaugh-td5637647.html

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Issue Comment Edited] (TAP5-1904) Tomcat 7 Deployment Issue: Default Welcome File List Overrides Index component in T5 application

Posted by "Uday Kari (Issue Comment Edited) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TAP5-1904?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13253649#comment-13253649 ] 

Uday Kari edited comment on TAP5-1904 at 4/13/12 7:02 PM:
----------------------------------------------------------

Yep.  Most definitely a tomcat issue.  

    <welcome-file-list>
     <welcome-file />
    </welcome-file-list>

This, in web.xml, seems to tell Tomcat "there are no welcome files in this application, do not look for index.jsp etc" ...   

                
      was (Author: netdawg):
    Yep.  Fixed.  Most definitely a tomcat issue.  

    <welcome-file-list>
     <welcome-file />
    </welcome-file-list>

This, in web.xml, seems to tell Tomcat "there are no welcome files in this application, do not look for index.jsp etc" ...   

                  
> Tomcat 7 Deployment Issue: Default Welcome File List Overrides Index component in T5 application
> ------------------------------------------------------------------------------------------------
>
>                 Key: TAP5-1904
>                 URL: https://issues.apache.org/jira/browse/TAP5-1904
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.3.2
>            Reporter: Uday Kari
>              Labels: tomcat
>
> In Tomcat 7, the root index page/component in T5 application is being overridden by Default Welcome File List.  
> For more please see: 
> http://tapestry.1045711.n5.nabble.com/Tomcat-7-deployment-TapestryModule-RequestExceptionHandler-Processing-of-request-failed-with-uncaugh-td5637647.html

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (TAP5-1904) Tomcat 7 Deployment Issue: Default Welcome File List Overrides Index component in T5 application

Posted by "Uday Kari (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TAP5-1904?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13265735#comment-13265735 ] 

Uday Kari commented on TAP5-1904:
---------------------------------

Update from Tomcat guys: 

2012/4/20 Christopher Schultz <ch...@christopherschultz.net>:
> To whom it may concern,
>
> On 4/14/12 3:37 PM, Net Dawg wrote:
>> To your question as to "what point merging algorithms are not
>> followed", please try this inside your application context and you will
>> probably see the same:
>>
>>     <welcome-file-list>
>>      <welcome-file />
>>     </welcome-file-list>
>>
>> This seems to tell Tomcat 7, in plain English, "there are no welcome
>> files, don't bother looking for them anywhere" ...
>
> You probably aren't getting a response because you didn't answer the
> question. Your opinion of how things should work isn't really relevant,
> here. Konstantin asked where Tomcat's behavior violates the servlet spec
> and you replied by telling him what you think ought to happen. That's
> not an answer, so you're being ignored.
>
> Can you find a place where your "seems to tell" scenario above is
> actually supported by language in the servlet specification? If so, tell
> us where. If the spec isn't clear on a subject, usually the safest thing
> to do is not change anything because users have become reliant on
> certain behavior. If and when the spec is clarified, a change will be made.
>

1. According to XSD, and as illustrated in Figure 14-9 on page #153
("175 of 230") of Servlet 3.0 Rev.a specification,  welcome-file-list
should contain at least one welcome-file element.

2. welcome-file type is xsd:string and said "contains file name to use
as a default welcome file".

So an empty string formally passes the XSD, but I nowhere see an
explicit saying on how to handle it.  It certainly is not a "file
name", but it passes the restriction of not having leading or trailing
'/'.

The algorithm in ch. 10.10 may work with empty strings (running a
fruitless loop - looking for a resource that is already known to not
exist), but I am not sure that it is a well-defined behaviour.

I'd be nice to have this clarified from the specification team (elsewhere).

3. According to chapter 8.1.6 (page #64, 86/230) of the same spec,
welcome file list defaults to contain index.htm(l) and index.jsp.

Best regards,
Konstantin Kolinko
                
> Tomcat 7 Deployment Issue: Default Welcome File List Overrides Index component in T5 application
> ------------------------------------------------------------------------------------------------
>
>                 Key: TAP5-1904
>                 URL: https://issues.apache.org/jira/browse/TAP5-1904
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.3.2
>            Reporter: Uday Kari
>              Labels: tomcat
>
> In Tomcat 7, the root index page/component in T5 application is being overridden by Default Welcome File List.  
> For more please see: 
> http://tapestry.1045711.n5.nabble.com/Tomcat-7-deployment-TapestryModule-RequestExceptionHandler-Processing-of-request-failed-with-uncaugh-td5637647.html

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (TAP5-1904) Tomcat 7 Deployment Issue: Default Welcome File List Overrides Index component in T5 application

Posted by "Lance (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TAP5-1904?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13253281#comment-13253281 ] 

Lance commented on TAP5-1904:
-----------------------------

I think this might solve it

public static void contributeIgnoredPathsFilter(Configuration<String> configuration) {
   configuration.add("/index\\.(?:html|htm|jsp)");
} 
                
> Tomcat 7 Deployment Issue: Default Welcome File List Overrides Index component in T5 application
> ------------------------------------------------------------------------------------------------
>
>                 Key: TAP5-1904
>                 URL: https://issues.apache.org/jira/browse/TAP5-1904
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.3.2
>            Reporter: Uday Kari
>              Labels: tomcat
>
> In Tomcat 7, the root index page/component in T5 application is being overridden by Default Welcome File List.  
> For more please see: 
> http://tapestry.1045711.n5.nabble.com/Tomcat-7-deployment-TapestryModule-RequestExceptionHandler-Processing-of-request-failed-with-uncaugh-td5637647.html

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira