Error Initializing RMI Server
843793Jun 24 2005 — edited Jun 25 2005Hello,
I have a RMI server which I'm trying to run using the following command:
java -Djava.security.policy=D:\Tests\211\serverpolicy.txt server.LogServer
The problem is that I get the following exception:
RemoteException occurred in server thread; nested exception is:
java.rmi.UnmarshalException: error unmarshalling arguments; nested excep
tion is:
java.lang.ClassNotFoundException: server.LogServer_Stub
I have the stub and skeleton files, so I don't know what the problem is. Maybe it has something to do with the fact that the files are in a package: Maybe they don't contain the code line "package server;" in them. Is there a way to check that? How do I make them contain the line? I searched the options for the rmic command but found nothing.
Can somebody help me please?
Thanks.