users@glassfish.java.net

Re: Authentification BASIC

From: <glassfish_at_javadesktop.org>
Date: Thu, 04 Mar 2010 02:29:03 PST

If I activate the security manager and restart the server, I obtain this error in the server.log :

[#|2010-03-04T11:24:45.472+0100|SEVERE|glassfishv3.0|javax.enterprise.system.std.com.sun.enterprise.v3.services.impl|_ThreadID=11;_ThreadName=Thread-1;|**** MessageBrokerServlet failed to initialize due to runtime exception: Exception: java.security.AccessControlException: access denied (javax.management.MBeanServerPermission createMBeanServer)
        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 java.lang.management.ManagementFactory.getPlatformMBeanServer(ManagementFactory.java:500)
        at flex.management.PlatformMBeanServerLocator.getMBeanServer(PlatformMBeanServerLocator.java:38)
        at flex.management.BaseControl.register(BaseControl.java:186)
        at flex.management.runtime.AdminConsoleDisplayRegistrar.<init>(AdminConsoleDisplayRegistrar.java:40)
        at flex.management.runtime.messaging.MessageBrokerControl.<init>(MessageBrokerControl.java:85)
        at flex.messaging.MessageBroker.<init>(MessageBroker.java:269)
        at flex.messaging.config.MessagingConfiguration.createBroker(MessagingConfiguration.java:105)
        at flex.messaging.MessageBrokerServlet.init(MessageBrokerServlet.java:112)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:319)
        at java.security.AccessController.doPrivileged(Native Method)
[Message sent by forum member 'batistutagabrielfio9' (batistutagabrielfio9_at_gmail.com)]

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