Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Feb 2003 14:54:21 -0700
From:      "Geoff Coleman" <freebsd@ugc.ab.ca>
To:        Brent Verner <brent@rcfile.org>, Alexey Zelkin <phantom@FreeBSD.org.ua>, freebsd-java@FreeBSD.ORG, "Georg-W. Koltermann" <g.w.k@web.de>
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>

next in thread | previous in thread | raw e-mail | index | archive | help
<?xml  version="1.0" ?>
<html>
<head>
<title></title>
</head>
<body>
<div align="left"><font face="Arial"><span style="font-size:10pt">Brent et al</span></font></div>
<div align="left"><br/>
</div>
<div align="left"><font face="Arial"><span style="font-size:10pt">I guess the big issue is how do you 
define if IPV6 is available. </span></font></div>
<div align="left"><br/>
</div>
<div align="left"><font face="Arial"><span style="font-size:10pt">IMHO the issue that Georg and I were 
discussing is a bug and that is that:</span></font></div>
<div align="left"><font face="Arial"><span style="font-size:10pt">1)&#160; 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. </span></font></div>
<div align="left"><font face="Arial"><span style="font-size:10pt">2) If I explicitly ask it to bind 
to an IPv4 interface by giving an IPv4 address it should use 
IPv4</span></font></div>
<div align="left"><font face="Arial"><span style="font-size:10pt">3) If I&#160; implicitly ask it, by 
giving a hostname that only has an IPv4 representation, then it 
should use IPv4.</span></font></div>
<div align="left"><br/>
</div>
<div align="left"><font face="Arial"><span style="font-size:10pt">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 &quot;</span></font><font face="Arial"><span style="font-size:10pt"> IPv6_supported()&quot; 
in </span></font><font face="Arial"><span style="font-size:10pt">&quot;</span></font><font face="Arial"><span 
style="font-size:10pt">net_util_md.c&quot; 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.</span></font></div>
<div align="left"><br/>
</div>
<div align="left"><font face="Arial"><span style="font-size:10pt">It shouldn't be up to the JAva aplication 
to worry about how networking is set up on my 
machine.</span></font></div>
<div align="left"><br/>
</div>
<div align="left"><br/>
</div>
<div align="left"><font face="Arial"><span style="font-size:10pt">Geoff Coleman</span></font></div>
<div align="left"><br/>
</div>
<div align="left"><font face="Arial"><span style="font-size:10pt">ps. Is it just me or are the freebsd 
e-mail lists dead?</span></font></div>
<div align="left"><br/>
</div>
<div align="left"><br/>
</div>
<div align="left"><br/>
</div>
<div align="left"><font face="Arial"><span style="font-size:10pt">On 14 Feb 2003 at 12:29, Brent Verner 
wrote:</span></font></div>
<div align="left"><br/></div>
<div align="left"><font face="Arial" color="#7f0000"><span style="font-size:10pt">&gt; [2003-02-14 10:24] 
Georg-W. Koltermann said:</span></font></div>
<div align="left"><font face="Arial" color="#7f0000"><span style="font-size:10pt">&gt; | (re-adding 
-java to CC:)</span></font></div>
<div align="left"><font face="Arial" color="#7f0000"><span style="font-size:10pt">&gt; </span></font></div>
<div align="left"><font face="Arial" color="#7f0000"><span style="font-size:10pt">&gt; See this page 
regarding network configuration of jdk14.</span></font></div>
<div align="left"><font face="Arial" color="#7f0000"><span style="font-size:10pt">&gt;&#160;&#160; http://java.sun.com/j2se/1.4/docs/guide/net/properties.html</span></font></div>;
<div align="left"><font face="Arial" color="#7f0000"><span style="font-size:10pt">&gt; </span></font></div>
<div align="left"><font face="Arial" color="#7f0000"><span style="font-size:10pt">&gt; Basically, ISTM, 
the native jdk14 is behaving properly.&#160; The </span></font></div>
<div align="left"><font face="Arial" color="#7f0000"><span style="font-size:10pt">&gt; application in 
question (tomcat) needs to set a system property </span></font></div>
<div align="left"><font face="Arial" color="#7f0000"><span style="font-size:10pt">&gt;&#160;&#160; java.net.preferIPv4Stack: 
true</span></font></div>
<div align="left"><font face="Arial" color="#7f0000"><span style="font-size:10pt">&gt; when IPv6 is 
available (in the system) but not in use.</span></font></div>
<div align="left"><font face="Arial" color="#7f0000"><span style="font-size:10pt">&gt; </span></font></div>
<div align="left"><font face="Arial" color="#7f0000"><span style="font-size:10pt">&gt; cheers.</span></font></div>
<div align="left"><font face="Arial" color="#7f0000"><span style="font-size:10pt">&gt;&#160;&#160; brent</span></font></div>
<div align="left"><font face="Arial" color="#7f0000"><span style="font-size:10pt">&gt; </span></font></div>
<div align="left"><font face="Arial" color="#7f0000"><span style="font-size:10pt">&gt; | Thanks a lot 
Geoff, with that change I can now start up Tomcat 4.1.18</span></font></div>
<div align="left"><font face="Arial" color="#7f0000"><span style="font-size:10pt">&gt; | with JDK14, 
launch the application that we are developing, and connect</span></font></div>
<div align="left"><font face="Arial" color="#7f0000"><span style="font-size:10pt">&gt; | to the database.</span></font></div>
<div align="left"><font face="Arial" color="#7f0000"><span style="font-size:10pt">&gt; | </span></font></div>
<div align="left"><font face="Arial" color="#7f0000"><span style="font-size:10pt">&gt; | --</span></font></div>
<div align="left"><font face="Arial" color="#7f0000"><span style="font-size:10pt">&gt; | Regards,</span></font></div>
<div align="left"><font face="Arial" color="#7f0000"><span style="font-size:10pt">&gt; | Georg.</span></font></div>
<div align="left"><font face="Arial" color="#7f0000"><span style="font-size:10pt">&gt; | </span></font></div>
<div align="left"><font face="Arial" color="#7f0000"><span style="font-size:10pt">&gt; | Am Do, 2003-02-13 
um 23.24 schrieb Geoff Coleman:</span></font></div>
<div align="left"><font face="Arial" color="#7f0000"><span style="font-size:10pt">&gt; | &gt; Georg 
and Alexey</span></font></div>
<div align="left"><font face="Arial" color="#7f0000"><span style="font-size:10pt">&gt; | &gt; </span></font></div>
<div align="left"><font face="Arial" color="#7f0000"><span style="font-size:10pt">&gt; | &gt; I think 
the e-mail below explains a whole buch. I'm not running IPV6 currently although </span></font></div>
<div align="left"><font face="Arial" color="#7f0000"><span style="font-size:10pt">&gt; | &gt; it is 
configured into my kernel ( I did remove it from my kernel last night but it didn't help </span></font></div>
<div align="left"><font face="Arial" color="#7f0000"><span style="font-size:10pt">&gt; | &gt; my problem).</span></font></div>
<div align="left"><font face="Arial" color="#7f0000"><span style="font-size:10pt">&gt; | &gt; </span></font></div>
<div align="left"><font face="Arial" color="#7f0000"><span style="font-size:10pt">&gt; | &gt; </span></font></div>
<div align="left"><font face="Arial" color="#7f0000"><span style="font-size:10pt">&gt; | &gt; in net_util_md.c 
if I put in a:</span></font></div>
<div align="left"><font face="Arial" color="#7f0000"><span style="font-size:10pt">&gt; | &gt;&#160; 
return JNI_FALSE;</span></font></div>
<div align="left"><font face="Arial" color="#7f0000"><span style="font-size:10pt">&gt; | &gt; </span></font></div>
<div align="left"><font face="Arial" color="#7f0000"><span style="font-size:10pt">&gt; | &gt; At the 
start of IPv6_supported()</span></font></div>
<div align="left"><font face="Arial" color="#7f0000"><span style="font-size:10pt">&gt; | &gt; </span></font></div>
<div align="left"><font face="Arial" color="#7f0000"><span style="font-size:10pt">&gt; | &gt; things 
start working a whole lot better for me (I can now go the the netbeans update </span></font></div>
<div align="left"><font face="Arial" color="#7f0000"><span style="font-size:10pt">&gt; | &gt; and update 
the IDE, it crashes when I restart it but that is for another day :-) ).</span></font></div>
<div align="left"><font face="Arial" color="#7f0000"><span style="font-size:10pt">&gt; </span></font></div>
<div align="left"><font face="Arial" color="#7f0000"><span style="font-size:10pt">&gt; -- </span></font></div>
<div align="left"><font face="Arial" color="#7f0000"><span style="font-size:10pt">&gt; &quot;Develop 
your talent, man, and leave the world something. Records are </span></font></div>
<div align="left"><font face="Arial" color="#7f0000"><span style="font-size:10pt">&gt; really gifts 
from people. To think that an artist would love you enough</span></font></div>
<div align="left"><font face="Arial" color="#7f0000"><span style="font-size:10pt">&gt; to share his 
music with anyone is a beautiful thing.&quot;&#160; -- Duane Allman</span></font></div>
<div align="left"><font face="Arial" color="#7f0000"><span style="font-size:10pt">&gt; </span></font></div>
<div align="left"><br/>
</div>
<div align="left"></div>
</body>
</html>

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3E4D031D.17401.13D946B6>