Skip to main content

IPv6 not working with GlassFish 3.1.2.2 running JDK 6 but works with JDK 7

2 replies [Last post]
ddecesare
Offline
Joined: 2012-09-20
Points: 0

I'm running GlassFish 3.1.2.2 on Windows Server 2008 R2 using the JDK 6 (u35) and it appears GlassFish is not listening any IPv6 ports. So I cloned my VM and on it I removed the JDK 6 and installed the JDK 7 (u7). With the same configuration, the VM running JDK 7 worked. I also have Axis running with our deployments and that worked with IPv6 on both VMs so I believe this is a GlassFish issue.

I ran "netstat -a" on both VMs and here's what I found:
VM with JDK6:
TCP [::]:8080 TESTVM1:0 LISTENING (This is Axis)

VM with JDK7:
TCP [::]:4848 TESTVM2:0 LISTENING (This is GlassFish)
TCP [::]:8080 TESTVM2:0 LISTENING (This is Axis)

So my question is, has anyone else run into this issue? Most of what I read online talks about disabling IPv6 which I don't want to do. I tried changing localhost in the host file, updating the domain.xml config file (erred with address="any" or "ANY" or "::" or "[::]" etc. None of those fixed the issue on JDK 6.

Thank you,
David

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Dipl.-Ing. Tors...
Offline
Joined: 2011-06-28
Points: 0

This is a problem in jdk 1.6 for windows. jdk 1.6 does not support
ipv6 in nio. Grizzly use nio. Glassfish use grizzly.

To.

On Thu, 20 Sep 2012 07:14:55 -0500 (CDT)
forums@java.net wrote:
>I'm running GlassFish 3.1.2.2 on Windows Server 2008 R2 using the JDK 6 (u35)
>and it appears GlassFish is not listening any IPv6 ports. So I cloned my VM
>and on it I removed the JDK 6 and installed the JDK 7 (u7). With the same
>configuration, the VM running JDK 7 worked. I also have Axis running with our
>deployments and that worked with IPv6 on both VMs so I believe this is a
>GlassFish issue. I ran "netstat -a" on both VMs and here's what I found: VM
>with JDK6: TCP [::]:8080 TESTVM1:0 LISTENING (This is Axis) VM with JDK7: TCP
>[::]:4848 TESTVM2:0 LISTENING (This is GlassFish) TCP [::]:8080 TESTVM2:0
>LISTENING (This is Axis) *So my question is, has anyone else run into this
>issue?* Most of what I read online talks about disabling IPv6 which I don't
>want to do. I tried changing localhost in the host file, updating the
>domain.xml config file (erred with address="any" or "ANY" or "::" or "[::]"
>etc. None of those fixed the issue on JDK 6. Thank you, David
>
>--
>
>[Message sent by forum member 'ddecesare']
>
>View Post: http://forums.java.net/node/890405
>
>

----
Dipl.-Ing. Torsten Liermann Tel: +49 151/11565077
Theodolindenplatz 2
81545 München http://liermann-it.de

ddecesare
Offline
Joined: 2012-09-20
Points: 0

Thank you very much! It's good to know the root cause of it. After reading your message I searched and found this reference which correlates what you said: http://java.net/jira/browse/GLASSFISH-18163.

Thanks again,
David