[richfaces-issues] [JBoss JIRA] Updated: (RF-8285) Exception When Configuring Richfaces Filter in web-fragment.xml
Jay Balunas (JIRA)
jira-events at lists.jboss.org
Wed Jan 27 16:02:27 EST 2010
[ https://jira.jboss.org/jira/browse/RF-8285?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jay Balunas updated RF-8285:
----------------------------
Workaround Description: Do not use web-fragment.xml for filter configuration for RichFaces
Workaround: [Workaround Exists]
> Exception When Configuring Richfaces Filter in web-fragment.xml
> ---------------------------------------------------------------
>
> Key: RF-8285
> URL: https://jira.jboss.org/jira/browse/RF-8285
> Project: RichFaces
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Affects Versions: 3.3.3.BETA1
> Environment: Glassfish v3
> Reporter: John Leed
>
> To save some space, I tried moving the following from the application's web.xml into a shared web-fragment.xml:
> <servlet>
> <servlet-name>Faces Servlet</servlet-name>
> <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
> <load-on-startup>1</load-on-startup>
> </servlet>
> <servlet-mapping>
> <servlet-name>Faces Servlet</servlet-name>
> <url-pattern>*.jsf</url-pattern>
> </servlet-mapping>
> <filter>
> <display-name>RichFaces Filter</display-name>
> <filter-name>richfaces</filter-name>
> <filter-class>org.ajax4jsf.Filter</filter-class>
> </filter>
> <filter-mapping>
> <filter-name>richfaces</filter-name>
> <servlet-name>Faces Servlet</servlet-name>
> <dispatcher>REQUEST</dispatcher>
> <dispatcher>FORWARD</dispatcher>
> <dispatcher>INCLUDE</dispatcher>
> </filter-mapping>
> If I move them, I get the exception:
> org.ajax4jsf.config.ParsingException: No filter mapping set for a filter richfaces
> at org.ajax4jsf.config.WebXMLParser.init(WebXMLParser.java:148)
> at org.ajax4jsf.config.WebXMLParser.init(WebXMLParser.java:216)
> at org.ajax4jsf.webapp.WebXml.init(WebXml.java:111)
> at org.ajax4jsf.resource.InternetResourceService.init(InternetResourceService.java:130)
> at org.ajax4jsf.webapp.BaseFilter.init(BaseFilter.java:172)
> at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:259)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:215)
> ...
> Looks like WebXMLParser isn't written to look for web-fragment.xml's...
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the richfaces-issues
mailing list