2016-12-30 27 views
0

雖然我執行了連接到託管實例的命令edit(),但最終導致出現以下錯誤。如何&爲了解決這個問題,我必須做些什麼。受管實例的WLST編輯模式問題

wls:/offline> connect('Admin60000','sun1rise','t3://my-comm-app-serv:60001') 
Connecting to t3://my-comm-app-serv:60001 with userid Admin60000 ... 
Successfully connected to managed Server "MiCommApp" that belongs to domain "MiBeaDir". 

Warning: An insecure protocol was used to connect to the 
server. To ensure on-the-wire security, the SSL port or 
Admin port should be used instead. 

wls:/MiBeaDir/serverConfig>cd('/Servers/MiCommApp/SSL/MiCommApp') 
wls:/MiBeaDir/serverConfig/Servers/MiCommApp/SSL/MiCommApp> edit() 
Edit MBeanServer is not enabled on a Managed Server. 

60001是託管實例端口,它是在管理服務器中運行的託管實例之一。管理服務器在60000端口運行

+0

能否請您粘貼完整的劇本」。 py「和」.sh「或者其他任何你正在做的事情,很難從你提供的內容中指出問題。 – hagrawal

+0

如果我通過管理服務器登錄並執行'cd('/ Servers /''MiCommApp''/ SSL /''MiCommApp')'並執行'edit()'和'startEdit()'。如果登錄了任何託管實例,我正面臨此問題。 –

+0

好的。請閱讀我的第一條評論。 – hagrawal

回答

1

這是因爲對於託管服務器,WLST功能僅限於瀏覽配置Bean層次結構。閱讀以下摘錄自WL official documentation

要編輯配置Bean,必須連接到 管理服務器,並且必須導航到編輯樹和 啓動編輯會話,分別edit和startEdit中, 描述。

如果連接到受管服務器,WLST 功能僅限於瀏覽配置Bean層次結構。 儘管您無法使用WLST更改託管 服務器上的MBean的值,但可以使用Management API來執行此操作。 BEA 系統建議您只更改管理服務器上的配置 MBean的值。更改MBeans的值 受管服務器可能會導致域配置不一致。

所以,基本上你需要與你的管理服務器(你正在使用您的管理服務器連接,每個日誌,您所提供的電流 - Successfully connected to managed Server "MiCommApp" that belongs to domain "MiBeaDir".)進行連接,然後使用edit()startEdit() WLST命令文檔編輯的配置。


BTW,我連接到我的服務器使用以下命令:

  • 如果HTTPS - connect(url='t3s://abc.xyz.com:37001',adminServerName='AdminServer')
  • 如果HTTP - connect(url='t3://abc.xyz.com:37001',adminServerName='AdminServer')