Well,
it means you should read the application documentation more closely :)
I think that your application is trying to register an MBean and
(thankfully) it can't do that out of the box. You, as an administrator
should grant that permission. The permission that you should add is
MBeanPermission. Here is what I suggest:
- start policytool.
- open the server.policy for the default domain (assuming that's the
target) as in <glassfish-image>/domains/domain1/config
- identify the codebase. For starters *only*, I would suggest
<install-dir>/domains/domain1/applications, if you have deployed the app
using asadmin deploy command.
- edit the file for the above codebase to have the said permission i.e.
javax.management.MBeanPermission for registration.
A relevant piece in server.policy looks like:
grant {
permission javax.management.MBeanTrustPermission "register" ;
};
Kedar
vince kraemer wrote:
> Well,
>
> I have gotten the "easy" permission issues resolved..
>
> Now, I am getting this one:
>
> [#|2006-02-03T14:47:02.296-0800|SEVERE|sun-appserver-pe9.0|javax.enterprise.system.container.web|_ThreadID=10;_ThreadName=main;_RequestID=33683df0-dbcc-49d2-b231-1f168a9329c4;|WebModule[/flex-admin]StandardWrapper.Throwable
>
> java.security.AccessControlException: access denied
> (javax.management.MBeanPermission
> flex.management.runtime.messaging.MessageBrokerControl#-[flex.runtime.Flex
> Admin Web Application:id=MessageBroker1,type=MessageBroker]
> registerMBean)
> at
> java.security.AccessControlContext.checkPermission(AccessControlContext.java:264)
>
> at
> java.security.AccessController.checkPermission(AccessController.java:427)
> at
> java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
> at
> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.checkMBeanPermission(DefaultMBeanServerInterceptor.java:1707)
>
> at
> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(DefaultMBeanServerInterceptor.java:334)
>
> at
> com.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(JmxMBeanServer.java:497)
>
> at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>
> at java.lang.reflect.Method.invoke(Method.java:585)
> at
> com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java:77)
> at $Proxy1.registerMBean(Unknown Source)
> at
> com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.registerMBean(SunoneInterceptor.java:268)
>
> at flex.management.BaseControl.register(BaseControl.java:139)
> at flex.messaging.MessageBroker.<init>(MessageBroker.java:110)
> at flex.messaging.MessageBroker.<init>(MessageBroker.java:91)
> at
> flex.messaging.MessageBrokerServlet.init(MessageBrokerServlet.java:56)
> .
> .
> .
>
>
> Any good ideas here?
>
> vbk
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>