aspose file tools*
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "connect oracle from swings" Watch "connect oracle from swings" New topic
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: 8705
    
    6

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: connect oracle from swings
 
Similar Threads
custom tag not working
applet security
class not found error
Access Control Exception
java.sql.SQLException: Protocol violation