Re: Connection / Permission Problems with java applet
Posted by: Bruce Waldner
Date: November 24, 2004 10:23PM

Hi,

I'm just wondering if you solved your problem. I am having the same problem. I have written a Java applet that connects to a mySQL database via JDBC. Each time I run the applet, I get the following error message.

java.sql.SQLException: Unable to connect to any hosts due to exception: java.security.AccessControlException: access denied (java.net.SocketPermission 127.0.0.1:3306 connect, resolve)

I'm running my own mySQL server on a Mac running Mac OS 10.3.6. I have written a java policy file:

grant {
permission java.net.SocketPermission "127.0.0.1:3306", "accept,connect,resolve";
};

but I'm not too sure where to place it.

Thanks,
Bruce

Options: ReplyQuote




Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.