Forums Register Login

RMI AccessException problem

+Pie Number of slices to send: Send
Please help.
I've got a AccessException being thrown when i attempt to bind to a rmi registry running on a remote machine. I've given full permissions to both the server and client
grant {
permission java.security.AllPermission;
};

but it still throwns the exception:


The client attempts to bind an object to the rmiregistry on a remote machine and the above error is given back
Run the server using
java -Djava.security.policy==policy.file Server
Client is the same command.
Anyone any ideas?
Thanx
+Pie Number of slices to send: Send
"SG" --
Welcome to JavaRanch! We're glad to have you here.
Would you please change your name to match JavaRanch's naming policy? We ask that all registered users display a name that meets the guidelines listed in the provided link. We feel it helps up maintain a professional image.
Thanks,
+Pie Number of slices to send: Send
Hi "SG" --
Welcome to JavaRanch! We ain't got too many rules here at the Ranch, but we do have our naming policy. Please read it and change your display name to match, pronto!
Now, on to your question. If the command line you're showing below is really what you're typing, then the problem is the "==" double equals; you're telling Java the policy file is named "=policy.file". Use only a single equals sign, and see if that don't fix ya up.
I am going to test your electrical conductivity with this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1899 times.
Similar Threads
Bind object to a registry on another machine
RMI client "access denied" problem
RMI Binding on localhost
RMI Registry location
RMI registry and remote object in different machines
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 02:16:45.