From owner-freebsd-java@FreeBSD.ORG Fri Mar 26 08:53:05 2010 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5262C106568C for ; Fri, 26 Mar 2010 08:53:05 +0000 (UTC) (envelope-from achill@matrix.gatewaynet.com) Received: from smadev.internal.net (host3.dynacom.ondsl.gr [62.103.35.211]) by mx1.freebsd.org (Postfix) with ESMTP id 8D45F8FC12 for ; Fri, 26 Mar 2010 08:53:04 +0000 (UTC) Received: from smadev.internal.net (localhost [127.0.0.1]) by smadev.internal.net (8.14.2/8.14.2) with ESMTP id o2Q8r2Ue043986 for ; Fri, 26 Mar 2010 10:53:02 +0200 (EET) (envelope-from achill@matrix.gatewaynet.com) Received: from localhost (localhost [[UNIX: localhost]]) by smadev.internal.net (8.14.2/8.14.2/Submit) id o2Q8r2R9043984 for freebsd-java@freebsd.org; Fri, 26 Mar 2010 10:53:02 +0200 (EET) (envelope-from achill@matrix.gatewaynet.com) From: Achilleas Mantzios Organization: Dynacom Tankers Mgmt To: freebsd-java@freebsd.org User-Agent: KMail/1.9.7 References: <20100325140504.GA11277@erwo.net> <088FD04A-B8B5-4500-850C-476221153975@erwo.net> <20100326043112.GA19708@osiris.chen.org.nz> In-Reply-To: <20100326043112.GA19708@osiris.chen.org.nz> MIME-Version: 1.0 Content-Disposition: inline Date: Fri, 26 Mar 2010 10:53:01 +0200 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <201003261053.02118.achill@matrix.gatewaynet.com> Subject: Re: jdk-1.6.0.3p4_12 Problem (Socket Thing) 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: Fri, 26 Mar 2010 08:53:05 -0000 =CE=A3=CF=84=CE=B9=CF=82 Friday 26 March 2010 06:31:12 =CE=BF/=CE=B7 Jonath= an Chen =CE=AD=CE=B3=CF=81=CE=B1=CF=88=CE=B5: > On Thu, Mar 25, 2010 at 10:48:47PM +0100, Wilhelm Greiner wrote: > > Hi, > >=20 > > Am 25.03.2010 um 18:47 schrieb Jonathan Chen: > >=20 > > > On Thu, Mar 25, 2010 at 03:05:04PM +0100, Wilhelm Greiner wrote: > > >=20 > > > [...] > > >> i have a Problem with the Port "jdk-1.6.0.3p4_12" on FreeBSD > > >> "8.0-RELEASE #0". > > >>=20 > > >> An Application dies with the Error "java.net.BindException: Can't as= sign > > >> requested address". > > >>=20 > > >> In the lack of compatibility i cant use diablo JRE or Open Java Runt= ime > > >> (the gpled Thing). > > >>=20 > > >> On my Test Box i disabled ipv6 in rc.conf, also i used the Java > > >> Parameter "-Djava.net.preferIPv4Stack=3Dtrue". > > >>=20 > > >> Also i read about problems with the loopback interface, the command > > >> "ifconfig lo0" says: > > >> lo0: flags=3D8049 metric 0 mtu 16384 > > >> options=3D3 > > >> inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 > > >> inet6 ::1 prefixlen 128 > > >> inet 127.0.0.1 netmask 0xff000000 > > >>=20 > > >>=20 > > >> Think the settings should be ok, can anyone help please to find the = problem? > > >=20 > > > All this means is that the application is trying set up a listener on= a > > > tcp or udp port that is being used by some other process. > >=20 > > Thanks for your reply. > >=20 > > There is definitly no other process on the requested ports. > >=20 > > On the box only ssh && syslog is up. >=20 > Add the result of `hostname` to the 127.0.0.1 aliases in /etc/hosts. Additionally with what Jonathan wrote, could it be that the port is a privi= leged one (<1024) and the user not root? =2D-=20 Achilleas Mantzios