Return-Path: X-Original-To: apmail-tomcat-users-archive@www.apache.org Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 56EC0DEA2 for ; Wed, 12 Sep 2012 19:14:38 +0000 (UTC) Received: (qmail 60453 invoked by uid 500); 12 Sep 2012 19:14:34 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 60404 invoked by uid 500); 12 Sep 2012 19:14:34 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 60395 invoked by uid 99); 12 Sep 2012 19:14:34 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Sep 2012 19:14:34 +0000 X-ASF-Spam-Status: No, hits=-5.0 required=5.0 tests=RCVD_IN_DNSWL_HI,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [208.91.2.12] (HELO smtp-outbound-1.vmware.com) (208.91.2.12) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Sep 2012 19:14:26 +0000 Received: from sc9-mailhost1.vmware.com (sc9-mailhost1.vmware.com [10.113.161.71]) by smtp-outbound-1.vmware.com (Postfix) with ESMTP id 4AF6A28548 for ; Wed, 12 Sep 2012 12:14:05 -0700 (PDT) Received: from zimbra-prod-mta-2.vmware.com (zimbra-prod-mta-2.vmware.com [10.113.160.174]) by sc9-mailhost1.vmware.com (Postfix) with ESMTP id 3DCEA185B3 for ; Wed, 12 Sep 2012 12:14:05 -0700 (PDT) Received: from localhost (localhost.localdomain [127.0.0.1]) by zimbra-prod-mta-2.vmware.com (Postfix) with ESMTP id 37E04228E0 for ; Wed, 12 Sep 2012 12:14:05 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra-prod-mta-2.vmware.com Received: from zimbra-prod-mta-2.vmware.com ([127.0.0.1]) by localhost (zimbra-prod-mta-2.vmware.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7AkaWsURpbGD for ; Wed, 12 Sep 2012 12:14:05 -0700 (PDT) Received: from [10.113.231.241] (unknown [10.113.160.14]) by zimbra-prod-mta-2.vmware.com (Postfix) with ESMTPSA id C14CC22729 for ; Wed, 12 Sep 2012 12:14:04 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Apple Message framework v1280) Subject: Re: HTTP NIO connector not supporting IPv6 From: Daniel Mikusa In-Reply-To: <7215BA462D00D343B2837F9113F0131F01277E3832@POSTOFFICE02.polydyne.com> Date: Wed, 12 Sep 2012 15:14:02 -0400 Content-Transfer-Encoding: quoted-printable Message-Id: <268EBBD5-6BC0-45AB-9013-0AC3CDD941C0@vmware.com> References: <7215BA462D00D343B2837F9113F0131F01277E32A5@POSTOFFICE02.polydyne.com> <7215BA462D00D343B2837F9113F0131F01277E32B9@POSTOFFICE02.polydyne.com> <5ACB54F8-F51C-47DE-A16C-A5CC5D15277C@vmware.com> <7215BA462D00D343B2837F9113F0131F01277E3832@POSTOFFICE02.polydyne.com> To: "Tomcat Users List" X-Mailer: Apple Mail (2.1280) On Sep 12, 2012, at 2:44 PM, Jeffrey Janner wrote: >> -----Original Message----- >> From: Daniel Mikusa [mailto:dmikusa@vmware.com] >> Sent: Wednesday, September 12, 2012 10:00 AM >> To: Tomcat Users List >> Subject: Re: HTTP NIO connector not supporting IPv6 >>=20 >> On Sep 12, 2012, at 1:29 AM, Aditi Sinha wrote: >>=20 >>> Thanks Dan, Jeff. >>>=20 >>>=20 >>>=20 >>> There are no errors in catalina.log file. >>>=20 >>> The connector tags are defined as below in server.xml. This >>> configuration does not support IPv6. >>>=20 >>>=20 >>> > connectionTimeout=3D"20000" >>> redirectPort=3D"8443" /> >>>=20 >>>=20 >>>=20 >>> >> org.apache.coyote.http11.Http11NioProtocol*" SSLEnabled=3D"true" >>> maxThreads=3D"150" >>>=20 >>> scheme=3D"https" secure=3D"true" clientAuth=3D"false" >> sslProtocol=3D"TLS" >>> keystoreFile=3D"xxxxxx" keystorePass=3D"xxxxxx"/> >>>=20 >>=20 >> Tried it on my MBP (10.7 w/Java 1.6.0_35) and it worked fine. Tried = on >> Windows XP (only version I have available) w/ Java 1.6.0_35 and was >> able to replicate the problem behavior. According to the following = bug >> report this is a limitation of the OS / JVM. Looks like a recent >> versions of Windows and a recent version of the JVM are required to >> resolve this. >>=20 >> Try upgrading from 1.6.0_25 to 1.6.0_35. >>=20 >> http://bugs.sun.com/view_bug.do?bug_id=3D6230761 >>=20 >> Dan >>=20 > One workaround is to explicitly define the IPv4 and IPv6 addressing in = the . > That is, add address=3D"0.0.0.0" for any IPv4 connectors and = address=3D"[::]" for any IPv6 connectors. (Or use your real addresses = instead of the "any" addresses listed here.) > This means setting up 2 sets of connectors for each port/protocol, but = there's nothing wrong with being explicit. > This is what I had to do to get the APR protocol to set up for IPv4. With all due respect, I do not think that this is going to work for the = poster. You're saying that your workaround was for an issue with the = APR connector, but the poster is using the NIO connector. The APR = connector does not use NIO or the JVM, so I don't think your workaround = is relevant. In fact I tried your workaround previously without = success. The problem is that on older versions of Windows (pre-vista) = and older versions of the JVM, the NIO libraries do not support IPv6 = (see bug report). As a side note, the poster could switch from NIO to the APR connector, = and it would likely resolve his problem (just like he reported switching = to the BIO connector resolved his problem). Just assuming that the = poster wants to stick with the NIO connector. Dan >=20 > Plus, why do you have asterisks (*) bracketing the protocols? All = examples I've ever seen don't use them. They are just quoted strings. = =46rom the default server.xml shipped with Tomcat: > maxThreads=3D"150" scheme=3D"https" secure=3D"true" > clientAuth=3D"false" sslProtocol=3D"TLS" /> >=20 >=20 >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org > For additional commands, e-mail: users-help@tomcat.apache.org >=20 --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org