Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem running RMI application

 
Glenn Castro
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm running the example taken from
http://java.sun.com/j2se/1.3/docs/guide/rmi/getstart.doc.html#5238

After running the rmiregistry, I tried to run the server by typing the following at the command prompt:

java -classpath . -Djava.rmi.server.codebase="file:///d:/getStart" examples.hello.HelloImpl

Then I got this exception:

java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
java.lang.ClassNotFoundException: examples.hello.HelloImpl_Stub

How can I solve this problem?
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
From the page you referenced -
If you forget the trailing slash on the codebase property, or if the class files can't be located at the source (they aren't really being made available for download) or if you misspell the property name, you'll get thrown a java.lang.ClassNotFoundException. This exception will be thrown when you try to bind your remote object to the rmiregistry, or when the first client attempts to access that object's stub. If the latter case occurs, you have another problem as well because the rmiregistry was finding the stubs in its CLASSPATH.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!