Could not obtain the localhost address...解决方法

开发 开发工具
博主发表的文章,有的是自己原创,有的是这些年本人从网上积累的,方便大家学习。

[[178879]]

Weblogic:Could not obtain the localhost address…解决方法

启动Weblogic报错:

  1. <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. 
  2. java.lang.AssertionError: Could not obtain the localhost address. The most likely cause is an error in the network configuration of this machine. 
  3.  at weblogic.server.channels.AddressUtils$AddressMaker.getLocalHost(AddressUtils.java:40) 
  4.  at weblogic.server.channels.AddressUtils$AddressMaker.<clinit>(AddressUtils.java:35) 
  5.  at weblogic.server.channels.AddressUtils.getIPAny(AddressUtils.java:105) 
  6.  at weblogic.protocol.configuration.ChannelHelper.checkConsistency(ChannelHelper.java:60) 
  7.  at weblogic.server.channels.ChannelService.start(ChannelService.java:197) 
  8.  Truncated. see log file for complete stacktrace 
  9. java.net.UnknownHostException: bogon: bogon 
  10.  at java.net.InetAddress.getLocalHost(InetAddress.java:1354) 
  11.  at weblogic.server.channels.AddressUtils$AddressMaker.getLocalHost(AddressUtils.java:38) 
  12.  at weblogic.server.channels.AddressUtils$AddressMaker.<clinit>(AddressUtils.java:35) 
  13.  at weblogic.server.channels.AddressUtils.getIPAny(AddressUtils.java:105) 
  14.  at weblogic.protocol.configuration.ChannelHelper.checkConsistency(ChannelHelper.java:60) 
  15.  Truncated. see log file for complete stacktrace 

解决方法:

修改hosts文件

  1. $:vi /etc/hosts 
  2. #添加 IP hostname ($:hostname 查询) 
  3. 127.0.0.1 localhost.localdomain localhost 
  4. 127.0.0.1 localhost6.localdomain6 localhost6 
  5. 127.0.0.1 bogon #这里就是我添加的,我的主机名就是bogon 

【本文是51CTO专栏作者张勇波的原创文章,转载请通过51CTO获取作者授权】

责任编辑:武晓燕 来源: 上下求索的Z先生博客
相关推荐

2011-03-01 13:40:45

500 OOPS

2011-09-16 15:36:47

网络环路

2010-05-27 09:33:04

SVN冲突

2010-07-15 14:01:12

telnet乱码

2009-09-10 09:35:25

Linq语句

2010-10-13 17:22:12

MySQL查询乱码

2010-04-20 16:46:41

Oracle数据库密码

2009-07-03 18:14:27

Servlet线程安全

2009-12-17 10:09:02

ssh超时断开

2023-04-06 15:21:34

IIoT自动化

2011-07-04 10:09:19

Qt Creator BUG

2009-07-01 18:14:36

JSP乱码

2010-01-18 10:19:04

FreeBSDroot密码

2009-12-22 17:30:47

WCF Address

2009-06-12 16:17:48

Hibernate l

2017-05-27 15:45:00

Windows 10Windows更新

2019-11-21 16:26:44

Windows电脑浏览器

2010-05-27 09:17:48

SVN冲突

2009-11-12 17:08:08

2011-04-29 13:22:48

ThinkPad笔记本故障
点赞
收藏

51CTO技术栈公众号