RMI Exception


General J2EE: RMI Exception

  1. RMI Exception (2 messages)

    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 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.


    Threaded Messages (2)

  2. RMI Exception[ Go to top ]

    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/

  3. Re: RMI Exception[ Go to top ]

    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