Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 04 Mar 2003 11:24:18 -0800
From:      Scott Reese <sreese@codysbooks.com>
To:        freebsd-java@freebsd.org
Subject:   [Fwd: Re: Tomcat 4.1.18, Apache 1.3.27 and jk?]
Message-ID:  <3E64FD62.7070501@codysbooks.com>

next in thread | raw e-mail | index | archive | help
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 <athiele@charter.net>
To: Scott Reese <sreese@codysbooks.com>
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3E64FD62.7070501>