• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

RMI and Name Resolution for multiple drives

 
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Have you ensured your RMIRegistry has been started with NO CLASSPATH?
The error suggests that the RMIRegistry is finding your stubs/skels on its classpath.
If it does, it *does not bother* sending the java.rmi.server.codebase System Property in the marshal stream...
I found that codebase can point to any drive, but that the java.security.policy must point to a file on the same disk as the Java SDK or JRE is installed on...
 
reply
    Bookmark Topic Watch Topic
  • New Topic