posted 21 years ago
All,
I have noticed that if I start an rmi server with a codebase that resides on a drive other than c, ( ie -Djava.rmi.server.codebase="file:///D:/test.jar") then the server will throw the following:
java.rmi.ServerException: Server RemoteException; nested exception is:
java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
java.lang.ClassNotFoundException: tcs.ain.smsgw.RemoteQueue_Stub
java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
java.lang.ClassNotFoundException: tcs.ain.smsgw.RemoteQueue_Stub
java.lang.ClassNotFoundException: tcs.ain.smsgw.RemoteQueue_Stub
If I move the same jar file to c drive, change the codebase ( ie -Djava.rmi.server.codebase="file:///C:/test.jar")and voila, everything works like a charm. Am I missing something? Rmiregistry is started without any options.
Thanks in advance,
-MLA
Sun Certified Programmer for the Java 2 Platform 1.4