tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aditi Sinha <adisinha0...@gmail.com>
Subject Re: How to support IPv6 on Apache Tomcat Version 7.0.22
Date Mon, 09 Jul 2012 09:37:45 GMT
I could get the comparison of the three connectors here
http://tomcat.apache.org/tomcat-7.0-doc/config/http.html#Connector_Comparison

With the BIO connector specified, the server is not responding to the https
request.
Is it because SSL Handshake is Blocking for BIO connector?

We need to support SSL. Is there a way to have below configuration support
IPv6?

HTTP Connector: NIO protocol
AJP Connector: APR protocol/NIO protocol.

Thanks & Regards,
Aditi
On Mon, Jul 9, 2012 at 1:04 PM, Aditi Sinha <adisinha0423@gmail.com> wrote:

> Hi Kolinko,
>
> Thank you so much. We specified the BIO connector implementation for HTTP
> and AJP protocol and the setup now supports IPv6.
>
> Is there any preference among the three connectors "BIO", "NIO" and "APR"?
> How should one decide which connector to opt for?
>
> Thanks & Regards,
> Aditi
>  On Fri, Jul 6, 2012 at 9:58 PM, Konstantin Kolinko <
> knst.kolinko@gmail.com> wrote:
>
>> 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
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message