I\'m installing CSVN using jdk1.6.0_23 and I\'m getting the following Java error:
2011-02-10 16:25:50,951 [WrapperJarAppMain] WARN util.GrailsUtil -
Just added the line below in /etc/hosts and it worked.
127.0.0.1 imac
That is related with
hostname
and
/etc/hosts
If /etc/hosts doesn't containt the definition of the hostname it fails. Just add your hostname to /etc/host for example if your hostname is work add or modified the following line:
127.0.0.1 work localhost
I can succesfully ping vkqgae01, but nslookup cannot resolve it.
Any ideas?
What happens?
vkqgae01
is resolved locally thanks to your hosts file.
vkqgae01
is unknown.
Suggestion: add vkqgae01
to hosts file of every machine where you "use" it.
Basically, the fact that the local hosts file on vkqgae01 contains 127.0.0.1 localhost vkqgae01
doesn't help other machines to solve its name.
You need to restart the container if /etc/hosts was changed as far as JVM caches local addresses/names on the first InetAddress
call. It looks like InetAddress
implementation bug, but still not fixed.
nslookup queries DNS specifically and directly. This means it will not be able to show anything added directly to an /etc/hosts file (as that isn't DNS). If you want to properly make sure your system will resolve a name, use getent: 'getent hosts vkqgae01'