tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Konstantin Kolinko <knst.koli...@gmail.com>
Subject Re: How to support IPv6 on Apache Tomcat Version 7.0.22
Date Fri, 06 Jul 2012 16:28:41 GMT
2012/7/6 Aditi Sinha <adisinha0423@gmail.com>:
> Hi,
>
>
> We have a web server hosted on Apache Tomcat Version 7.0.22. We are trying
> to get the web server support IPv6.
>
> Machine details: Windows 2008 server machine, 32-bit OS
> Java version:  jdk1.6.0_25
>
>
> The web server is not accessible using the IPv6 address. The connectivity
> to windows server machine works fine though IPv6 address.
> The firewall is turned off.
>
>
> **
>
> In the Catalina.log can see IPv6 [false] as below.
>
> * *
>
> *INFO: APR capabilities: IPv6 [false], sendfile [true], accept filters
> [false], random [true].*
>
>
> Is there any configuration which needs to be done for Tomcat/Connector to
> support IPv6?
>  In server.xml we are using the AJP 1.3 Connector and HTTP/1.1 Connector.**

Look into the docs - there are 3 different connector implementations
for HTTP protocol, and 3 for AJP protocol. They are known as "BIO",
"NIO" and "APR" one.

As you have Tomcat-Native library installed, the configuration by
default will use the "APR" connector.    But your problem is that the
binary version of Tomcat-Native that you are using is not compiled
with support for IPv6 and thus this connector does not support IPv6.

So have the following possibilities:
a) compile your own version of Tomcat-Native for your platform and
make sure that it has IPv6 support enabled. For Windows it might be
tricky.

b) choose other connector implementation - see "protocol" attribute on
<Connector> element in Configuration Reference.

c) uninstall Tomcat-Native library or disable AprLifecycleListener in
your configuration. In this case Tomcat will autoselect the BIO
connector implementations for both protocols.

Best regards,
Konstantin Kolinko

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message