I am trying to bind Jetty to listen only to IPv6 address. I am using Jetty 7.4.2.v20110526.
my jetty.xml:
If you haven't found a solution, here it is. Change the NIO connector with the IO one. Instead of using "org.mortbay.jetty.nio.SelectChannelConnector" use "org.mortbay.jetty.bio.SocketConnector" and the overall connector config will be:
<Call name="addConnector">
<Arg>
<New class="org.mortbay.jetty.bio.SocketConnector">
<Set name="port"><SystemProperty name="jetty.port" default="8070"/></Set>
<Set name="maxIdleTime">50000</Set>
<Set name="lowResourceMaxIdleTime">1500</Set>
</New>
</Arg>
</Call>
This way you will be able to access the webpage using both IPv4 and IPv6 address. Hope this helps.
Old versions of the Sun JRE do not support IPv6 on NIO channels, so simply upgrade the JVM.
http://bugs.sun.com/view_bug.do?bug_id=6230761