Yes, that was the problem ! I replaced <local> with <business-local> and everything works perfect now ! Thanks a lot David.
Olivier David Blevins wrote: > > > The issue is <local> must refer to interfaces that extend > javax.ejb.EJBLocalObject, i.e. the old style EJB 2.x interfaces. You > just need to update your descriptor to use the <business-local> > element instead as in: > > <session> > <ejb-name>EmployeeServiceBean</ejb-name> > <business-local>t4.core.employee.EmployeeServiceLocal</business- > local> > <ejb-class>t4.core.employee.EmployeeServiceBean</ejb-class> > <session-type>Stateless</session-type> > <transaction-type>Container</transaction-type> > </session> > > That should fix the issue. Alternatively, you can let the annotation > do the work and leave EmployeeServiceLocal out of your ejb-jar.xml > entirely. > > -- View this message in context: http://www.nabble.com/ClassCastException-on-JNDI-lookup-tp18342366p18357709.html Sent from the OpenEJB User mailing list archive at Nabble.com.