-
1. Re: error page doesn't render richfaces
katya Nov 24, 2010 7:33 AM (in response to katya)The problem was that the richfaces filter didn't have an error dispatcher:
<filter-mapping><filter-name>richfaces</filter-name><servlet-name>Spring MVC Dispatcher Servlet</servlet-name><dispatcher>REQUEST</dispatcher><dispatcher>FORWARD</dispatcher><dispatcher>INCLUDE</dispatcher><dispatcher>ERROR</dispatcher></filter-mapping><filter-mapping>
<filter-name>richfaces</filter-name>
<servlet-name>Spring MVC Dispatcher Servlet</servlet-name>
<dispatcher>REQUEST</dispatcher>
<dispatcher>FORWARD</dispatcher>
<dispatcher>INCLUDE</dispatcher>
<dispatcher>ERROR</dispatcher>
</filter-mapping>
I also moved the error page file to WEB-INF, and the location of the error page is /errorPage.sp. There is still an error in web.xml, but it is working.
The SecurityContextHolder was null, but when I added the error dispatcher in springSecurityFilterChain it was ok:
<filter-mapping>
<filter-name>springSecurityFilterChain</filter-name>
<url-pattern>/*</url-pattern>
<dispatcher>REQUEST</dispatcher>
<dispatcher>FORWARD</dispatcher>
<dispatcher>INCLUDE</dispatcher>
<dispatcher>ERROR</dispatcher>
</filter-mapping>