You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Akshay Mirajkar <mi...@gmail.com> on 2009/04/02 12:56:36 UTC

IPv6 configuration for tomcat 6

Hi,
   How do we configure tomcat on IPv6 machine? What changes need to be done?
What are the exact changes in server.xml file? (where and in which format
the ipv6 ip should be specified?)

we are using tomcat 6.0.18

Thanks,
Tomcat user !

Re: IPv6 configuration for tomcat 6

Posted by Akshay Mirajkar <mi...@gmail.com>.
I have put the ipv6 address in two places in server.xml. Those are:

<Membership className="org.apache.catalina.tribes.membership.McastService"
                                address="228.0.0.8"
                                bind="fc00:10:112:107:0:0:0:236"
                            port="45564"
                            frequency="500"
                            dropTime="3000"/>

                            <Receiver
className="org.apache.catalina.tribes.transport.nio.NioReceiver"
                            address="fc00:10:112:107:0:0:0:236"
                            port="4200"
                            autoBind="100"
                            selectorTimeout="5000"
                            maxThreads="6"/>




exception that i am getting is:
Apr 3, 2009 11:32:34 AM org.apache.catalina.tribes.transport.ReceiverBase
bind
INFO: Unable to bind server socket to:/fc00:10:112:107:0:0:0:236:4299
throwing error.
Apr 3, 2009 11:32:34 AM org.apache.catalina.tribes.transport.nio.NioReceiver
start
SEVERE: Unable to start cluster receiver
java.net.SocketException: Address family not supported by protocol family:
bind
    at sun.nio.ch.Net.bind(Native Method)
    at
sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:119)
    at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59)
    at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:52)
    at
org.apache.catalina.tribes.transport.ReceiverBase.bind(ReceiverBase.java:205)
    at
org.apache.catalina.tribes.transport.ReceiverBase.bind(ReceiverBase.java:217)
    at
org.apache.catalina.tribes.transport.ReceiverBase.bind(ReceiverBase.java:217)

I tried putting ipv6 address in square brackets also... but it did not work

Any help will be appreciated..



On Thu, Apr 2, 2009 at 4:26 PM, Akshay Mirajkar
<mi...@gmail.com>wrote:

> Hi,
>    How do we configure tomcat on IPv6 machine? What changes need to be
> done?
> What are the exact changes in server.xml file? (where and in which format
> the ipv6 ip should be specified?)
>
> we are using tomcat 6.0.18
>
> Thanks,
> Tomcat user !