Hm. Without seeing the code, I could only guess. But since your program is failing on a UnicastServer reference, it's got something to do with properly identifying the implementation of your service -- that is, the class that implements your service and either extends UnicastRemoteObject or calls UnicastRemoteObject's static exportObject() method.
Make visible what, without you, might perhaps never have been seen. - Robert Bresson