This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes Distributed Java and the fly likes RMI help! access denied problem Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Distributed Java
Reply Bookmark "RMI help! access denied problem" Watch "RMI help! access denied problem" New topic
Author

RMI help! access denied problem

Nancy Lee
Greenhorn

Joined: Mar 23, 2002
Posts: 15
My system is Microsoft XP Professional. I am trying to run three different samples of RMI program (One of them is from Sun). When I tried to run the RMI Server, all of them gave me the same error message.

1. I followed the instructions to get all the files ready to run.
2. Start the HTTP Server (ClassFileServer, which I downloaded from SUN).
3. Start the rmiregistry on port 1099.
4. Start the RMI Server. Here I always got this error message:
java.security.AccessControlException: access denied (java.net.SocketPermission 127.0.0.1:1099 connect,resolve)
I tried many different suggestions to fix policy file, but no use. Through reading some posted messages about this problem, I guess that I don't have authorization to talk to rmiregistry (which runs on port 1099). My system is XP professional.
Any help is appreciated. Thanks.
Marco Barenkamp
Ranch Hand

Joined: Aug 27, 2001
Posts: 94
Hi,
You do not have the permissions for your actions( defined by a policy file).
Start the "policytool" (simple by typing policytool in a dos box)
Assign "AllPermissions" to the policyfile that you have to store
<user_home>/.java.policy
This should work.


Marco Barenkamp<br />_ _ _ _ _ ________________________ _ _ _ _ _ <br />L M I N T E R N E T S E R V I C E S AG<br /> <br />Head of Software Development<br /> <br /> <br />BEA Certified Enterprise Developer<br />Sun Certified Programmer for the Java2 Platform<br />Sun Certified Web Component Developer for the Java2 Platform<br />Sun Certified Developer for the Java 2 Platform <br />Sun Certified Business Component Developer for the Java 2 Platform <br />Sun Certified Enterprise Architect for the Java 2 Platform Enterprise Edition<br /> <br />LMIS AG
Nancy Lee
Greenhorn

Joined: Mar 23, 2002
Posts: 15
Thanks a lot Marco. It is working now.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: RMI help! access denied problem
 
Similar Threads
RMI ...
help me to solve java.rmi.UnmarshalException
RMI help
RMI Problem
using http for rmi