Weblogic:Could not obtain the localhost address…解决方法
成都创新互联公司主营桥西网站建设的网络公司,主营网站建设方案,APP应用开发,桥西h5微信小程序开发搭建,桥西网站营销推广欢迎桥西等地区企业咨询
启动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
【本文是专栏作者张勇波的原创文章,转载请通过获取作者授权】
文章标题:Couldnotobtainthelocalhostaddress...解决方法
URL分享:http://www.mswzjz.cn/qtweb/news29/20129.html
攀枝花网站建设、攀枝花网站运维推广公司-贝锐智能,是专注品牌与效果的网络营销公司;服务项目有等
声明:本网站发布的内容(图片、视频和文字)以用户投稿、用户转载内容为主,如果涉及侵权请尽快告知,我们将会在第一时间删除。文章观点不代表本网站立场,如需处理请联系客服。电话:028-86922220;邮箱:631063699@qq.com。内容未经允许不得转载,或转载时需注明来源: 贝锐智能