Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • Devaka Cooray
Saloon Keepers:
  • Ganesh Patekar
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • salvin francis
Bartenders:
  • Ron McLeod
  • Frits Walraven
  • Pete Letkeman

rmiregistry will not bind with codebases not on drive c  RSS feed

 
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • 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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!