Problem in PortableRemoteObject
Hi i am getting this error while making Session bean.
I think its not getting a proper object in lookup.
java.lang.ClassCastException at com.sun.corba.se.internal.javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:293)
Code is like this:
InitialContext ctx = new InitialContext();
Object ob = ctx.lookup("java:comp/env/ejb/CaliculatorBean");
CaliculatorHome home =
(CaliculatorHome) PortableRemoteObject.narrow(ob,CaliculatorHome.class);
//Initialize the enterprise bean
calc = home.create();
Help me out.................
Reply as sson as possible.........
Thanks in advance.....................

