cancel
Showing results for 
Search instead for 
Did you mean: 

JmxSecurityException while initiating BroadcastingStandardMBeanWrapper

Former Member
0 Kudos

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

(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 !!

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Probably a silly question. Did you set values for SECURITY_PRINCIPAL and SECURITY_CREDENTIALS in the servlet while connecting to JMX (ofcourse from the same thread).

Thanks,

Rajit

Former Member
0 Kudos

Yes, tried it also:

p.setProperty(InitialContext.SECURITY_PRINCIPAL, "JMX_USER");

p.setProperty(InitialContext.SECURITY_CREDENTIALS, "JMX_USER");

But it did not help. It still claims I'm connecting as "Guest".

Should I use port 50000 to start the servlet ?

Former Member
0 Kudos

Problem was solved when "run-as" value was specified for the test servlet.

See: "Registering the MBean" at NWS help.