problem description
failed to access weblogic.management.mbeanservers.domainruntime:
weblogic.management.NoAccessRuntimeException: [Management:141102] Subject: principals= [] does not have access to perform Admin actions.
the environmental background of the problems and what methods you have tried
refer to How it"s done: Password change functionality in OBIEE
related codes
/ / Please paste the code text below (do not replace the code with pictures)
initialize the connection as follows:
public static void InlCctn(String Adr, String AdrUsr, String AdrPswd) throws IOException, MalformedURLException {
JMXServiceURL SvcUrl =
new JMXServiceURL("service:jmx:iiop://" + Adr + "/jndi/weblogic.management.mbeanservers.domainruntime");
Hashtable h = new Hashtable();
h.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");
h.put(Context.SECURITY_PRINCIPAL, AdrUsr);
h.put(Context.SECURITY_CREDENTIALS, AdrPswd);
// String[] credentials = new String[] { AdrUsr, AdrPswd };
// h.put("jmx.remote.credentials", credentials);
cctor = JMXConnectorFactory.connect(SvcUrl, h);
mbsc = cctor.getMBeanServerConnection();
}
uses both ways to connect with the same error.
look forward to
is it the problem of Weblogic configuration or my method?