欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

java.net.UnknownHostException

程序员文章站 2022-04-03 13:37:29
...
在weblogic部署项目时,启动ManagedServer失败,状态显示:failed_not_restartable,查看log:
<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.
......
Caused By: java.net.UnknownHostException: rp-dev17.ads.corp: rp-dev17.ads.corp
......

重新检查<weblogic-domain>/config/config.xml,找到相应server节点,核对并修改
<listen-address></listen-address> 的内容。