• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

connect oracle from swings

 
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 107
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic