• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

connect oracle from swings

 
kalyan chowdary
Greenhorn
Posts: 24
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 9214
9
Linux Mac OS X Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Sloan Bowman
Ranch Hand
Posts: 107
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic