This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes Oracle/OAS and the fly likes Setting permissions to JCA resource adapter Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Products » Oracle/OAS
Bookmark "Setting permissions to JCA resource adapter" Watch "Setting permissions to JCA resource adapter" New topic

Setting permissions to JCA resource adapter

Luis Alfredo Perez

Joined: Mar 04, 2002
Posts: 7
I'm deploying a .rar file on Oracle 9iAS release 2 (9.0.3).
The deploy succeds but when I try to restart the OC4J instance,
the startup fails and the instance reports security permission
I opened the oc4j-connectors.xml file and I added some
security-permission entries to grant the needed permissions.
The changes are applied without errors but when I try to start
the instance again, I get the same errors. Just as if they
weren't introduced.
Here I show you the connectors configuration:
<connector name="dance-connector" path="dance-connector.rar">
<security-permission enabled="true">
<security-permission-spec>grant {
permission java.lang.RuntimePermission "getClassLoader", *'
Something I don't understand and I could'nt find something that
would explain it to me is why should I set the permission with
those characters at the end: "*'", instead of the standard
semicolon one...
I even tried to grant the to the
connector but I get a NullPointerException instead. I guess that
the file parser must be looking for the "target" element of the
permission entry...
Does anyone of you have initialize custom security permissions to
a resource adapter within Oracle 9iAS release 2 (9.0.3)?
Have a nice day!
Error initializing server: Error creating a Connection Factory from '...' could not be created due to reason: javax.resource.spi.EISSystemException: initTransientMembers() failed: access denied (java.lang.RuntimePermission getClassLoader) access denied ( D:\Oracle\OC4J\j2ee\home\persistence\transaction.state delete)
at java.lang.SecurityManager.checkDelete(
Exception in thread "main" access denied (java.util.PropertyPermission vmId read)
at java.lang.System.getProperty(
at com.evermind.server.OC4JServer.main(

bla bla
I agree. Here's the link:
subject: Setting permissions to JCA resource adapter
It's not a secret anymore!