evilb
02-25-03, 06:50
| I'm trying to connect to a MYSQL server via a tomcat running with -security. The machine in question is running RedHat 7.1 My development system, running under windows, with the same setup tomcat works fine. (I've granted the appropriate permissions in the catalina.policy file) I'm using the latest jConnector MySQL driver. The full error message I get is:- java.sql.SQLException: Unable to connect to any hosts due to exception: java.security.AccessControlException: access denied (java.net.SocketPermission localhost resolve) Can anyone help ? I *can* connect remotely to the database using the mySQL Control center, but Java can't when its run on the local machine. |