jboss运行时报:ClassCastException

今天在用jboss服务的时候,从web模块访问ejb模块时,在创建ejb的时候,报下面的额错误
Caused by: java.lang.ClassCastException: $Proxy209 cannot be cast to org.omg.CORBA.Object
at com.sun.corba.se.impl.javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:212)
... 37 more
解决办法:
修改
D:\ifs75sp7\jboss-eap-4.3\jboss-as\server\GDDEV\deploy\jboss-web.deployer\META-INF\jboss-service.xml
<attribute name="Java2ClassLoadingCompliance">true</attribute>

  <attribute name="UseJBossWebLoader">true</attribute>

你可能感兴趣的:(jboss)