AnsweredAssumed Answered

Java 2 Security Error

Question asked by Geethu_John on Aug 20, 2014
Latest reply on Aug 20, 2014 by Vaibhav Vir Singh

Hi,

 

I am working on implementing java agent on AIX platform . Its a Websphere environment. Java 2 security is enabled. I created custom services and edited server.policy to add permissions to  Java 2 Security Policy.


The agent installation directory is /apm/wily/wily whereas WAS installation directory is was.install.root = /usr/IBM/WebSphere85/AppServer.

I edited server.policy accordingly. But i hit permission error.


8/20/14 10:57:24:291 SGT] 00000001 SecurityManag W  SECJ0314W: Current Java 2 Security policy reported a potential violation of Java 2 Security Permission. Refer to the InfoCenter for further information.

Permission:

      AdminPermission : Access denied (com.ibm.websphere.security.WebSphereRuntimePermission AdminPermission)

Code:

    com.wily.introscope.agent.webappsupport.websphere.AdminServiceBean  in  {file:/apm/wily/wily/common/WebAppSupport.jar}

Stack Trace:

java.security.AccessControlException: Access denied (com.ibm.websphere.security.WebSphereRuntimePermission AdminPermission)

  at java.security.AccessController.throwACE(AccessController.java:100)

  at java.security.AccessController.checkPermission(AccessController.java:174)

  at java.lang.SecurityManager.checkPermission(SecurityManager.java:544)

  at com.ibm.ws.security.core.SecurityManager.checkPermission(SecurityManager.java:208)

  at com.ibm.websphere.management.AdminServiceFactory.getAdminService(AdminServiceFactory.java:76)

  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)

  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)

  at java.lang.reflect.Method.invoke(Method.java:611)

  at com.wily.introscope.agent.webappsupport.websphere.AdminServiceBean.getAdminService(AdminServiceBean.java:31)

  at com.wily.introscope.agent.webappsupport.websphere.AdminServiceBean.getAdminServiceProcessName(AdminServiceBean.java:44)

  at com.wily.powerpack.websphere.agent.PPCustomService.registerNotificationListener(PPCustomService.java:124).........................................

Code Base Location:

[8/20/14 10:57:24:304 SGT] 00000001 SystemOut    O -----> ****!

[8/20/14 10:57:24:322 SGT] 00000001 SecurityManag W  SECJ0314W: Current Java 2 Security policy reported a potential violation of Java 2 Security Permission. Refer to the InfoCenter for further information.

Permission:

      AdminPermission : Access denied (com.ibm.websphere.security.WebSphereRuntimePermission AdminPermission)

Code:

    com.wily.introscope.agent.webappsupport.websphere.AdminServiceBean  in  {file:/apm/wily/wily/common/WebAppSupport.jar}

 

 

I am also attaching server.policy file. Has anyone encountered this?

 

Geethu

Attachments

Outcomes