Skip to Content
0
Jul 02, 2006 at 05:49 AM

ClassCastException in ctx.lookup

28 Views

Hello,

I created java bean and deployed it to server with an EAR project.

Now I want to write java client to access it and the code

TestBeanLocalHome y = (TestBeanLocalHome) ctx.lookup("sap.com/EJBTestEAR/TestBeanBean");>

gives me ClassCastException.

The same with code <i>TestBeanLocalHome myExampleHome =

(TestBeanLocalHome)javax.rmi.PortableRemoteObject.narrow(ctx.lookup("sap.com/EJBTestEAR/TestBeanBean"), TestBeanLocalHome.class);

i will appreciate any help on that matter

Roni