Topic
  • No replies
SystemAdmin
SystemAdmin
37422 Posts

Pinned topic need help getting rid of MBeanServerPermission findMBeanServer exception

‏2008-11-04T21:52:42Z |
Appologies for cross-posting. Originally placed in the wrong forum.

We are in a situation on websphere 6.1 where even though we have the following in our was.policy file, we're still getting MBeanServerPermissions errors for findMBeanServer. Has anyone encountered this problem before?

  • platform ----
WebSphere Platform 6.1 http://ND 6.1.0.17 cf170821.07
Host Operating System is Linux, version 2.6.18-53.el5xen
Java version = J2RE 1.5.0 IBM J9 2.3 Linux amd64-64 j9vmxa6423ifx-20080811 (JIT enabled)
J9VM - 20080809_21892_LHdSMr
JIT - 20080620_1845_r8
GC - 200806_19, Java Compiler = j9jit23, Java VM name = IBM J9 VM

  • policies ----
permission javax.management.MBeanServerPermission "findMBeanServer";
permission com.ibm.websphere.security.WebSphereRuntimePermission "AdminPermission";
permission com.tivoli.jmx.MBeanServerPermission "MBeanServer.*" ;
permission com.tivoli.jmx.MBeanServerPermission "MBeanServerFactory.*" ;

  • exception ----
11/4/08 16:26:09:058 EST 00000042 SecurityManag W SECJ0314W: Current Java 2 Security policy reported a potential violation of Java 2 Security Permission. Please refer to InfoCenter for further information.

Permission:

findMBeanServer : Access denied javax.management.MBeanServerPermission: name=findMBeanServer actions=
Code:

com.sas.services.util.JMXAgent in {file:/local/install/WebSphere/AppServer/profiles/... ...}

Stack Trace:

java.security.AccessControlException: Access denied javax.management.MBeanServerPermission: name=findMBeanServer actions=
at java.security.AccessController.checkPermission(AccessController.java:108)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:558)
at com.ibm.ws.security.core.SecurityManager.checkPermission(SecurityManager.java:212)
at javax.management.MBeanServerFactory.checkPermission(MBeanServerFactory.java:287)
at javax.management.MBeanServerFactory.findMBeanServer(MBeanServerFactory.java:184)
...
...
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1368)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1334)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged(AccessController.java:219)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:221)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:269)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104)
...
...
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:221)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:729)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:381)
at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)
at com.ibm.ws.wswebcontainer.webapp.WebApp.notifyServletContextCreated(WebApp.java:645)
at com.ibm.ws.webcontainer.webapp.WebApp.commonInitializationFinish(WebApp.java:319)
at com.ibm.ws.wswebcontainer.webapp.WebApp.initialize(WebApp.java:290)