[jbosstools-issues] [JBoss JIRA] Updated: (JBIDE-7839) Web.xml validation
Oliver Freivogel (JIRA)
jira-events at lists.jboss.org
Wed Dec 8 08:54:31 EST 2010
[ https://jira.jboss.org/browse/JBIDE-7839?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Oliver Freivogel updated JBIDE-7839:
------------------------------------
Description:
<error-page/> entries in web.xml for paths defined by servlet-mapping tags other than the FacesServlet are marked as errors: location does not exists.
Hier a example:
.....
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.faces</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>ErrorRedirectServlet</servlet-name>
<url-pattern>/ErrorRedirect</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>TimeOutServlet</servlet-name>
<url-pattern>/TimeOut</url-pattern>
</servlet-mapping>
.......
<error-page>
<exception-type>javax.faces.application.ViewExpiredException</exception-type>
<location>/TimeOut</location>
</error-page>
<error-page>
<error-code>500</error-code>
<location>/ErrorRedirect</location>
</error-page>
<error-page>
<error-code>403</error-code>
<location>/ErrorRedirect</location>
</error-page>
<error-page> tags are marked as errors.
was:
<error-page/> entries in web.xml for Urls defined by Servlet-Mappings other than the FacesServlet are marked as errors: location does not exists.
Hier a example:
.....
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.faces</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>ErrorRedirectServlet</servlet-name>
<url-pattern>/ErrorRedirect</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>TimeOutServlet</servlet-name>
<url-pattern>/TimeOut</url-pattern>
</servlet-mapping>
.......
<error-page>
<exception-type>javax.faces.application.ViewExpiredException</exception-type>
<location>/TimeOut</location>
</error-page>
<error-page>
<error-code>500</error-code>
<location>/ErrorRedirect</location>
</error-page>
<error-page>
<error-code>403</error-code>
<location>/ErrorRedirect</location>
</error-page>
Error page tags are marked as errors.
> Web.xml validation
> ------------------
>
> Key: JBIDE-7839
> URL: https://jira.jboss.org/browse/JBIDE-7839
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: jsp/jsf/xml source editing
> Affects Versions: 3.2.0.Beta1
> Environment: Max OS X 10.6, Eclipse 3.6.1 32-bit
> Reporter: Oliver Freivogel
> Assignee: Alexey Kazakov
>
> <error-page/> entries in web.xml for paths defined by servlet-mapping tags other than the FacesServlet are marked as errors: location does not exists.
> Hier a example:
> .....
> <servlet-mapping>
> <servlet-name>Faces Servlet</servlet-name>
> <url-pattern>*.faces</url-pattern>
> </servlet-mapping>
> <servlet-mapping>
> <servlet-name>ErrorRedirectServlet</servlet-name>
> <url-pattern>/ErrorRedirect</url-pattern>
> </servlet-mapping>
> <servlet-mapping>
> <servlet-name>TimeOutServlet</servlet-name>
> <url-pattern>/TimeOut</url-pattern>
> </servlet-mapping>
> .......
> <error-page>
> <exception-type>javax.faces.application.ViewExpiredException</exception-type>
> <location>/TimeOut</location>
> </error-page>
> <error-page>
> <error-code>500</error-code>
> <location>/ErrorRedirect</location>
> </error-page>
> <error-page>
> <error-code>403</error-code>
> <location>/ErrorRedirect</location>
> </error-page>
> <error-page> tags are marked as errors.
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jbosstools-issues
mailing list