This discussion is archived
4 Replies Latest reply: Jan 30, 2011 6:37 PM by EJP RSS

Socket Connection Security Exception.

835248 Newbie
Currently Being Moderated
Dear all,

I've written an applet running in a webpage, which will open a socket connecting to 127.0.0.1, the localhost.

It work fine in my development environment (browser & webserver run in localhost), but when I deploy the website to a server,the applet always run with exception "access denied (java.net.SocketPermission 127.0.0.1:20000 connect,resolve)".

I've have signed the jar with a cert. I have changed the java.policy in system to allow it, but still it didnt work.

The grant permission that i gave is :

grant {
permission java.security.AllPermission;
};

kindly provide me a solution.

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points