NoAccessRuntimeException: Access not allowed for subject: principals=[], on Resource
Weblogic 14
I'm trying to connect to MBean via rmi using code :
Hashtable properties = new Hashtable();
properties.put(Context.PROVIDER_URL, url);
properties.put(Context.SECURITY_PRINCIPAL, "xxx");
properties.put(Context.SECURITY_CREDENTIALS, "xxx");
InitialContext ic = new InitialContext(properties);
MBeanServer mbs = (MBeanServer) ic.lookup("java:comp/env/jmx/runtime");
logger.debug("Is deployer registered ? "+mbs.isRegistered(objectName));
MBean is registered correctly but I got
NoAccessRuntimeException: Access not allowed for subject: principals=[], on Resource XXXBean Operation: invoke , Target: XXX
I followed this
but did not solve problem
G