From owner-freebsd-java@FreeBSD.ORG Wed May 24 01:04:02 2006 Return-Path: X-Original-To: freebsd-java@freebsd.org Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E229916A47F for ; Wed, 24 May 2006 01:04:02 +0000 (UTC) (envelope-from jshevland@rowantreesoftware.com.au) Received: from www.rowantreesoftware.com.au (218-214-142-195.people.net.au [218.214.142.195]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4FF0943D45 for ; Wed, 24 May 2006 01:04:02 +0000 (GMT) (envelope-from jshevland@rowantreesoftware.com.au) Received: from [127.0.0.1] (unknown [10.10.0.250]) by www.rowantreesoftware.com.au (Postfix) with ESMTP id C47CB11435; Wed, 24 May 2006 12:06:05 +1000 (EST) Message-ID: <4473B0D2.2020202@rowantreesoftware.com.au> Date: Wed, 24 May 2006 11:03:14 +1000 From: Joe Shevland Organization: Rowantree Software Pty. Ltd. User-Agent: Thunderbird 1.5.0.2 (Windows/20060308) MIME-Version: 1.0 To: Richard Cooper References: <200605231302.03491.work@ashleymoran.me.uk> <200605231322.46786.work@ashleymoran.me.uk> <200605231607.45933.work@ashleymoran.me.uk> <44733A87.8020700@jonnycalcutta.com> In-Reply-To: <44733A87.8020700@jonnycalcutta.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-java@freebsd.org Subject: Re: IPV6 (Re: Connecting to Jetty) X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 May 2006 01:04:03 -0000 Richard Cooper wrote: > Ashley Moran wrote: >> On Tuesday 23 May 2006 13:22, Ashley Moran wrote: >>> Just to narrow this down, I've installed it on my 6.1/i386 desktop >>> and it >>> works, and another 6.1/amd64 server and it fails, can't bind to >>> 127.0.0.1. >>> Is this a bug in the JDK on amd64? >>> >>> Ashley >> >> Turns out this was failing because I had compiled IPv6 support. I've >> passed a Java option now to use the IPv4 stack and it works. >> >> I believe this is a known issue? It appears impossible to bind to an >> (IPv4) address with the IPv6 stack enabled. > > Can I ask what variable and exactly how you passed it? I'm having a > similar problem with Tomcat and I can't seem to pass the right command > to get around the problem. This might be relevant (or rather the link near the top to the Sun bug database): http://mail-archives.apache.org/mod_mbox/tomcat-dev/200511.mbox/%3C4375392B.7000306@cognitiongroup.biz%3E and this JBoss wiki entry says it a bit better wrt releases up to JDK 5: http://wiki.jboss.org/wiki/Wiki.jsp?page=IPv6 So maybe try: java -Djava.net.preferIPv4Stack=true ... Cheers Joe