Getting class cast exception where both classes are exactly the same

后端 未结 5 1482
天涯浪人
天涯浪人 2020-11-27 07:16

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         


        
5条回答
  •  再見小時候
    2020-11-27 07:37

    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.

提交回复
热议问题