RE: 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)

2004-08-04 Thread Nathan Pierce
are restiricted to the same port or not. If they > are, you're out of luck. You can ask for permissions on the client machine, > but that's really not worth the trouble. In any case, a better solution would > be to let the web server access the database. > > > > &

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)

2004-08-04 Thread Nathan Pierce
I am trying to connect to a database which is being served off of my machine (same one I am using to connect to it). It works fine when I do- System.out.println(rs.getString("D.Name") );- and it prints it out in an application. But when I try to output it in an applet, it gives me this error: