In case this helps someone else, I spent a few hours trying to pin down why my GWT app was seeing UnknownHostExceptions for things like google.com when using HttpClient in hosted mode.
Luckily, I found this guy (girl?) in the same boat, who figured out that you just need to flip a system property to get correct behavior – in my case, passing in the VM argument -Djava.net.preferIPv4Stack=true on Tomcat startup.
UnknownHostException: Java & IPV6 on Linux
In case this helps someone else, I spent a few hours trying to pin down why my GWT app was seeing UnknownHostExceptions for things like google.com when using HttpClient in hosted mode.
Luckily, I found this guy (girl?) in the same boat, who figured out that you just need to flip a system property to get correct behavior – in my case, passing in the VM argument
-Djava.net.preferIPv4Stack=trueon Tomcat startup.