Beginners RMI question.

From: Simon Higgs (devnull_at_higgs.me.uk)
Date: 05/31/04


Date: Mon, 31 May 2004 19:31:59 +0100

I'm getting the following error when I try to run a basic RMI server.

Trouble: java.rmi.ServerException: RemoteException occurred in server
thread; nested exception is:
        java.rmi.UnmarshalException: error unmarshalling arguments; nested
        exception is: java.lang.ClassNotFoundException:
        InterestRateImpl_Stub

But I have generated the stub, and passed to the VM:

-Djava.rmi.server.codebase=file://Users/simon/Documents/OU/M301/JavaProjects/rmi/InterestRateServer/classes/

-rw-r--r-- 1 simon simon 2683 31 May 18:33
/Users/simon/Documents/OU/M301/JavaProjects/rmi/InterestRateServer/classes/InterestRateImpl_Stub.class

And the RMIRegistry is running.

Any ideas?

Thanks, Simon.