Date: Tue, 13 Jan 2004 10:22:08 +0200 From: Panagiotis Astithas <past@noc.ntua.gr> To: "David Sayed" <d_sayed@hotmail.com>, <freebsd-java@freebsd.org> Subject: Re: Problem on 5.2-RC2 but not 4.9-RELEASE with jdk-1.4.2p5 Message-ID: <200401131022.08844.past@noc.ntua.gr> In-Reply-To: <BAY9-DAV34H9AyHN25A0002b146@hotmail.com> References: <BAY9-DAV34H9AyHN25A0002b146@hotmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tuesday 13 January 2004 05:12, David Sayed wrote: > I recently moved to FreeBSD 5.2-RC2 because it supports my chipset better > than 4.9-RELEASE. > > I use a Java server based on a customised version of Tomcat for my Prismiq > media player. It ran OK under 4.9 with jdk-1.4.2p5 but throws the following > exception under 5.2-RC2: > > Adding engine (org.apache.catalina.core.StandardEngine/1.0) > Exception in thread "main" java.lang.IllegalArgumentException: Port value > out of range: 65536 at java.net.ServerSocket.<init>(ServerSocket.java:180) > at java.net.ServerSocket.<init>(ServerSocket.java:97) > at com.oxygnet.mediaserver.util.PortFinder.testPort(PortFinder.java:121) > at > com.oxygnet.mediaserver.util.PortFinder.findFreePort(PortFinder.java:103) > > at com.oxygnet.mediaserver.util.PortFinder.findPort(PortFinder.java:64) > at com.oxygnet.mediaserver.util.PortFinder.findPort(PortFinder.java:45) > at Tomcat.EmbeddedTomcat.startTomcat(EmbeddedTomcat.java:124) > at Tomcat.EmbeddedTomcat.main(EmbeddedTomcat.java:252) > > As far as I am aware, the highest port number should be 65535, however, > changing the program isn't an option for me (since I don't have the source) > and the port number doesn't seem to be set in a config file. > > Any ideas? Just a wild guess: sysctl net.inet.ip.portrange.first=1024 sysctl net.inet.ip.portrange.last=30000 (or the exact values you had on your 4.x system) Cheers, -- Panagiotis Astithas Electrical & Computer Engineer, PhD Network Management Center National Technical University of Athens, Greece
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200401131022.08844.past>