Win a copy of Head First Agile this week in the Agile forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Setting permissions to JCA resource adapter  RSS feed

Luis Alfredo Perez
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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(
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!