问题:
java.lang.AssertionError: Could not obtain the localhost address. The most likely cause is an error in the network configuration of this machine.
java.net.UnknownHostException:localhost: localhost
发现有这么一句报错比较关键:
at weblogic.server.channels.AddressUtils$AddressMaker.getLocalHost(AddressUtils.java:40)
显然函数取值时出错。
解决办法:
$ cat /etc/hosts
/etc/hosts:Permission denied
$ ll /etc/hosts
-rw------- 1 root root 744 Dec 8 15:36 /etc/hosts
$ su - root
# chmod 644 /etc/hosts
# ll /etc/hosts
-rw-r--r-- 1 root root 744 Dec 8 15:39 /etc/hosts
$cd /weblogic/bea/user_projects/domains/base_domain
$sh startWebLogic.sh
问题解决。
阅读(8226) | 评论(0) | 转发(0) |