如何在Weblogic中启用JMX通过WLST设置任何属性

2024-06-02 04:25:33 发布

您现在位置:Python中文网/ 问答频道 /正文

我有以下错误。在

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

如何解决这个问题。在

这是我在WLST(weblogicscriptingtool)中尝试过的一组命令。在

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

Tags: langjavamanagementmethodatsuninvokejmx
1条回答
网友
1楼 · 发布于 2024-06-02 04:25:33

在改变设置任何实例变量之前,我们必须使用以下命令edit()&;startEdit()

WLST prompt!>表示我们处于编辑模式。在

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 !>

相关问题 更多 >