C3P0Linux上报错找不到主机

C3P0在Linux下的错误内容

31-Jul-2014 14:14:43.072 INFO [localhost-startStop-1] com.mchange.v2.c3p0.impl.C3P0ImplUtils.generateVmId Failed to get local InetAddress for VMID. This is unlikely to matter. At all. We‘ll add some extra randomness
java.net.UnknownHostException: XXX.XXX: XXX.XXX: Name or service not known

网络上的解决方法

 

在Linux的/etc/hosts文件内添加本主机名

你可能感兴趣的:(java开源框架使用,linux)