Re: PrettyFaces in EAR

Splash Forums PrettyFaces Users PrettyFaces in EAR Re: PrettyFaces in EAR

#23186

You packaging looks good. But I’m not completely sure if AS7 will pick up configuration from web-fragment.xml files in the EAR’s lib directory. It may be required to manually register the PrettyFilter in your setup by adding the following entry to your web.xml:

<filter>
<filter-name>Pretty Filter</filter-name>
<filter-class>com.ocpsoft.pretty.PrettyFilter</filter-class>
<async-supported>true</async-supported>
</filter>
<filter-mapping>
<filter-name>Pretty Filter</filter-name>
<url-pattern>/*</url-pattern>
<dispatcher>FORWARD</dispatcher>
<dispatcher>REQUEST</dispatcher>
<dispatcher>ASYNC</dispatcher>
<dispatcher>ERROR</dispatcher>
</filter-mapping>