WebLogic 9.2远程NodeManager配置

来源:互联网 发布:firefox ubuntu 编辑:程序博客网 时间:2024/05/17 22:44
我参加过WebLogic Server 8.1管理的培训,但是ArcGIS Server 9.2需要新的J2EE 1.4也就是WebLogic 9.2才行,另外访问量很大,为了容错,也为了试验Cluster,所以我需要配置NodeManager来管理多个Machine。但是遇到很大的困难,错误消息非常怪异:
<I/O error while reading domain directory: java.io.FileNotFoundException: Domain directory 'C:\bea\weblogic\common\nodemanager' invalid (domain salt file not found)>
java.io.FileNotFoundException: Domain directory 'C:\bea\weblogic\common\nodemanager' invalid (domain salt file not found)
FileNotFoundException,怎么会找不到文件呢?我记得WLS 8.1下配置是非常简单的,看来9.2开始发生了很大变化。在Google上找了找,还真有不少人遇到和我一样的问题,最后找到一篇真正有价值的文章:
problems in manage remote machine
简单地说需要先把NodeManager注册到AdminServer上,然后AdminServer才能管理远程的NodeManager。具体步骤如下:
-Go to weblogic92\server\bin
-Run the Command:
D:\bea92\weblogic92\server\bin>setwlsenv
-Start WLST at the remote Machine to run nmEnroll command
D:\bea92\weblogic92\server\bin>java weblogic.WLST
Initializing WebLogic Scripting Tool (WLST) ...
Welcome to WebLogic Server Administration Scripting Shell
Type help() for help on available commands

-wls:/offline> connect()
Note:Give the user name and password for the Admin server which located on Machine A:
Please enter your username [weblogic] :weblogic
Please enter your password [weblogic] :
Please enter your server URL [t3://localhost:7001] :t3://10.128.23.111:7001
Connecting to t3://10.128.23.111:7001 with userid weblogic ...
Successfully connected to Admin Server 'AdminServer' that belongs to domain 'Nodemanager_domain'.
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.

-Run The nmEnroll Command:
wls:/Nodemanager_domain/serverConfig> nmEnroll(r'C:\bea9.2\weblogic92\common\nodemanager')
Enrolling this machine with the domain directory at C:\bea9.2\weblogic92\common\
nodemanager ...
Successfully enrolled this machine with the domain directory at C:\bea9.2\weblogic92\common\nodemanager.
wls:/Nodemanager_domain/serverConfig>
-Done. Now start the Nodemanager .

Steps that needs to be followed at Machine A
-Start the weblogic server
-Open the Weblogic Console http://localhost:7001/console
-Create a Machine in the console
(Environments\Mahine)
-Click on Node manager
-Listen Addresss : Give the IP address of remote machine
-Save and click on Monitoring.
-It will show status :Reachable.

-Create a managed server, give the Listen address of the Remote Machine.
-Save and restart the Admin server.
-Click on Managed server once the Admin server is up.
-Click on Control-> Start the managed server.

简单地说是如下如下两步,用weblogic.WLST的connect()命令连接到AdminServer,然后用nmEnroll(r'...\nodemanager')将NodeManager注册到AdminServer,将在NodeManager目录下建立两个目录,这样就有了连接AdminServer的配置信息。

原创粉丝点击