Weblogic创建channel

如果创建域的开始阶段没有为AdminServer指定绑定地址,那么weblogic遍历所在主机的所有IP地址。每一个IP地址创建一个ServerSocket,也就是我们在界面上看到channel,比如以下输出:

<2012-8-13 下午06时32分39秒 CST> <Error> <Server> <BEA-002606> <Unable to create a server socket for listening on channe
l "Default[4]"
. The address fe80:0:0:0:0:0:0:1 might be incorrect or another process is using port 7001: java.net.BindEx
ception: Cannot assign requested address: JVM_Bind.>
<2012-8-13 下午06时32分39秒 CST> <Warning> <Server> <BEA-002611> <Hostname "guojianjun", maps to multiple IP addresses:
192.168.1.62, 0:0:0:0:0:0:0:1>
<2012-8-13 下午06时32分39秒 CST> <Error> <Server> <BEA-002606> <Unable to create a server socket for listening on channe
l "Default[3]".
The address fe80:0:0:0:224:1dff:fe2a:689a might be incorrect or another process is using port 7001: java
.net.BindException: Cannot assign requested address: JVM_Bind.>
<2012-8-13 下午06时32分39秒 CST> <Error> <Server> <BEA-002606> <Unable to create a server socket for listening on channe
l "Default[2]"
. The address fe80:0:0:0:0:ffff:ffff:fffd might be incorrect or another process is using port 7001: java.n
et.BindException: Cannot assign requested address: JVM_Bind.>
<2012-8-13 下午06时32分39秒 CST> <Error> <Server> <BEA-002606> <Unable to create a server socket for listening on channe
l "Default[5]"
. The address 0:0:0:0:0:0:0:1 might be incorrect or another process is using port 7001: java.net.BindExcep
tion: Address already in use: JVM_Bind.>
<2012-8-13 下午06时32分39秒 CST> <Error> <Server> <BEA-002606> <Unable to create a server socket for listening on channe
l "Default[1]"
. The address fe80:0:0:0:0:5efe:c0a8:13e might be incorrect or another process is using port 7001: java.ne
t.BindException: Cannot assign requested address: JVM_Bind.>
<2012-8-13 下午06时32分39秒 CST> <Notice> <Server> <BEA-002613> <Channel "Default[6]" is now listening on 127.0.0.1:7001
 for protocols iiop, t3, ldap, snmp, http.>
<2012-8-13 下午06时32分39秒 CST> <Notice> <Server> <BEA-002613> <Channel "Default" is now listening on 192.168.1.62:7001
 for protocols iiop, t3, ldap, snmp, http.>
<2012-8-13 下午06时32分39秒 CST> <Notice> <WebLogicServer> <BEA-000331> <Started WebLogic Admin Server "AdminServer" for
 domain "base_domain" running in Development Mode>

从上面的输出可以看到,总共有7个channel,有的绑定成功,有的失败:

1. fe80:0:0:0:0:0:0:1 :                    Default[4]

2. fe80:0:0:0:224:1dff:fe2a:689a  Default[3]

3. fe80:0:0:0:0:ffff:ffff:fffd            Default[2]

4. fe80:0:0:0:0:5efe:c0a8:13e        Default[1]

5. 192.168.1.62                            Default/Default[0]

6. 127.0.0.1                                  Default[6]

7. 0:0:0:0:0:0:0:1                           Default[5]

我们罗列一下机器的IP地址:

public static void main(String[] args) throws IOException {
        Enumeration<NetworkInterface> eni = NetworkInterface.getNetworkInterfaces();
        while(eni.hasMoreElements()){
            NetworkInterface ni = eni.nextElement();
            Enumeration<InetAddress> eIa = ni.getInetAddresses();
            while(eIa.hasMoreElements()){
                System.out.println(eIa.nextElement().getHostName());
            }
        }
    }

127.0.0.1
guojianjun
fe80:0:0:0:0:0:0:1%1
guojianjun
fe80:0:0:0:224:1dff:fe2a:689a%4
fe80:0:0:0:0:ffff:ffff:fffd%5
fe80:0:0:0:0:5efe:c0a8:13e%2

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值