| Author |
connect oracle from swings
|
kalyan chowdary
Greenhorn
Joined: Jun 22, 2006
Posts: 24
|
|
Hi, I am using Jboss server, I created webapplication called Mgmt. I wrote build.xml to put the classes in Mgmt folder not in the WEB-INF/classes because i am running applet through <jsp lgin> from jsp. I got an exception like this Caused by: java.security.AccessControlException: access denied (java.util.PropertyPermission oracle.jdbc.FastConnectionFailover read) at java.security.AccessControlContext.checkPermission(Unknown Source) at java.security.AccessController.checkPermission(Unknown Source) at java.lang.SecurityManager.checkPermission(Unknown Source) at java.lang.SecurityManager.checkPropertyAccess(Unknown Source) at java.lang.System.getProperty(Unknown Source) at oracle.jdbc.driver.OracleDriver$1.run(OracleDriver.java:1261) at java.security.AccessController.doPrivileged(Native Method) at oracle.jdbc.driver.OracleDriver.getSystemProperty(OracleDriver.java:1257) at oracle.jdbc.driver.OracleDriver.getSystemPropertyFastConnectionFailover(OracleDriver.java:1225) at oracle.jdbc.pool.OracleDataSource.<clinit>(OracleDataSource.java:98) ... 4 more Please help me
|
 |
Joe Ess
Bartender
Joined: Oct 29, 2001
Posts: 8265
|
|
|
You are trying to contact a database from an applet? Applets run with security restrictions which include only being able to contact the server they were downloaded from.
|
"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
|
 |
Sloan Bowman
Ranch Hand
Joined: Jan 21, 2003
Posts: 107
|
|
|
The only way to do this would be to 1. sign the applet or 2. use Servlets to communicate with the DB and return the data encapsulated in an object that way.
|
 |
 |
|
|
subject: connect oracle from swings
|
|
|