Hi. I have a current project setup having a custom Authorization filter & mapping defined in web.xml as below.
<filter>
<filter-name>UserAuthorizationFilter</filter-name>
<filter-class>com.pac.GenericAuthorizationFilter</filter-class>
<init-param>
<param-name>errorPage</param-name>
<param-value>/jsp/common/commonError.faces</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>GenericAuthorizationFilter</filter-name>
<servlet-name>Faces Servlet</servlet-name>
<dispatcher>FORWARD</dispatcher>
<dispatcher>INCLUDE</dispatcher>
<dispatcher>REQUEST</dispatcher>
<dispatcher>ERROR</dispatcher>
</filter-mapping>
As i wanted to added richfaces to my project i have done importing the apporipirate richfaces jars. But when i include this below ajax4jsf filter the applicaiton server is not starting and throwing errors. I need some help in configuring 2 filters so normal authorization filter mechanism still works along with the new ajax4jxf filter. Any help is highly appreciated..
<filter>
<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>
Envirorment: myfaces1.1.5, rich faces 3.1.6 , view handler: org.apache.myfaces.tomahawk.application.jsp.JspTilesViewHandlerImpl,
Websphere 6.1, RAD 7