This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal


Sep 23, 2014, 4:49 PM
9 Posts

Oracle Driver (ojdbc5.jar) security exception when run on server

  • Category: Application Development
  • Platform: Windows
  • Release: 9.0
  • Role: Developer
  • Tags:
  • Replies: 1

Hello. If anybody has a minute, I am converting a server based agent which performs SQL against legacy SQL Server (using jtds.jar) to interfacing with Oracle (thin, ojdbc5.jar).

 

I've done all the recoding locally, added ojdbc5.jar to the agent and the local jvm/lib/ext and it works ok. Now when I try to run this on the server, adding ojdbc5.jar to jvm/lib/ext on the server, I get...

 

 Error while registering Oracle JDBC Diagnosability MBean...java.security.AccessControlException: access Denied (javax.management.MBeanServerPermissioncreateMBeanServer)

 

The legacy "parallel" agent with the SQL Server driver (jtds.jar) is running fine and has been for years. The legacy and new agent have security level set to 2 and signer has permissions in the Server document. The policy file looks good with All Permissions and pointing to jvm/lib/ext. Would anybody know what I am missing here and why the server is ok with jtds.jar and not ojdbc5.jar. As I said, I did all development on my local Notes and it was running well there. Thank you so much for reading.

Sep 25, 2014, 4:16 PM
29 Posts
Server security
The security is a lot tighter on the server than the Notes client. A java.security.AccessControlException: access Denied  exception is definitely due to security. A quick test would be to grant all permissions on the Domino server, restart and see if your agent runs.  

grant{
      permission java.security.AllPermission;
}

If that works, then you can adjust to open allow the needed classes access. From the exception, looks like javax.management.MBeanServerPermissioncreateMBeanServer needs the permission. I found the following example:

http://docs.oracle.com/cd/E19575-01/820-3320/ghnpe/index.html

This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal