Today I encountered a strange phenomen on Windows Vista. I was implementing a JAX-WS web service and trying to bind an endpoint with the JDK6 built-in JAX-WS.
Endpoint endpoint = Endpoint.publish("http://localhost:8090/queryservice", endpointImplementation);
I got this strange
java.net.SocketException: Address family not supported by protocol family: bind
execption and did a search for this. Fortunately very recently somebody else had the same issue.
The workaround is to either update your System32\drivers\etc\hosts file, replace “::1 localhost” with “127.0.0.1 localhost”
or use 127.0.0.1 as a replacement for localhost when creating the socket.