托管实例的 WLST 编辑模式问题
WLST edit mode issue for managed instance
当我执行命令 edit()
连接到托管实例时,我最终遇到了以下错误。为了解决这个问题,我必须如何做以及必须做什么。
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 端口
这是因为对于托管服务器,WLST 功能仅限于浏览配置 bean 层次结构。阅读以下来自 WL official documentation.
的摘录
To edit configuration beans, you must be connected to an
Administration Server, and you must navigate to the edit tree and
start an edit session, as described in edit and startEdit,
respectively.
If you connect to a Managed Server, WLST
functionality is limited to browsing the configuration bean hierarchy.
While you cannot use WLST to change the values of MBeans on Managed
Servers, it is possible to use the Management APIs to do so. BEA
Systems recommends that you change only the values of configuration
MBeans on the Administration Server. Changing the values of MBeans on
Managed Servers can lead to an inconsistent domain configuration.
所以,基本上您需要连接您的管理服务器(当前您正在连接您的托管服务器,根据您提供的日志 - Successfully connected to managed Server "MiCommApp" that belongs to domain "MiBeaDir".
),然后使用 [=11= 发布编辑配置] 和 startEdit()
WLST 命令。
顺便说一句,我使用以下命令连接到我的服务器:
- 如果 HTTPS -
connect(url='t3s://abc.xyz.com:37001',adminServerName='AdminServer')
- 如果 HTTP -
connect(url='t3://abc.xyz.com:37001',adminServerName='AdminServer')
当我执行命令 edit()
连接到托管实例时,我最终遇到了以下错误。为了解决这个问题,我必须如何做以及必须做什么。
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 端口
这是因为对于托管服务器,WLST 功能仅限于浏览配置 bean 层次结构。阅读以下来自 WL official documentation.
的摘录To edit configuration beans, you must be connected to an Administration Server, and you must navigate to the edit tree and start an edit session, as described in edit and startEdit, respectively.
If you connect to a Managed Server, WLST functionality is limited to browsing the configuration bean hierarchy. While you cannot use WLST to change the values of MBeans on Managed Servers, it is possible to use the Management APIs to do so. BEA Systems recommends that you change only the values of configuration MBeans on the Administration Server. Changing the values of MBeans on Managed Servers can lead to an inconsistent domain configuration.
所以,基本上您需要连接您的管理服务器(当前您正在连接您的托管服务器,根据您提供的日志 - Successfully connected to managed Server "MiCommApp" that belongs to domain "MiBeaDir".
),然后使用 [=11= 发布编辑配置] 和 startEdit()
WLST 命令。
顺便说一句,我使用以下命令连接到我的服务器:
- 如果 HTTPS -
connect(url='t3s://abc.xyz.com:37001',adminServerName='AdminServer')
- 如果 HTTP -
connect(url='t3://abc.xyz.com:37001',adminServerName='AdminServer')