Guys...I really need your help. I have been sucessfully developing and
testing the application using the command below:
-------------------------------------------
D:\working\ver3.0\scjd\starting>
java -Djava.rmi.server.hostname=localhost -Djava
.security.policy=java.policy -Djava.rmi.server.codebase=file:/D:\working\ver3.0\scjd\starting/ suncertify.server.FBNServer
---------------------------------------------
Now I am trying to get rid off the the "codebase" property while starting the server using the command below:
-------------------------------------------
D:\working\ver3.0\scjd\starting>java -Djava.rmi.server.hostname=localhost -Djava
.security.policy=java.policy suncertify.server.FBNServer
------------------------------------------
Here is my policy file:
------------------------------------------
grant {
permission java.net.SocketPermission "*:1024-65535",
"connect,accept";
permission java.io.FilePermission
"-", "read";
};
-------------------------------------------
I get the exception below:
------------------------------------------
ReservationEngine exception: RemoteException occurred in server
thread; nested e
xception is:
java.rmi.UnmarshalException: error unmarshalling arguments; nested excep
tion is:
java.lang.ClassNotFoundException: suncertify.server.FBNServer_Stub
java.rmi.ServerException: RemoteException occurred in server thread; nested exce
ption is:
java.rmi.UnmarshalException: error unmarshalling arguments; nested excep
tion is:
java.lang.ClassNotFoundException: suncertify.server.FBNServer_Stub
at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:352
)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:207)
---------------------------------------------
I have been working on this for 5 hrs now. There is something obviously I am doing wrong. I am using Win2K Professional Edition and JDK1.4
Thanks a lot