users@glassfish.java.net

ava.security.AccessControlException: access denied (javax.management.MBeanP

From: <glassfish_at_javadesktop.org>
Date: Fri, 19 Mar 2010 07:43:41 PDT

Hello,

I get following error very often.

Have I to dadd this lines to server.policy? (according to http://markmail.org/message/eq55qgkqfde6tnft?q=%22java.security.AccessControlException++access+denied%22+%22javax.management.MBeanPermission+%22&page=1&refer=fefbzhklvfxcbtv7#query:%22java.security.AccessControlException%20%20access%20denied%22%20%22javax.management.MBeanPermission%20%22+page:1+mid:xx25bdqj2ie2m3w2+state:results )
 // JBI get all permissions by default grant codeBase [1]"file:${com.sun.aas.installRoot}/jbi/-" { permission java.security.AllPermission; };

// JBI instances get all permissions by default grant codeBase [2]"file:${com.sun.aas.instanceRoot}/jbi/-" { permission java.security.AllPermission; };


[#|2010-03-17T09:31:12.081+0000|SEVERE|sun-appserver2.1|com.sun.org.apache.commons.modeler.Registry|_ThreadID=40;_ThreadName=httpSSLWorkerThread-8080-3;_RequestID=b859d7a0-e619-4672-84db-87c4f6862a98;|Error registering com.sun.appserv:type=RequestProcessor,worker=http8080,name=HttpRequest22
java.security.AccessControlException: access denied (javax.management.MBeanPermission com.sun.org.apache.commons.modeler.BaseModelMBean#-[com.sun.appserv:name=HttpRequest22,type=RequestProcessor,worker=http8080] registerMBean)
    at java.security.AccessControlContext.checkPermission(AccessControlContext.java:323)
    at java.security.AccessController.checkPermission(AccessController.java:546)
    at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
    at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.checkMBeanPermission(DefaultMBeanServerInterceptor.java:1806)
    at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(DefaultMBeanServerInterceptor.java:309)
    at com.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(JmxMBeanServer.java:482)
    at com.sun.enterprise.interceptor.DynamicInterceptor.registerMBean(DynamicInterceptor.java:259)
    at com.sun.org.apache.commons.modeler.Registry.registerComponent(Registry.java:872)
    at com.sun.enterprise.web.connector.grizzly.GrizzlyHttpProtocol$ModelerManagement.registerComponent(GrizzlyHttpProtocol.java:964)
    at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.registerMonitoring(DefaultProcessorTask.java:1703)
    at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.configPreProcess(DefaultProcessorTask.java:547)
    at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.preProcess(DefaultProcessorTask.java:530)
    at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.preProcess(DefaultProcessorTask.java:506)
    at com.sun.enterprise.web.connector.grizzly.async.DefaultAsyncExecutor.preExecute(DefaultAsyncExecutor.java:145)
    at com.sun.enterprise.web.connector.grizzly.async.AsyncProcessorTask.doTask(AsyncProcessorTask.java:88)
    at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:264)
    at com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)
|#]
[Message sent by forum member 'hegalor']

http://forums.java.net/jive/thread.jspa?messageID=392759