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

#20011

I think placing PrettyFaces in both the EAR and WAR is causing this problem. If the Processor interface and your implementation class is loaded by different ClassLoaders, funny things (like ClassCastExceptions) can happen… :-)

It would be really interesting to find out why placing PrettyFaces only in the WAR file does not work in your setup.