Dear all,

I am implementing a 3-tier system using Tomcat, Jonas and Oracle 8i.
Servlets run in Tomcat will calls session beans in Jonas for business logic
processing.  In the ejb tier, I tried to call a session bean in another
session bean via the standard jndi interface:

    Hashtable env = new Hashtable();

env.put("java.naming.factory.initial","com.sun.jndi.rmi.registry.RegistryCon
textFactory");

    InitialContext ctx = new InitialContext(env);

    SecurityMgrHome home = (SecurityMgrHome)ctx.lookup("ejb/SecurityMgr");
    SecurityMgr remote = home.create();

But, unexpectedly I get an ClassCastException in the Tomcat console about
the Stub of the session bean which is refered by another session bean...

java.lang.ClassCastException: com.xxx.security.ejb.JOnASejb_SecurityMgrHom
e_Stub
...

I have included the ejb-ref element in the xml deployment descriptor, but
this still doesn't work.

Please help.

Regards,
Raymond


----
To unsubscribe, send email to [EMAIL PROTECTED] and
include in the body of the message "unsubscribe jonas-users".
For general help, send email to [EMAIL PROTECTED] and
include in the body of the message "help".

Reply via email to