Java在tomcat上查看127.0.0.1失败

时间:2012-10-20 16:50:58

标签: java tomcat localhost vpn

我在Ubuntu 12.10上工作的VPN(实际上我不知道它是否会影响这种情况)我在Tomcat 6中运行的应用程序无法开始返回:

Caused by: java.lang.Exception: Conversion of bind_addr in UDP with original property value "127.0.0.1" failed
at org.jgroups.conf.PropertyHelper.getConvertedValue(PropertyHelper.java:85)
at org.jgroups.stack.Configurator.resolveAndAssignField(Configurator.java:1139)
... 63 more
 Caused by: java.net.UnknownHostException: "127.0.0.1"
at java.net.Inet4AddressImpl.lookupAllHostAddr(Native Method)

我已经ping了“localhost”和127.0.0.1,他们看起来很好。我已禁用IPV6和/ etc / hosts是:

127.0.0.1   localhost.localdomain   localhost
::1 mybox   localhost6.localdomain6 localhost6
127.0.1.1   mybox

# The following lines are desirable for IPv6 capable hosts
::1     localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts

任何想法为什么“java”无法解决地址?

更多信息:

在IntelliJ中,我使用:

运行Tomcat
  

-Djava.awt.headless = true -Djgroups.bind_addr =“127.0.0.1”-Dfile.encoding = UTF-8 -server -Xms512m -Xmx1024m -XX:NewSize = 256m -XX:MaxNewSize = 256m -XX: PermSize = 256m -XX:MaxPermSize = 256m -XX:+ DisableExplicitGC

该问题与>>相关-Djgroups.bind_addr = “127.0.0.1”

0 个答案:

没有答案