Re: ClassCastException on JNDI lookup

2008-07-09 Thread Jonathan Gallimore
Hi, I tried to replicate your class hierarchy with the simple-stateless example that comes with OpenEJB, and I wasn't able to reproduce your problem. I've popped my code up http://www.jrg.me.uk/examples.zip - perhaps you could have a look and let me know if my class hierarchy matches yours,

Re: ClassCastException on JNDI lookup

2008-07-09 Thread David Blevins
On Jul 8, 2008, at 8:47 AM, chawax wrote: And two interfaces, generated everytime too : - @javax.ejb.Local interface EmployeeServiceLocal extends EmployeeService - interface EmployeeService [...] I also have a ejb-jar.xml file with EJB defined as following : session

Re: ClassCastException on JNDI lookup

2008-07-09 Thread chawax
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