[jboss-user] [EJB 3.0] - Adding EJB3 Stateless EJBs to an EJB2.1 jar ClassCastExcepti
MarcusDidiusFalco
do-not-reply at jboss.com
Tue Apr 7 04:17:44 EDT 2009
Hallo I am trying to add a Stateless Session Bean (EJB3 with annotations Stateless, Remote, Home ..) to an EJB 2.1 project on JBoss 4.2.3.
The new SSB works well as I have tested with JUnit.
However in the old code I get a ClassCastException at:
SchnittstelleLocalHome lHome = (SchnittstelleLocalHome) ServiceLocator.lookupLocalHome( SchnittstelleLocalHome.JNDI_NAME );
This is caused by adding an @Local Interface to a EJB3 Bean with an abritrary name. I have made sure that there a no Naming conflicts.
Is this a known bug? Any workarounds?
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4223915#4223915
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4223915
More information about the jboss-user
mailing list