Cameron,

> When our webapp trys to connect to the database on localhost, an exception
> 
> 'java.security.AccessControlException: access denied
> (java.net.SocketPermission localhost resolve)'

In the past, the Connector/J JDBC client would often use
"localhost.localdomain" as the hostname, even though only "localhost"
had been specified. I suspect that was an odd system configuration at work.

At any rate, the database has been configured to allow connections from
"localhost" but not "localhost.localdomain".

I suspect that this is not your problem (given that the error is
"java.net.SocketPermission localhost resolve"), but it might help.

Another thing you might want to try is to use the IP address "127.0.0.1"
instead of the hostname "localhost". Dunno if it will help, though.

-chris


Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to