<<O>>  Difference Topic RabelaisTomcat (r1.2 - 11 Jul 2004 - BenjaminGeer)

META TOPICPARENT ServerConfigRabelais

Tomcat Java servlet engine

Changed:
<
<
We're using this to support a legacy application written in Java. smile
>
>

Versions


Changed:
<
<
More complete docs to follow.
>
>
Tested with Tomcat 4.1.30, Kaffe 1.1.4, mod_jk2 2.0.4, apr 0.9.4 and apr-util 0.9.4.

Changed:
<
<
Compiling mod_jk2:
>
>

Overview

This document covers the installation of:

  • Kaffe, a Java Virtual Machine released under the GPL.
  • Tomcat, a daemon for running web applications written in Java.
  • mod_jk2, an Apache module that allows the Apache HTTP server to delegate requests to Tomcat.

Installation

Download the latest development version of Kaffe.



Changed:
<
<
cd jakarta-tomcat-connectors/jk/native2 CC=cc ./configure --with-apxs=/usr/local/apache/bin/apxs --with-apr=/home/ben/apr-0.9.4 --with-apr-util=/home/ben/apr-util-0.9.4 --disable-apr-threads
>
>
tar zxf kaffe-1.1.4.tar.gz cd kaffe-1.1.4 ./configure --prefix=/usr/local/kaffe make sudo make install
tar zxf jakarta-tomcat-4.1.30.tar.gz
cd jakarta-tomcat-4.1.30
patch -p0 < ../server.xml.patch
patch -p0 < ../web.xml.patch
cd ..
sudo mv jakarta-tomcat-4.1.30 /usr/local/tomcat4
<verbatim>
sudo chmod a+x /etc/init.d/tomcat4
sudo update-rc.d tomcat4 defaults
<verbatim>
sudo /etc/init.d/tomcat4 start
<verbatim>
tar zxf apr-0.9.4.tar.gz
tar zxf apr-util-0.9.4.tar.gz
tar zxf jakarta-tomcat-connectors-jk2-src-current.tar.gz
BASE_PATH=`pwd`
cd jakarta-tomcat-connectors-jk2-2.0.4-src/jk/native2
CC=cc ./configure --with-apxs=/usr/local/apache/bin/apxs --with-apr=$BASE_PATH/apr-0.9.4 --with-apr-util=$BASE_PATH/apr-util-0.9.4 --disable-apr-threads
<nop>

make cd ../build/jk2/apache13 sudo /usr/local/apache/bin/apxs -n jk2 -i mod_jk2.so
Added:
>
>
sudo touch /usr/local/tomcat4/conf/jk2.properties
LoadModule jk2_module libexec/mod_jk2.so
<verbatim>
sudo /etc/init.d/tomcat4 restart
sudo /etc/init.d/apache restart
<verbatim>
  <IfModule mod_alias.c>
    RedirectMatch ^/$ http://example.info/example/
  </IfModule>
<nop>

Added:
>
>
META FILEATTACHMENT tomcat4 attr="" comment="/etc/init.d/tomcat4" date="1089576067" path="tomcat4" size="1167" user="BenjaminGeer" version="1.4"
META FILEATTACHMENT server.xml.patch attr="" comment="server.xml.patch" date="1089575586" path="server.xml.patch" size="563" user="BenjaminGeer" version="1.2"
META FILEATTACHMENT web.xml.patch attr="" comment="web.xml.patch" date="1089575595" path="web.xml.patch" size="422" user="BenjaminGeer" version="1.2"
META FILEATTACHMENT workers2.properties attr="" comment="/usr/local/apache/conf/workers2.properties" date="1089575730" path="workers2.properties" size="315" user="BenjaminGeer" version="1.2"
 <<O>>  Difference Topic RabelaisTomcat (r1.1 - 11 Jul 2004 - BenjaminGeer)
Line: 1 to 1
Added:
>
>
META TOPICPARENT ServerConfigRabelais

Tomcat Java servlet engine

We're using this to support a legacy application written in Java. smile

More complete docs to follow.

Compiling mod_jk2:

cd jakarta-tomcat-connectors/jk/native2
CC=cc ./configure --with-apxs=/usr/local/apache/bin/apxs --with-apr=/home/ben/apr-0.9.4 --with-apr-util=/home/ben/apr-util-0.9.4 --disable-apr-threads
make
cd ../build/jk2/apache13
sudo /usr/local/apache/bin/apxs -n jk2 -i mod_jk2.so
Revision r1.1 - 11 Jul 2004 - 12:34 - BenjaminGeer
Revision r1.2 - 11 Jul 2004 - 19:36 - BenjaminGeer