首页 > 其他 > 详细

Eclipse Error: Unable to set localhost. This prevents creation of a GUID.

时间:2014-03-06 07:52:33      阅读:1226      评论:0      收藏:0      [点我收藏+]

Symptoms

The following error appears in the atlassian-confluence.log:

2011-03-16 18:20:03,021 ERROR [main] [net.sf.ehcache.Cache] <clinit> Unable to set localhost. This prevents creation of a GUID. Cause was: <hostname>: <hostname>
java.net.UnknownHostException: <hostname>: <hostname>
    at java.net.InetAddress.getLocalHost(InetAddress.java:1354)
    at net.sf.ehcache.Cache.<clinit>(Cache.java:145)

Cause

The local hostname (or COMPUTERNAME - Windows) that is running Confluence is not in the host file or is not resolvable via DNS lookup.

Resolution

Change the local hostname (or COMPUTERNAME in Windows) that is running Confluence to match the host file, or enter the local hostname into the hosts file.
windows

C:\Windows\System32\drivers\etc\hosts

linux/unix environments

/etc/hosts

bubuko.com,布布扣 We strongly recommend placing the hostname in the host file as fail-safe for DNS server failure.

Alternatively, make the hostname resolvable via DNS.

Eclipse Error: Unable to set localhost. This prevents creation of a GUID.,布布扣,bubuko.com

Eclipse Error: Unable to set localhost. This prevents creation of a GUID.

原文:http://www.cnblogs.com/reynold-lei/p/3583746.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!