Why does a JAR change the behavior of RMI?!_NEWLINE_!I have a...
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Saturday, November 25, 2000 08:36 AM

Why does a JAR change the behavior of RMI?

I have a Java "fat" client application using RMI to connect to a server and using callbacks. Everything works fine until I try to put the client application in a jar. When the client is jarred and making the connection to the server, the client gets an UnMarshalException-ClassNotFoundException on the server stub class. The stub is in the jar with the client. If I move just the stub out of the jar everything works.

Re: Why does a JAR change the behavior of RMI?!_NEWLINE_!I have a...

Posted By:   Vikram_Rajan  
Posted On:   Thursday, June 28, 2001 04:46 AM

The stub should be present in the classpath environment variable in the console where rmiregistry is running. When the stubs are not in the jar, maybe they exist in a directory which is in the classpath. Check out this possibility.
About | Sitemap | Contact