thanks so much - i guess i shoulda copped that i needed to specify the policy file when running the client from the command line..duh!!
thanks again...
could i ask one more thing? this is prolly a really stupid question, but i'm new to RMI and i'm not sure about this so..
I have a Client and a Server (obviously)
I have a Task interface and a FibonacciTask class, a FactorialTask class and a PrimeTask class which all implement Task...
In the Task interface there is a method called calculate( Task t ) which returns a type Object..
So what the client does is it passes the object to be 'calcualted' to the server and server runs the method calculate ( Task t ) on the server-side and passes back an Object to the client..does that make sense? I hope so..
When I do this i get the following error:
RemoteException Error: RemoteException occurred in server
thread; nested exception is:
java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
java.lang.ClassNotFoundException: FibonacciTask (no security manager: RMI class loader disabled)
I dont really know how to fix this error, but if I put the FibonacciTask.class file into the folder where my server is ( seperate folder for the client files ) the calculate() method will run and return an Object to the client..but I figure that the FibonacciTask.class file should not be in with the server files - that's the whole point of RMI right!? SO..have you any suggestions on how to fix this...thanks so much for your help so far!!!
[ March 30, 2005: Message edited by: k mull ]