on 12-11-2006 11:45 AM
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 !!
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.