Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

AccessControlException: access denied (java.net.SocketPermission <db> resolve)

333528Oct 7 2002 — edited Dec 28 2005
Hi, I am trying to connect to a database on a remote server using JDBC in a JavaBean that is invoked through WebForms.

When I bundle my JavaBean in a signed JAR file, and I try to load the WebForm, it hangs and wont bring up the form.
When I bundle my JavaBean in an unsigned JAR file, the form loads properly, but when I call the JavaBean to connect to the database (via DriverManager.getConnection(...)) , I get a security excpetion:

java.security.AccessControlException: access denied (java.net.SocketPermission orca9db1 resolve)

If you know what the cause and/or solution of this problem is, your suggestions are much appreciated as I have absolutely no idea how to solve this. Thanks in advance.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 25 2006
Added on Oct 7 2002
4 comments
29,196 views