新聞中心
這里有您想知道的互聯(lián)網(wǎng)營銷解決方案
Couldnotobtainthelocalhostaddress...解決方法
Weblogic:Could not obtain the localhost address…解決方法

成都創(chuàng)新互聯(lián)公司主營橋西網(wǎng)站建設的網(wǎng)絡公司,主營網(wǎng)站建設方案,APP應用開發(fā),橋西h5微信小程序開發(fā)搭建,橋西網(wǎng)站營銷推廣歡迎橋西等地區(qū)企業(yè)咨詢
啟動Weblogic報錯:
- java.lang.AssertionError: Could not obtain the localhost address. The most likely cause is an error in the network configuration of this machine.
- at weblogic.server.channels.AddressUtils$AddressMaker.getLocalHost(AddressUtils.java:40)
- at weblogic.server.channels.AddressUtils$AddressMaker.
(AddressUtils.java:35) - at weblogic.server.channels.AddressUtils.getIPAny(AddressUtils.java:105)
- at weblogic.protocol.configuration.ChannelHelper.checkConsistency(ChannelHelper.java:60)
- at weblogic.server.channels.ChannelService.start(ChannelService.java:197)
- Truncated. see log file for complete stacktrace
- java.net.UnknownHostException: bogon: bogon
- at java.net.InetAddress.getLocalHost(InetAddress.java:1354)
- at weblogic.server.channels.AddressUtils$AddressMaker.getLocalHost(AddressUtils.java:38)
- at weblogic.server.channels.AddressUtils$AddressMaker.
(AddressUtils.java:35) - at weblogic.server.channels.AddressUtils.getIPAny(AddressUtils.java:105)
- at weblogic.protocol.configuration.ChannelHelper.checkConsistency(ChannelHelper.java:60)
- Truncated. see log file for complete stacktrace
- >
解決方法:
修改hosts文件
- $:vi /etc/hosts
- #添加 IP hostname ($:hostname 查詢)
- 127.0.0.1 localhost.localdomain localhost
- 127.0.0.1 localhost6.localdomain6 localhost6
- 127.0.0.1 bogon #這里就是我添加的,我的主機名就是bogon
【本文是專欄作者張勇波的原創(chuàng)文章,轉載請通過獲取作者授權】
分享標題:Couldnotobtainthelocalhostaddress...解決方法
網(wǎng)頁路徑:http://www.dlmjj.cn/article/ccdeppd.html


咨詢
建站咨詢
