启动Weblogic报java.net.UnknownHostException

<Critical> <WebLogicServer> <BEA-000386> <Server subsystem failed. Reason: java.lang.AssertionError: Could not obtain the localhost address. The most likely cause is an error in the network configuration of this machine.
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
开始怀疑:查看权限是否够 (root启动仍然一样报错)
------解决方法--------------------------------------------------------
Could not obtain the localhost address.....
网络问题,你所在网络IP获取是不是有限制?
---上网找到---解决方法--------------------------------------------------------
我在Rehdat 5.0下面安装WLS 9.2也碰到同样问题,解决方法如下:
第一步:检查/etc/hosts文件,看是否包含如下语句,如果没有需要加入:
127.0.0.1 localhost.localdomain localhost
第二步:如果做了第一步以后依然报错,需要将虚拟机从JRocket换成Sun的JDK就可以了
经查,发现文件包含127的配置。但发现实际的IP与主机名不对应。修改后,再启动即可。
©️2020 CSDN 皮肤主题: 大白 设计师:CSDN官方博客 返回首页