I am doing a JBoss SEAM project and when I view a form I get this error.
java.lang.ClassCastException: it.cogitoweb.csi.entity.csiorelav.CsiTipoLav cannot be
In my case i had two different *.ear and wanted to load a class from the other. So i had to isolate the classloader. I used this description:
http://www.thorgull.be/wiki/index.php?title=ClassLoader_isolation_in_JBOSS
It worked for me.