Hi,
when I invoke rmiregistry from command line
(Win'NT) i am getting following exception.
Apparently Naming.rebind is failing.
(All programs including rmid, rmiregistry, RMI activation
setup program are running on local host).
Strangely, If I create rmiregistry programatically, then it
is working. After going through the API documentation, I notice
that LocateRegistry.createRegistry() creates as well as EXPORTS
Registry.
What is meant by exporting RMI registry. If we invoke RMI registry, are not we exporting it?
I tried for 2 days with all permutations and finally
posting this. If some one knew this problem please
help me.
Thanks for reading.
Krishna
Exception trace:
--------------------------------------------------
java.lang.ClassNotFoundException: com.zen.policy.DistPDP.DistPDPImpl_Stub
at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Unknown Source)
at sun.rmi.transport.StreamRemoteCall.executeCall(Unknown Source)
at sun.rmi.server.UnicastRef.invoke(Unknown Source)
at sun.rmi.registry.RegistryImpl_Stub.rebind(Unknown Source)
at java.rmi.Naming.rebind(Unknown Source)
at com.zen.policy.DistPDP.DistPDPSetup.<init>(DistPDP/DistPDPSetup.java:411)
at com.zen.policy.PSDistPDP.<init>(PSDistPDP.java:51)
at com.zen.policy.PSDistPDP.main(PSDistPDP.java:30)
--------------
when I invoke rmiregistry from command line
(Win'NT) i am getting following exception.
Apparently Naming.rebind is failing.
(All programs including rmid, rmiregistry, RMI activation
setup program are running on local host).
Strangely, If I create rmiregistry programatically, then it
is working. After going through the API documentation, I notice
that LocateRegistry.createRegistry() creates as well as EXPORTS
Registry.
What is meant by exporting RMI registry. If we invoke RMI registry, are not we exporting it?
I tried for 2 days with all permutations and finally
posting this. If some one knew this problem please
help me.
Thanks for reading.
Krishna
Exception trace:
--------------------------------------------------
java.lang.ClassNotFoundException: com.zen.policy.DistPDP.DistPDPImpl_Stub
at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Unknown Source)
at sun.rmi.transport.StreamRemoteCall.executeCall(Unknown Source)
at sun.rmi.server.UnicastRef.invoke(Unknown Source)
at sun.rmi.registry.RegistryImpl_Stub.rebind(Unknown Source)
at java.rmi.Naming.rebind(Unknown Source)
at com.zen.policy.DistPDP.DistPDPSetup.<init>(DistPDP/DistPDPSetup.java:411)
at com.zen.policy.PSDistPDP.<init>(PSDistPDP.java:51)
at com.zen.policy.PSDistPDP.main(PSDistPDP.java:30)
--------------