Problem registering Callback applet in weblogic 8.1 RMI

Hi,

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:[192.168.69.32:2465](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 com.sun.corba.se.internal.iiop.ShutdownUtilDelegate.mapSystemException(ShutdownUtilDelegate.java:94)
        at javax.rmi.CORBA.Util.mapSystemException(Util.java:65)
        at com.ehsn.cti.weblogic.rmi.server._WLRMIServer_Stub.registerCallback(Unknown Source)
        at com.ehsn.cti.applet.WLRMITester.run(WLRMITester.java:77)
        at java.lang.Thread.run(Thread.java:534)
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 com.sun.corba.se.internal.util.Utility.autoConnect(Utility.java:175)
        at com.sun.corba.se.internal.javax.rmi.CORBA.Util.writeRemoteObject(Util.java:122)
        at javax.rmi.CORBA.Util.writeRemoteObject(Util.java:109)
        ... 3 more
</b>

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,
Jamal
ja_jamalAsked:
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,
Jamal
0
vikraman_bCommented:
Hi jamal,
i dont have the source....
just try with the concept
0
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,
Jamal
0
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.