如何在 Weblogic 中启用 JMX 以通过 WLST 设置任何属性 [英] How to enable JMX in Weblogic to set any attribute through WLST

查看:33
本文介绍了如何在 Weblogic 中启用 JMX 以通过 WLST 设置任何属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我收到以下错误.

java.lang.RuntimeException: java.lang.RuntimeException: 请求的属性未通过 JMX 公开:setEnabled

java.lang.RuntimeException: java.lang.RuntimeException: The requested attribute is not exposed through JMX: setEnabled

我该如何解决这个问题.

How I can solve this issue.

这是我在 WLST(Weblogic 脚本工具)中尝试过的一组命令.

Here is the set of command which I had tried in WLST (Weblogic Scripting Tool).

wls:/MiCommApp/serverConfig> cd('/Servers/'  'AdminServer' '/SSL/' 'AdminServer' )
wls:/MiCommApp/serverConfig/Servers/AdminServer/SSL/AdminServer> cmo.setEnabled(true)
Traceback (innermost last):
  File "<console>", line 1, in ?
        at weblogic.management.jmx.ExceptionMapper.matchJMXException(ExceptionMapper.java:74)
        at weblogic.management.jmx.MBeanServerInvocationHandler.doInvoke(MBeanServerInvocationHandler.java:508)
        at weblogic.management.jmx.MBeanServerInvocationHandler.invoke(MBeanServerInvocationHandler.java:382)
        at com.sun.proxy.$Proxy16.setEnabled(Unknown Source)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)

java.lang.RuntimeException: java.lang.RuntimeException: The requested attribute
is not exposed through JMX: setEnabled

推荐答案

在使用此命令更改设置任何实例变量之前,我们已经进入编辑模式 edit() &startEdit()

We have do go edit mode before altering setting any instance variables by using this commands edit() & startEdit()

WLST 提示 !> 表示我们处于编辑模式.

WLST prompt !> signified we are in edit mode.

wls:/myBeaDir/serverConfig/Servers/MiCommApp/SSL/MiCommApp> edit()
Location changed to edit tree. This is a writable tree with
DomainMBean as the root. To make changes you will need to start
an edit session via startEdit().

For more help, use help('edit')

wls:/myBeaDir/edit> startEdit()
Starting an edit session ...
Started edit session, please be sure to save and activate your
changes once you are done.
wls:/myBeaDir/edit !> cd('/Servers/'  'MiCommApp' '/SSL/' 'MiCommApp' )
wls:/myBeaDir/edit/Servers/MiCommApp/SSL/MiCommApp !>

这篇关于如何在 Weblogic 中启用 JMX 以通过 WLST 设置任何属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆