账号密码登录
微信安全登录
微信扫描二维码登录

登录后绑定QQ、微信即可实现信息互通

手机验证码登录
找回密码返回
邮箱找回 手机找回
注册账号返回
其他登录方式
分享
  • 收藏
    X
    访问Weblogic管理实体遇到weblogic.management.NoAccessRuntimeException。
    45
    0

    问题描述

    访问weblogic.management.mbeanservers.domainruntime失败:

    weblogic.management.NoAccessRuntimeException: [Management:141102]Subject: principals=[] does not have access to perform Admin actions.

    问题出现的环境背景及自己尝试过哪些方法

    参考How it’s done: Password change functionality in OBIEE

    相关代码

    // 请把代码文本粘贴到下方(请勿用图片代替代码)
    初始化连接方法如下:

        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();
        }

    用了两种方式连接都是同样的报错。

    期待

    到底是Weblogic配置问题,还是我方法的问题?

    0
    打赏
    收藏
    点击回答
        全部回答
    • 0
    更多回答
    扫一扫访问手机版
    • 回到顶部
    • 回到顶部