C3P0在Linux下Failed to get local InetAddress for VMID. This is unlikely to matter. At all

报错代码:
Failed to get local InetAddress for VMID. This is unlikely to matter. At all. We'll add some extra randomness

java.net.UnknownHostException: Fedora.dule:Fedora.dule

查看Fedora.dule来自哪里

[root@dule ~]# cat /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=Fedora.DuLe
NTPSERVERARGS=iburst

解决方法

[root@dule ~]# gedit /etc/hosts

在行127.0.0.1  localhost localhost.localdomain 后加上Fedora.dule保存。

posted @ 2011-12-25 18:49  秋裤大叔  阅读(1889)  评论(0编辑  收藏  举报