zoukankan      html  css  js  c++  java
  • Eclipse Error: Unable to set localhost. This prevents creation of a GUID.

    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:WindowsSystem32driversetchosts

    linux/unix environments

    /etc/hosts

    (info) We strongly recommend placing the hostname in the host file as fail-safe for DNS server failure.

    Alternatively, make the hostname resolvable via DNS.

  • 相关阅读:
    《代码整洁之道》读书笔记六
    第九周总结
    《构建之法》读后感(五)
    学习进度条-第十二周
    3. 统计数字
    《构建之法》读后感(四)
    学习进度条-第十一周
    4. 丑数 II
    《构建之法》读后感(三)
    学习进度条-第十周
  • 原文地址:https://www.cnblogs.com/reynold-lei/p/3583746.html
Copyright © 2011-2022 走看看