[jbosstools-issues] [JBoss JIRA] (JBIDE-11248) Invalid web.xml warning for welcome-file and error-page

Cody Lerum (JIRA) jira-events at lists.jboss.org
Fri Mar 9 14:22:36 EST 2012


    [ https://issues.jboss.org/browse/JBIDE-11248?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12675591#comment-12675591 ] 

Cody Lerum commented on JBIDE-11248:
------------------------------------

basically I have the above snippets in a web.xml

{code}
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="3.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="
        http://java.sun.com/xml/ns/javaee
        http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd">

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

<error-page>
   <error-code>403</error-code>
   <location>/error/403.jsf</location>
</error-page>
{code}

and xhtml files @ 

/myproject/src/main/webapp/error/403.xhtml
/myproject/src/main/webapp/login.xhtml

If I do a project clean and then open the web.xml and right click in the content and select validate I get the warnings instantly.


Description	Resource	Path	Location	Type
file name references to login.jsp that does not exist in web content	web.xml	/myproject/src/main/webapp/WEB-INF	line 27	Web XML Problem

                
> Invalid web.xml warning for welcome-file and error-page
> -------------------------------------------------------
>
>                 Key: JBIDE-11248
>                 URL: https://issues.jboss.org/browse/JBIDE-11248
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: common/jst/core
>    Affects Versions: 3.3.0.M5
>         Environment: Nightly Build as of 3/8/2012
>            Reporter: Cody Lerum
>            Assignee: Viacheslav Kabanovich
>             Fix For: 3.3.0.Beta2
>
>
> web.xml shows warning "file name references to login.jsp that does not exist in web content"
> for
> {code}
> <welcome-file-list>
>     <welcome-file>login.jsf</welcome-file>
> </welcome-file-list>
> {code}
> and "location references to /error/403.jsp that does not exist in web content"
> for
> {code}
> <error-page>
>    <error-code>403</error-code>
>    <location>/error/403.jsf</location>
> </error-page>
> {code}
> This just changed in a recent nightly and  the actual pages are .xhtml not jsp

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

        


More information about the jbosstools-issues mailing list