[jboss-user] [EJB/JBoss] - ClassCastException when accessing EntityContext
isotope1145
do-not-reply at jboss.com
Thu Nov 16 15:16:49 EST 2006
Using an EJB 3.0 stateless session bean I am unable to call EJB 2.0 entity beans across isolated .ears:
- I am running JBoss 4.0.4
- I have two isolated ears: ejb3.ear is written to the EJB 3.0 spec, ejb2.ear which is a legacy ear written against the EJB 2.0 spec.
- A stateless session bean in ejb3.ear calls findByPrimaryKey on an entity bean in ejb2.ear.
- A ClassCastException occurs when I attempt to access the EntityContext in the ejb2.ear entity bean.
Upon debugging the ejb2.ear entity bean, the EntityContext class loader url indicates that it was loaded by the ejb3.ear class loader. This does not seem correct.
I have carefully followed the instructions in "Accessing EJBS in isolated ears" in
http://wiki.jboss.org/wiki/Wiki.jsp?page=ClassLoadingConfiguration
Calls between EJB 3.0 beans across two isolated ears work fine.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3986661#3986661
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3986661
More information about the jboss-user
mailing list