From owner-freebsd-java Sat Feb 15 14:19: 8 2003 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 2982437B401 for ; Sat, 15 Feb 2003 14:19:05 -0800 (PST) Received: from ugc.ugc.ab.ca (h24-79-217-19.ed.shawcable.net [24.79.217.19]) by mx1.FreeBSD.org (Postfix) with ESMTP id 162B643F85 for ; Sat, 15 Feb 2003 14:18:50 -0800 (PST) (envelope-from freebsd@ugc.ab.ca) Received: from spare-w2k (guest.ugc.ab.ca [192.139.124.51]) by ugc.ugc.ab.ca (8.12.7/8.12.2) with ESMTP id h1ELsY6t049671; Fri, 14 Feb 2003 14:54:34 -0700 (MST) (envelope-from freebsd@ugc.ab.ca) From: "Geoff Coleman" To: Brent Verner , Alexey Zelkin , freebsd-java@FreeBSD.ORG, "Georg-W. Koltermann" Date: Fri, 14 Feb 2003 14:54:21 -0700 MIME-Version: 1.0 Subject: Re: [SUCCESS] Re: IPV6 vs IPV4 (Re: JDK14 Patchset 2 and Oracle JDBC Drivers) Message-ID: <3E4D031D.17401.13D946B6@localhost> In-reply-to: <20030214172911.GA15991@rcfile.org> References: <1045214673.812.18.camel@hunter.muc.mscsoftware.com> X-mailer: Pegasus Mail for Windows (v4.02) Content-type: text/html; charset=US-ASCII Content-transfer-encoding: 7BIT Content-description: Mail message body Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org
Brent et al

I guess the big issue is how do you define if IPV6 is available.

IMHO the issue that Georg and I were discussing is a bug and that is that:
1)  If I have no ipv6 interfaces defined in the system then Java should try to bind to the IPv4 interfaces that are defined in the system.
2) If I explicitly ask it to bind to an IPv4 interface by giving an IPv4 address it should use IPv4
3) If I  implicitly ask it, by giving a hostname that only has an IPv4 representation, then it should use IPv4.

The fact that I have IPv6 configured into the kernel should make no difference (it may be available to me as a sysadmin but it is not available to the user level program). In looking at the comments in " IPv6_supported()" in "net_util_md.c" It would appear that the other platforms have struggled with number 1 above. I haven't looked further to see how they have handled 2 and 3.

It shouldn't be up to the JAva aplication to worry about how networking is set up on my machine.


Geoff Coleman

ps. Is it just me or are the freebsd e-mail lists dead?



On 14 Feb 2003 at 12:29, Brent Verner wrote:

> [2003-02-14 10:24] Georg-W. Koltermann said:
> | (re-adding -java to CC:)
>
> See this page regarding network configuration of jdk14.
>   http://java.sun.com/j2se/1.4/docs/guide/net/properties.html
>
> Basically, ISTM, the native jdk14 is behaving properly.  The
> application in question (tomcat) needs to set a system property
>   java.net.preferIPv4Stack: true
> when IPv6 is available (in the system) but not in use.
>
> cheers.
>   brent
>
> | Thanks a lot Geoff, with that change I can now start up Tomcat 4.1.18
> | with JDK14, launch the application that we are developing, and connect
> | to the database.
> |
> | --
> | Regards,
> | Georg.
> |
> | Am Do, 2003-02-13 um 23.24 schrieb Geoff Coleman:
> | > Georg and Alexey
> | >
> | > I think the e-mail below explains a whole buch. I'm not running IPV6 currently although
> | > it is configured into my kernel ( I did remove it from my kernel last night but it didn't help
> | > my problem).
> | >
> | >
> | > in net_util_md.c if I put in a:
> | >  return JNI_FALSE;
> | >
> | > At the start of IPv6_supported()
> | >
> | > things start working a whole lot better for me (I can now go the the netbeans update
> | > and update the IDE, it crashes when I restart it but that is for another day :-) ).
>
> --
> "Develop your talent, man, and leave the world something. Records are
> really gifts from people. To think that an artist would love you enough
> to share his music with anyone is a beautiful thing."  -- Duane Allman
>

To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message