Reply To: Problem starting java.lang.ClassNotFoundException: com.ocpsoft.pretty.PrettyFilt

Splash Forums PrettyFaces Users Problem starting java.lang.ClassNotFoundException: com.ocpsoft.pretty.PrettyFilt Reply To: Problem starting java.lang.ClassNotFoundException: com.ocpsoft.pretty.PrettyFilt

#26934

You got the wrong filter name. The name of the filter changed since PrettyFaces is part of Rewrite. Have a look here:

http://www.ocpsoft.org/rewrite/docs/configuration/install

Just add this to your web.xml:

<listener>
   <listener-class>org.ocpsoft.rewrite.servlet.impl.RewriteServletRequestListener</listener-class>
</listener>

<listener>
   <listener-class>org.ocpsoft.rewrite.servlet.impl.RewriteServletContextListener</listener-class>
</listener>

<filter>
   <filter-name>OCPsoft Rewrite Filter</filter-name>
   <filter-class>org.ocpsoft.rewrite.servlet.RewriteFilter</filter-class>
   <async-supported>true</async-supported>
</filter>
<filter-mapping>
   <filter-name>OCPsoft Rewrite Filter</filter-name>
   <url-pattern>/*</url-pattern>
   <dispatcher>FORWARD</dispatcher>
   <dispatcher>REQUEST</dispatcher>
   <dispatcher>INCLUDE</dispatcher>
   <dispatcher>ASYNC</dispatcher>
   <dispatcher>ERROR</dispatcher>
</filter-mapping>