WebLogic的Admin Server能启动,但Managed Server不能启动

环境:
192.168.10.13    机器IP
237.0.0.1:7777   集群组播IP,端口号7777

AIX 5.3环境中建了WebLogic的集群,目前只在一台机器上做测试,本机既是Admin Server,也作为Managed Server。故障现象为:Admin Server通过./startWebLogic.sh可以启动,通过http://192.168.10.13:7001/console也可以登陆。但运行Managed Server时就出错,错误信息如下:

<Emergency> <WebLogicServer> <BEA-000342> <Unable to initialize
the server: weblogic.server.ServerLifecycleException:
Failed to listen on multicast addressCan’t assign requested address>
*********************************************************
The WebLogic Server did not start up properly.
Exception raised: ‘java.net.SocketException: Can’t assign
requested address’
Reason: weblogic.server.ServerLifecycleException: Failed
to listen on multicast addressCan’t assign requested address

从提示中看出是集群的237.0.0.1的组播地址上出现了问题。使用如下命令进行组播的测试:

#cd /weblogic安装目录/server/lib
#java -cp weblogic.jar utils.MulticastTest -N server1 -A 237.0.0.1 -P 7777

上面的测试中,237.0.0.1为你安装weblogic时设置的集群组播地址以及端口号,运行后提示如下错误:

***** WARNING ***** WARNING ***** WARNING *****
Do NOT use the same multicast address as a running WLS cluster.

Starting test. Hit any key to abort

*****Problem*******
java.net.SocketException: The socket name is not available on this system.
at java.net.PlainDatagramSocketImpl.join(Native Method)
at java.net.PlainDatagramSocketImpl.join(PlainDatagramSocketImpl.java:166)
at java.net.MulticastSocket.joinGroup(MulticastSocket.java(Compiled Code))
at utils.MulticastTest.<init>(MulticastTest.java(Compiled Code))
at utils.MulticastTest.main(MulticastTest.java:233)

组播测试有问题,想到可能和组播路由有关,马上查看路由表:

#netstat -rn

weblogic2225

没发现有237.0.0.1的路由,马上添加组播路由:

#route add 237.0.0.0 192.168.10.13

运行如下命令再次启动Manager Server,成功启动。

#./startManagedWebLogic.sh server1 192.168.10.13:7001

如下图:

weblogic2223

最后运行smit route直接添加一条静态路由,这样机器下次重启时这条路由继续生效,如下图。

weblogic2221

3 Comments

  1. 水手说道:

    unix一直没去熟悉过.希望今年过扣能对FreeBSD通常的配置会吧.
    能看得懂,但我肯定不会做.WebLogic在aix下用起来命令看似跟linux很像.
    unix linux您觉得有必要考么?现在还没打算,还在cisco认证的和Linux深入 unix初级阶段.必竟软考实用性不太大.网工虽然改了,但实用性还是不太大.今年下半年会网规高级,
    我已经要从事网络这行业了,准备这三年的路由和交换.其它的以后再说

  2. Hailin说道:

    博主,你好,能帮我看下下面的问题吗?
    我在自己机器上创建了一个域,内有一个集群,集群广播地址为239.192.0.0:7777。我启动了管理服务器后,再启动受管服务器,受管服务器控制台提示如下信息:
    -170027>
    >
    >
    -000365>
    -000365>

    -000330>
    -170027>
    >
    -000365>
    -000360>

    我想这应该表示受管服务器启动成功,而且加入到集群中了吧!但是接着就出现职下的错误信息:

    单从字面上理解,就是接收不到广播消息,但是是什么原因呢?希望博主给点意见。

    PS:我机器是宽带拨号上网的,以前这样子集群成功过一次,不知怎的,今天就不行了,哎。网络觉得差……

    博主赐教,谢谢先!呵呵。能给我回个邮件吗?感谢了。

  3. Hailin说道:

    不是吧,居然看不到我贴的错误消息的,偶再贴一下咯:

    博主,你好,能帮我看下下面的问题吗?
    我在自己机器上创建了一个域,内有一个集群,集群广播地址为239.192.0.0:7777。我启动了管理服务器后,再启动受管服务器,受管服务器控制台提示如下信息:
    The server initialized the domain log broadcaster successfully. Log messages will now be broadcasted to the domain log.
    Listening for announcements from cluster new_Cluster_1 on 239.192.0.0:7777.
    Waiting to synchronize with other running members of new_Cluster_1.
    Server state changed to ADMIN
    Server state changed to RESUMING
    Channel “Default” is now listening on 127.0.0.1:7082 for protocols iiop, t3, ldap, http.
    Started WebLogic Managed Server “new_ManagedServer_1” for domain “Cluster” running in Production Mode
    The server initialized the domain log broadcaster successfully. Log messages will now be broadcasted to the domain log.
    Joining cluster new_Cluster_1 on 239.192.0.0:7777
    Server state changed to RUNNING
    <Server started in RUNNING mode

    我想这应该表示受管服务器启动成功,而且加入到集群中了吧!但是接着就出现职下的错误信息:
    Server new_ManagedServer_1 did not receive the multicast packets that were sent by itself
    Critical Subsystem Cluster has failed. Setting server state to FAILED.
    Reason: Unable to receive self generated multicast messages

    单从字面上理解,就是接收不到广播消息,但是是什么原因呢?希望博主给点意见。

    PS:我机器是宽带拨号上网的,以前这样子集群成功过一次,不知怎的,今天就不行了,哎。网络觉得差……

    博主赐教,谢谢先!呵呵。能给我回个邮件吗?感谢了。

Leave a Reply to Hailin