Skip to Content
0
Former Member
Dec 11, 2006 at 11:45 AM

JmxSecurityException while initiating BroadcastingStandardMBeanWrapper

30 Views

Hi,

I'm trying to register an MBean so it will be manageable via Remote Administrator. A test servlet is started and call the following code:

p.setProperty("admin.path", "/Cluster/QASMBean");

p.setProperty("admin.displayName", "QASMBean");

BroadcastingStandardMBeanWrapper wrapper = null;

wrapper = new BroadcastingStandardMBeanWrapper(((QASMBean)mBean.getImplementation()), EnrichmentAdapterMBean.class, p);

mbs.registerMBean(wrapper, name);

The result is the following exception:

com.sap.engine.services.jmx.exception.JmxSecurityException: Caller Guest not authorized, only role administrators is allowed to access JMX

So, I followed the steps described at the thread

authentication-and-authorization-for-a-custom-conn

(see web.xml and web-j2ee-engine.xml)

But, still the same error, and the same user"Guest" at the error message.

Can you tell me where is the place to set the user which is registered during the servlet loading ?

Thanks !!