I use the Squeeze aka testing distribution of Debian Linux on my dual boot computer at home. After updating the packages yesterday I discovered that java applications including Tomcat and Java Webstart were unable to connect to the network. I had no idea what was going on as I had not upgraded Java or Tomcat. After a lot of searching through the logs and then the internet I found Debian Bug #560142 and Sun bug #6342561 describing the problem. Apparently, it is related to a change in IPv6 networking in the netbase package that causes Java applications to ignore IPv4 network connections, which is rather annoying.
Fortunately, there is a simple workaround for running servers:
echo 0 > /proc/sys/net/ipv6/bindv6only
You will also have to change the default value in /etc/sysctl.d/bindv6only.conf from 1 to 0 so that the value is used after a reboot.
This means that Java is able to connect to IPv4 servers. Hopefully, this will be fixed soon but I'm glad to have found out what the problem was and to have a workaround.
Merry Christmas.