【发布时间】:2011-02-11 12:46:58
【问题描述】:
我正在使用 jdk1.6.0_23 安装 CSVN,但出现以下 Java 错误:
2011-02-10 16:25:50,951 [WrapperJarAppMain] WARN util.GrailsUtil - [WARNING] Property [ldapServerPort] of domain class com.collabnet.svnedge.console.Server has type [int] and doesn't support constraint [nullable]. This constraint will not be checked during validation.
2011-02-10 16:25:51,117 [WrapperJarAppMain] ERROR ehcache.Cache - Unable to set localhost. This prevents creation of a GUID. Cause was: vkqgae01: vkqgae01
java.net.UnknownHostException: vkqgae01: vkqgae01
at java.net.InetAddress.getLocalHost(InetAddress.java:1354)
at net.sf.ehcache.Cache.<clinit>(Cache.java:143)
我的服务器有 3 个 NIC(eth0、eth1 和 eth2)。我在 localhost 下面的 hosts 文件中添加了一个条目,其中包含以下内容:
127.0.0.1 vkqgae01
我可以成功ping vkqgae01,但是nslookup无法解决。
有什么想法吗?
【问题讨论】:
-
可能 nslookup 无法识别 vkqgae01,因为 resolv.conf 文件指向真正的 DNS 服务器并在其上查询该名称。这可能是问题所在。