From owner-freebsd-java@FreeBSD.ORG Mon Jan 12 19:12:26 2004 Return-Path: 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 3949F16A4CE for ; Mon, 12 Jan 2004 19:12:26 -0800 (PST) Received: from hotmail.com (bay9-dav34.bay9.hotmail.com [64.4.46.91]) by mx1.FreeBSD.org (Postfix) with ESMTP id A23BA43D2D for ; Mon, 12 Jan 2004 19:12:24 -0800 (PST) (envelope-from d_sayed@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Mon, 12 Jan 2004 19:12:24 -0800 Received: from 67.124.61.100 by bay9-dav34.bay9.hotmail.com with DAV; Tue, 13 Jan 2004 03:12:24 +0000 X-Originating-IP: [67.124.61.100] X-Originating-Email: [d_sayed@hotmail.com] X-Sender: d_sayed@hotmail.com From: "David Sayed" To: Date: Mon, 12 Jan 2004 19:12:23 -0800 MIME-Version: 1.0 X-Mailer: Microsoft Office Outlook, Build 11.0.5510 Thread-Index: AcPZgxAwxFvIyZTPQtqqc3rl8k3nzQ== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Message-ID: X-OriginalArrivalTime: 13 Jan 2004 03:12:24.0630 (UTC) FILETIME=[1109BD60:01C3D983] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.1 Subject: Problem on 5.2-RC2 but not 4.9-RELEASE with jdk-1.4.2p5 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Jan 2004 03:12:26 -0000 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.(ServerSocket.java:180) at java.net.ServerSocket.(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? Thanks, David.