Dear All,
I'm new to J2EE and currently working on RMI.I've created the Interface,Server and the client and have also created the Stub and Skeleton. When I tried running the Server using the Java *.class it throws this exception
Exception Message : java.security.AccessControlException: access denied (java.net.SocketPermission 127.0.0.1:1099 connect,resolve).
I also created the policy file selecting Permission as AllPermissions and have saved it in the root directory.What should be the problem and what should I do to overcome this. Please give me a solution to overcome this.
Thanks,
Ajay
-
RMI Exception (2 messages)
- Posted by: Ajay Kumar
- Posted on: September 29 2003 14:59 EDT
Threaded Messages (2)
- RMI Exception by Kumaraguruparan Karuppasamy on September 29 2003 16:41 EDT
- Re: RMI Exception by Tito George on August 10 2006 11:20 EDT
-
RMI Exception[ Go to top ]
- Posted by: Kumaraguruparan Karuppasamy
- Posted on: September 29 2003 16:41 EDT
- in response to Ajay Kumar
use this command line for both ur server & client..........
-Djava.security.policy="ur policy file"........ set only RMISecurityManager for the client...........
u can get more info from ...http://java.sun.com/docs/books/tutorial/rmi/
--------
KK -
Re: RMI Exception[ Go to top ]
- Posted by: Tito George
- Posted on: August 10 2006 11:20 EDT
- in response to Kumaraguruparan Karuppasamy
Create a name.policy file with the folowing code. grant { permission java.security.AllPermission; }; then run the application with the folowing path... "-Djava.security.policy=file:\your path\name.policy" titogeo@gmail.com