Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 20348 invoked from network); 1 Aug 2006 16:26:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 1 Aug 2006 16:26:31 -0000 Received: (qmail 78456 invoked by uid 500); 1 Aug 2006 16:26:19 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 78437 invoked by uid 500); 1 Aug 2006 16:26:18 -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 78426 invoked by uid 99); 1 Aug 2006 16:26:18 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Aug 2006 09:26:18 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [217.140.77.184] (HELO mail.schoenhaber.de) (217.140.77.184) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Aug 2006 09:26:17 -0700 Received: from localhost (unknown [127.0.0.1]) by mail.schoenhaber.de (Postfix) with ESMTP id 4597C7056994 for ; Tue, 1 Aug 2006 16:25:55 +0000 (UTC) Received: from mail.schoenhaber.de ([127.0.0.1]) by localhost (mail.schoenhaber.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 06832-12 for ; Tue, 1 Aug 2006 18:25:49 +0200 (CEST) Received: from Gimli.schoenhaber.de (Gimli [192.168.42.6]) by mail.schoenhaber.de (Postfix) with ESMTP id 249097056992 for ; Tue, 1 Aug 2006 18:25:49 +0200 (CEST) From: Markus =?iso-8859-1?q?Sch=F6nhaber?= Reply-To: users@tomcat.apache.org To: "Tomcat Users List" Subject: Re: Tomcat 5.5 and IPv6 configuration Date: Tue, 1 Aug 2006 18:25:48 +0200 User-Agent: KMail/1.9.1 References: <20060801114954.66300@gmx.net> In-Reply-To: <20060801114954.66300@gmx.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200608011825.48950.mailing-tomcat-user@schoenhaber.de> X-Virus-Scanned: amavisd-new at schoenhaber.de X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hans M=FCller wrote: > currently I'm trying to set-up a standalone Tomcat 5.5.17 server in an IP= v6 > environment on a FreeBSD 6.1 machine. Unfortunately, Tomcat refuses to > start. Here is the relevant content of the catalina.out log-file: > > SEVERE: StandardServer.await: create[8005]: > java.net.BindException: Can't assign requested address [...] > Then I looked at the particular portion of the source code which causes t= he > exception and I found that the IPv4 address 127.0.0.1 is actually hardcod= ed > several times there (in StandardServer.java, Catalina.java and some > others). Of course, the JVM cannot create an IPv6 address using this IPv4 > representation. Therefore I changed "127.0.0.1" to "localhost", recompiled > Tomcat and happily discovered that it is working now. > > BUT... since I can read everywhere that Tomcat should be IPv6 compliant, > this code-change doesn't seem to be the real solution to me. Firtly I'm n= ot > the only one who is using IPv6 and secondly the developers are definitely > not that stupid to hardcode an IPv4 address and thereby break IPv6 > compatibility. So, I'd like to ask you if there is a configuration-only w= ay > to solve this issue, i.e. to avoid that StandardServer is being called? I've never had the problem you describe. I use Linux though. On my machine = the=20 shutdown port binds to IPv6 representation of 127.0.0.1: tcp6 0 0 ::ffff:127.0.0.1:8007 :::* LISTEN = =20 7970/java (I've changed the port from 8005 to 8007). Are you using APR? If so, is IPv6 support compiled in? Regards mks --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org