It's not a secret anymore!
The moose likes Swing / AWT / SWT and the fly likes connect oracle from swings Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "connect oracle from swings" Watch "connect oracle from swings" New topic

connect oracle from swings

kalyan chowdary

Joined: Jun 22, 2006
Posts: 24
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: access denied (java.util.PropertyPermission oracle.jdbc.FastConnectionFailover read)
at Source)
at 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$
at Method)
at oracle.jdbc.driver.OracleDriver.getSystemProperty(
at oracle.jdbc.driver.OracleDriver.getSystemPropertyFastConnectionFailover(
at oracle.jdbc.pool.OracleDataSource.<clinit>(
... 4 more
Please help me
Joe Ess

Joined: Oct 29, 2001
Posts: 9189

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.

[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.
I agree. Here's the link:
subject: connect oracle from swings
It's not a secret anymore!