From owner-freebsd-java@FreeBSD.ORG Sun Jan 25 14:59:01 2004 Return-Path: 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 9FA1E16A4CE for ; Sun, 25 Jan 2004 14:59:01 -0800 (PST) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.177]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8BA2D43D46 for ; Sun, 25 Jan 2004 14:58:59 -0800 (PST) (envelope-from gwk@rahn-koltermann.de) Received: from [212.227.126.162] (helo=mrelayng.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 1AktDW-0006e2-00 for freebsd-java@freebsd.org; Sun, 25 Jan 2004 23:58:58 +0100 Received: from [217.232.142.69] (helo=[192.168.0.3]) by mrelayng.kundenserver.de with asmtp (Exim 3.35 #1) id 1AktDW-0006eX-00 for freebsd-java@freebsd.org; Sun, 25 Jan 2004 23:58:58 +0100 From: "Georg-W. Koltermann" To: freebsd-java@freebsd.org Content-Type: text/plain Message-Id: <1075071533.961.11.camel@localhost.muc.eu.mscsoftware.com> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 Date: Sun, 25 Jan 2004 23:58:54 +0100 Content-Transfer-Encoding: 7bit X-Provags-ID: kundenserver.de abuse@kundenserver.de auth:90bcaad5e51ecc993b2919ba4b74e6dc Subject: still IP6 vs IP4 trouble in -p6? X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Jan 2004 22:59:01 -0000 Hi, starting with -p5 I had trouble connecting from tomcat to oracle. I had to set -Djava.net.preferIPv4Stack=true to get it to work. I subsequently saw some postings on this list which made me assume that there would be a patch in the works which solved the problem. After building -p6 I still see the problem. It is actually two-fold: 1. In the default configuration, tomcat will not even start because it gets a SocketException when it tries to create the server socket on the command port 8005. It will print a message indicating that I might want to turn IPv4 mapped addresses off. 2. After issuing "sysctl net.inet6.ip6.v6only=0" tomcat does actually start, but cannot connect to oracle. Oracle of course has no IPv6 capabilities, but I would expect tomcat to fall back to IPv4. After setting the preferIPv4 system property as above, it works again. So what's up with this problem? Is it supposed to stay this way, as a known limitation? Or could I help somehow? -- Regards, Georg.