From owner-freebsd-java@FreeBSD.ORG Thu May 10 09:25:50 2007 Return-Path: X-Original-To: freebsd-java@freebsd.org Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0886516A404 for ; Thu, 10 May 2007 09:25:50 +0000 (UTC) (envelope-from charlie.mas@gmail.com) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.241]) by mx1.freebsd.org (Postfix) with ESMTP id BCF4613C468 for ; Thu, 10 May 2007 09:25:49 +0000 (UTC) (envelope-from charlie.mas@gmail.com) Received: by an-out-0708.google.com with SMTP id d23so122314and for ; Thu, 10 May 2007 02:25:49 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=t4k3U1V6wNFxcD+Ol2ZlkHy77ygHJl+zlwEmZhgWCnSAvOjL9NWp4w5FiSBlHB/96lRjDkf0aS+J+9XSXd485I6CWYFcmhZYgJ7Bp22ILW0frySXVmK7aaE592aO6CcDMu1ZQ3ucKW3i6rYNsZIPmzejOl6Z2xTK5l2HiY9s3Xo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=C+GcbScgixKZvoV5s3b8DCQ41ejxBdivUQ7wp3qi5OZimUeQRXLIluaKucn0ez+yIHk4QVrPa5NfKhLXWPcLfmcmNB/AkDTlwWH1AysVlKgyYNUmiIBmu7vOxuAcvsHJtaP3P6KJdfalHFs3+ReiMX4hlDncTLVUUhO7TQnpWSM= Received: by 10.100.199.12 with SMTP id w12mr1075149anf.1178789148864; Thu, 10 May 2007 02:25:48 -0700 (PDT) Received: by 10.100.152.6 with HTTP; Thu, 10 May 2007 02:25:48 -0700 (PDT) Message-ID: <1960fb140705100225o38edbe72gcc05d585adcc0be8@mail.gmail.com> Date: Thu, 10 May 2007 10:25:48 +0100 From: "Charles Mason" To: freebsd-java@freebsd.org In-Reply-To: <1960fb140705050948td9da58bxb5fddb8e6bd39c43@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <1960fb140705050948td9da58bxb5fddb8e6bd39c43@mail.gmail.com> Subject: Re: Jboss Web on FreeBSD X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: charlie@cpsoftware.com List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 May 2007 09:25:50 -0000 I was asked for the details on how I got I got it working off list. In case anyone else is intrested I thought I would post a copy of the details. Well getting my "port" to an acceptable standard is a little difficult, as I am fairly new to creating FreeBSD ports and the build process for Jboss Web is anything but straight forward. The basic steps are below; 1, Obtain the Jboss Web source, officially only available from an anon svn checkout, although for the benefit of my port I tared it and put it on a local http server. 2, Download the latest stable version of Jboss Application Server 4 and put it in the /jboss folder in the Jboss Web source tree. 3, Run ant on the Jboss Web root directory. This builds all the Java elements. 4, You need to compile the native libs. There is an shell script called buildprep.sh in src/share/native/build, which downloads APR tar extracts it compiles it. It then checks out from an SVN the jboss native code. I couldn't get this script to run on FreeBSD but I managed to manually recreate what it does. 5, When the native libs are compiled you need to make a new dir called native in output/jbossweb-1.0.1.GA/bin. 6, Copy the native libs to the new directory, /output/jbossweb-1.0.1.GA/bin/native 7, Theres one problem with the default config which prevents Jboss Web starting on FreeBSD (at least on my system). Edit /output/jbossweb-1.0.1.GA/server/default/deploy/tc5-cluster.sar/META-INF/jboss-service.xml You need to change max_bundle_size="64000" to max_bundle_size="8000". 8, Run output/jbossweb-1.0.1.GA/bin/run.sh and all should work. To get a working rc.d script, I used the demonctl program which the Jboss4 port uses. Hence why I hacked together my port in the first place. After modifying the Makefile I was able to get the rc.d script to work without any changes. Although I did have to add the native lib path option as an arg in the hacked ports Makefile. I really don't know enough about the ports system to automate steps 2 and 4. I guess I could make an shell script use wget or fetch to download the source for step 2. However I think downloads for ports are supposed to use the dist-files folder. Also I notice there is a port of APR in the ports collection already, so I really need to work out how to patch the buildprep script to use that instead. All of these tasks are some what at the limit of my current FreeBSD knowledge. Hopefully I can learn how to solve these problems, although it would be great if someone could point me in the right direction. I hope that's enough info to get you started. Charlie