Re: java.lang.ClassCastException: cannot be cast to com.ocpsoft.pretty.faces.rewrite

Splash Forums PrettyFaces Users java.lang.ClassCastException: cannot be cast to com.ocpsoft.pretty.faces.rewrite Re: java.lang.ClassCastException: cannot be cast to com.ocpsoft.pretty.faces.rewrite

#20014

I’m unsure if I understood your setup correctly. You package the implementation class into the EJB JAR file deployed with the EAR? I think in this case it is reasonable that the ClassLoader of the EJB JAR file doesn’t see the PrettyFaces JAR in the web application.

How about placing your Processor implementation class in the WAR archive? Wouldn’t this make more sense as it belongs to the web application? In this case placing the PrettyFaces JAR in the /WEB-INF/lib should be sufficient.