Oracle Weblogic Server (MOSC)

MOSC Banner

NoAccessRuntimeException: Access not allowed for subject: principals=[], on Resource

edited May 2, 2023 8:20AM in Oracle Weblogic Server (MOSC) 2 commentsAnswered

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

'https://support.oracle.com/epmos/faces/DocumentDisplay?_afrLoop=187079942896678&id=2813005.1&_adf.ctrl-state=62kfnvx78_57'

but did not solve problem

G

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center