如果创建域的开始阶段没有为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
本文出自 “天下无贼” 博客,请务必保留此出处http://guojuanjun.blog.51cto.com/277646/962579