Problem registering Callback applet in weblogic 8.1 RMI


I am using a signed applet which is loaded from the web application. This applet is used to communicate to the weblogic RMI Sever. (both the web application and RMI are in same server and removed the applet and tried with normal java client, it fails in both the cases and giving the same exception)

This is my code to export and register the applet.

String serverName = "WLRMISERVER";
mRmiServer = (WLRMIServer) ctx.lookup(serverName);
CTIAppletCallback callback = new CTICommunicationApplet();//Just for Testing
System.out.println("Exporting Object");
RemoteStub stub = UnicastRemoteObject.exportObject(callback); <b> (Fails here, if stubs are not there)</b>
System.out.println("Object Exported ::"+stub);
mRmiServer.registerCallback((CTIAppletCallback)stub); <b>(Fails here, if i generate the stubs using JRMP)</b>
System.out.println("Call back registered");

I can able to call the remote functions of the RMI Server, but while registering the applet for callback, I am getting the following exception.

<b>//If stubs are generated by JRMP otherwise StubNotFoundException
Exporting Object
Object Exported ::com.ehsn.cti.applet.CTICommunicationApplet_Stub[RemoteStub [ref: endpoint:[](local),objID:[0]]]]
1, Client got exception
java.rmi.NoSuchObjectException: CORBA INV_OBJREF 0 No; nested exception is:
        org.omg.CORBA.INV_OBJREF: com.ehsn.cti.applet.CTICommunicationApplet_Stub not exported or is a JRMP stub  vmcid: 0x0  minor code: 0  completed: No
        at javax.rmi.CORBA.Util.mapSystemException(
        at com.ehsn.cti.weblogic.rmi.server._WLRMIServer_Stub.registerCallback(Unknown Source)
Caused by: org.omg.CORBA.INV_OBJREF: com.ehsn.cti.applet.CTICommunicationApplet_Stub not exported or
 is a JRMP stub  vmcid: 0x0  minor code: 0  completed: No
        at javax.rmi.CORBA.Util.writeRemoteObject(
        ... 3 more

Can anybody provide me a sample code for callback applet using weblogic RMI and steps to install the same.

Please help me, this is very urgent.

Thanks and Regards,
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
ja_jamalAuthor Commented:
Hi Vikram,

Do you have the Stock Applet (All Java Files) sample code......

Thanks and Regards,
Hi jamal,
i dont have the source....
just try with the concept
ja_jamalAuthor Commented:
Hi Vikram,

To execute the client application, it needs the weblogic.jar.

Weblogic.jar is 30 MB in size, wlclient.jar is not having all the files for RMI.

Is there any client jar file provided by weblogic for RMI Clients?.

Thanks and Regards,
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Java App Servers

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.