I am using Eclipse 3.1 (and latest JBoss IDE plugin) and JBoss 4.0.2, I tried out the tutorial example for JBoss IDE, however I am getting ClassCastException when casting the JNDI reference Object to the Home type.
My development was exactly as in the Tutorial (using X-Doclet). There seems to be a problem...when debugging, the object recieved on JNDI lookup is somewhat .."ejb/FiboHome" whereas there is no mention of such JNDI name anywhere in the development process. Please Help out!!!
Thanks in advance!!!
The issue is probably as discussed in:
Servlets have an own classloader since jboss 4.0.2
and you can't cast the Sessionbean.
Don't creat any xy-client.jar into your .war file, it is not needed anymore.
documentroot/WEB-INF/lib/xy-client.jar -> away!
Hope it helps,