httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John P. Dodge" <do...@cruciate.ca.boeing.com>
Subject Re: [users@httpd] mod_jk2 compilation
Date Wed, 16 Apr 2003 18:49:08 GMT
On Wed, 16 Apr 2003, Douglas L Stewart wrote:

> I'm trying to get jk2 2.0.2 compiled for Apache 2.0.45 and Tomcat
> 4.1.24.  I'm on Solaris 8 with GCC 3.2.2 I've installed Apache and
> Tomcat and have them working.  Now I'm trying to figure out how to get
> jk2 compiled and integrated.
>
> to want it to be both a file and a directory in those two statements,
> so the configure bombs.
>
> Has anyone had any better luck with jk2?  Anyone know a mailing list
> for it?
>
I just got jk2 setup and running on my system. You coulg check out the
tomcat-users mail list but here is what I did.

I could not get ant to work either.

in the jk/native2 directory

unset APACHE_HOME

run buildconf.sh

./configure --with-apxs2=/opt/apache2.0.45/bin/apxs \
--enable-jni \
--with-tomcat40=/opt/tomcat-4.0.4 \
--with-tomcat41=/opt/tomcat-4.1.24

make

copy ../jk/build/jk2/apache2/mod_jk2.so to /opt/apache2.0.45/modules

add to httpd.conf:

LoadModule jk2_module modules/mod_jk2.so

create <apache home>/conf/workers2/properties

#---- Start of workers2.properties

# workers2.properties
#The SHM mapping is required
[shm]
    file=${serverRoot}/logs/shm.file
    size=1048576


# Example TCP/IP socket channel, explicitly set port and host.
[channel.socket:localhost:8009]
    port=8009
    host=127.0.0.1

# Example UNIX domain IPC socket
[channel.un:/opt/tomcat-3.1.24/work/jk2.socket]
    tomcatId=localhost:8009
    debug=0

# define the worker
[ajp13:localhost:8009]
# To use the UNIX domain IPC socket comment out the TCP/IP socket line,
and uncomment the one below
#    channel=channel.un:/usr/local/tomcat/work/jk2.socket

# To use the TCP/IP socket instead, just comment out the above UNIX IPC
line (above), and
# uncomment the one below
    channel=channel.socket:localhost:8009

# Announce a "status" worker
[status:status]

# Uri mapping
[uri:/examples/*]
    worker=ajp13:localhost:8009
#    worker=ajp13:/opt/tomcat-4.1.24/work/jk2.socket

[uri:/status/*]
    worker=status:status

#---- end of workers2.properties


use the default <tomcat home>/conf/jk2.propertoies

restart tomcat ; restart apache


----------------------------------------
"Mon aƩroglisseur est plein d'anguilles"
John P. Dodge
Boeing Shared Services


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message