From owner-freebsd-java Tue Mar 4 11:24:12 2003 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 43B7E37B401 for ; Tue, 4 Mar 2003 11:24:10 -0800 (PST) Received: from transpacific.net (lincoln.transbay.net [209.133.53.12]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6F77743FE1 for ; Tue, 4 Mar 2003 11:24:09 -0800 (PST) (envelope-from sreese@codysbooks.com) Received: from codysbooks.com (stalwart.codysbooks.com [209.133.54.175]) by transpacific.net (8.11.6/8.11.4) with ESMTP id h24JO9i03461 for ; Tue, 4 Mar 2003 11:24:09 -0800 (PST) Message-ID: <3E64FD62.7070501@codysbooks.com> Date: Tue, 04 Mar 2003 11:24:18 -0800 From: Scott Reese User-Agent: Mozilla/5.0 (X11; U; Linux i386; en-US; rv:1.0.1) Gecko/20020823 Netscape/7.0 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-java@freebsd.org Subject: [Fwd: Re: Tomcat 4.1.18, Apache 1.3.27 and jk?] Content-Type: multipart/mixed; boundary="------------080406050703070108040005" Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org This is a multi-part message in MIME format. --------------080406050703070108040005 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit I'm forwarding this note along because this is the solution that I ended up going with. It worked very well and I now have a working setup. Thank you all for your help! -Scott -------- Original Message -------- Subject: Re: Tomcat 4.1.18, Apache 1.3.27 and jk? Date: Thu, 27 Feb 2003 23:48:40 +0000 From: Adrian To: Scott Reese References: <90D7C354-4AA6-11D7-BD46-0030656DD690@foolishgames.com> <3E5EB12F.40403@codysbooks.com> I did it by hand with the latest connectors Built it with the next three steps. extract jakarta-tomcat-connectors-4.*-src.tar.gz to /usr/local/src or wherever convenient. copy the build freebsd.sh to the "jakarta-tomcat-connectors-4.0.2-01-src/jk/native/apache-1.3" directory. in the same directory run sh ./build-freebsd.sh. This will build mod_jk and copy it to /usr/local/libexec/apache. --------------080406050703070108040005 Content-Type: text/plain; name="build-freebsd.sh" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="build-freebsd.sh" #!/bin/sh # Remake of the build-unix.sh for FreeBSD # Usage: build-unix.sh # Sets a bunch of variables and calls APXS to build mod_jk # on Unix. An alternative to the makefiles, hopefully more portable. # Configure by changing the following variables: # Set to match the ports installation . JAVA_HOME=/usr/local/jdk1.3.1 APACHE_HOME=/usr/local # name of subdir under JAVA_HOME/jre/lib ARCH=i386 CFLAGS="-DHAVE_CONFIG_H -g -fpic -DSHARED_MODULE -O2 -D_REENTRANT -pthread -DLINUX -Wall" APXS=$APACHE_HOME/sbin/apxs # Expects native FreeBSD java install # Adjust for linux emulation JAVA_INCLUDE="-I ${JAVA_HOME}/include -I ${JAVA_HOME}/include/freebsd" INCLUDE="-I ../common $JAVA_INCLUDE" SRC="mod_jk.c ../common/*.c" #echo INCLUDE=$INCLUDE #echo SRC=$SRC # Run APXS to compile module echo Compiling mod_jk $APXS -c -o mod_jk.so $INCLUDE $LIB $SRC # Copy mod_jk.so into the apache libexec directory echo Installing mod_jk.so into $APACHE_HOME/libexec/apache cp mod_jk.so $APACHE_HOME/libexec/apache # Done! --------------080406050703070108040005-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message