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

#20012

tdruttenberg
Participant

I thought I updated this yesterday. Hmmm wonder what happened to that.

Interesting that you say that, chkal. I came across a posting on the jboss dev studio forum yesterday that suggested the same thing — namely that a jar appearing twice in the classpath can cause ClassCastException.

For some reason the prettyfaces libraries are not seen by my RemoveEmptyParams class unless the prettyfaces jar is in the EAR classpath.

I create the class in ond-ejb. There are pink lines and Xes everywhere indicating the class cannot find the prettyfaces Processor class. I add the Web App Libraries (which includes prettyfaces.jar) to the build path on ond-ejb. And still for some reason my class cannot compile. It’s as if it’s not even there.

I’m going to try it again now to double-check, but I tried it yesterday to doublecheck and sure enough the problem persisted.