Date: Fri, 11 Nov 2005 16:40:05 -0800 From: Sean McNeil <sean@mcneil.com> To: Richard Schilling <rschi@rsmba.biz> Cc: freebsd-amd64@freebsd.org, freebsd-java@freebsd.org Subject: Re: BindAddress exception error (was BindAddress error with jdk1.5 and Tomcat and Resin) Message-ID: <1131756005.6959.12.camel@triton.mcneil.com> In-Reply-To: <43753947.3040108@rsmba.biz> References: <43753947.3040108@rsmba.biz>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 2005-11-11 at 16:37 -0800, Richard Schilling wrote: > I'm narrowing down a problem with BindAddress on jdk1.5, FreeBSD RELENG_6 . > > uname -a output: > FreeBSD newbox.cognitiongroup.biz 6.0-STABLE FreeBSD 6.0-STABLE #3: Fri > Nov 4 23:36:56 PST 2005 > rschilling@cognitiongroup.biz:/usr/obj/usr/src/sys/PRODUCTION amd64 > > Here's the error: > > $ java TestServer localhost 8080 > Host Address=localhost > Port =8080 > Exception in thread "main" java.net.BindException: Can't assign > requested address > at java.net.PlainSocketImpl.socketBind(Native Method) > at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359) > at java.net.ServerSocket.bind(ServerSocket.java:319) > at java.net.ServerSocket.bind(ServerSocket.java:277) > at TestServer.main(TestServer.java:15) What does netstat -a | grep 8080 show you? Have you tried starting it with java.net.preferIPv4Stack=true set? Cheers, Sean
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1131756005.6959.12.camel>