2016-12-29 6 views
1

다음 오류가 발생합니다.Weblogic에서 JMX를 사용하여 WLST를 통해 속성을 설정하는 방법

java.lang.RuntimeException가이 : java.lang.RuntimeException가 : 요청 속성이 JMX를 통해 노출되지 않은 : 나는이 문제를 해결할 수있는 방법

을는, setEnabled.

다음은 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 

답변

1

우리는이를 사용하여 인스턴스 변수를 설정 변경하기 전에 편집 모드로 이동 할 수있는 것은 WLST 프롬프트 !>edit() & startEdit()

우리가 편집 모드에 의미했다 명령.

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