Link to home
Start Free TrialLog in
Avatar of hawkers
hawkers

asked on

Installing the mod_jk.so with Apache DSO 1.3.22 and Tomcat 3.2.1

Hello,

I would like so advice to install the mod_jk.so for Apache 1.3.22 to bridge with 3.2.1. First, just a word about the platform.

Sun Solaris 2.8
Apache 1.3.22
Tomcat 3.2.1

Problem I am unable to install this module, using the notes from Apache.org as I am unable to find the ./build-unix.sh, ./build-solaris.sh and Apache apxs binary does not work when I type in the following

$APACHE_HOME/bin/apxs -o mod_jk.so -DSOLARIS -I../jk -I/usr/java/include -I/usr/java/include/solaris -c *.c ../jk/*.c

When I type this command in I recieve an message, infortunately I cannot remember the specific message. I am unable to replicate it as I am running some tests on a different on the same platform.

Please could someone explain each section of the command so I am able to understand what each option does?

What happens if the $TOMCAT_HOME/native/mod_jk/apache_x is not installed during its installation?

This is true in my case so I have downloaded it from apache.

Which directory should I locate the mod_jk.so to be installed?

Also how would I install the mod_jk.so from a directory like $APACHE_HOME/Apache1.3.22/bin

Any other information would be appreciated.

Many thanks in advance

hawkers

Avatar of samri
samri
Flag of Malaysia image


Try using -i -a -c switch, and substitute the <libs> <and <inc> accordingly.  Relative path (../../libs), but might as well try with absolute path.    And try to use absolute path to your apxs, rather than $APACHE_HOME/bin.  Well maybe your have that define.  Just a note.

Try this one:
/usr/local/apache/bin/apxs -I<inc> -L<libs> -i -a -c mod_jk.c

This should compile the module, copy the modules files to you libexec dir, and activate the module in httpd.conf

The compile error messages is important to determine what's wrong.  Maybe some of the includes or libraries cannot be located.

good luck.
Avatar of hawkers
hawkers

ASKER

samri


The message I recieve when I enter

$APACHE_HOME/bin/apxs -o mod_jk.so -DSOLARIS -I../jk -I/usr/java/include -I/usr/java/include/solaris
-c *.c ../jk/*.c

Mo Match

When I try the

/export/Apache1.3.22/bin/apxs -o mod_jk.so -DSOLARIS -I../jk -I/usr/java/include -I/usr/java/include/solaris
-i -a -c mod_jk.c

gcc: mod_jk.c:No such  file or directory

So I did a find on this  find . name "mod_jk.c" "jk.c" "*.c", without a result.

I expect that the file does not exist, will I be able to download the file from somewhere?

Many thanks

hawkers
ASKER CERTIFIED SOLUTION
Avatar of samri
samri
Flag of Malaysia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of hawkers

ASKER

samri


The message I recieve when I enter

$APACHE_HOME/bin/apxs -o mod_jk.so -DSOLARIS -I../jk -I/usr/java/include -I/usr/java/include/solaris
-c *.c ../jk/*.c

Mo Match

When I try the

/export/Apache1.3.22/bin/apxs -o mod_jk.so -DSOLARIS -I../jk -I/usr/java/include -I/usr/java/include/solaris
-i -a -c mod_jk.c

gcc: mod_jk.c:No such  file or directory

So I did a find on this  find . name "mod_jk.c" "jk.c" "*.c", without a result.

I expect that the file does not exist, will I be able to download the file from somewhere?

Many thanks

hawkers
Avatar of hawkers

ASKER

samri


The message I recieve when I enter

$APACHE_HOME/bin/apxs -o mod_jk.so -DSOLARIS -I../jk -I/usr/java/include -I/usr/java/include/solaris
-c *.c ../jk/*.c

Mo Match

When I try the

/export/Apache1.3.22/bin/apxs -o mod_jk.so -DSOLARIS -I../jk -I/usr/java/include -I/usr/java/include/solaris
-i -a -c mod_jk.c

gcc: mod_jk.c:No such  file or directory

So I did a find on this  find . name "mod_jk.c" "jk.c" "*.c", without a result.

I expect that the file does not exist, will I be able to download the file from somewhere?

Many thanks

hawkers
Avatar of hawkers

ASKER

samri

Thanks for your advice, however I have learnt that I need to complete a build installation for Tomcat 3.2.4, rather than a binary installation.

FYI

Before the installation of Tomcat you need the following packages

JAXP version 1.1
JSSE version 1.0.2
tomcat-servletapi
tomcat-ant

You may already know this, but I thought I would just share the info in anycase.

Thanks again

hawkers
I'm prety much new to Tomcat.  I would have to say that you might have more experience that I did.   The recommendation that I gave are based on my understanding that you are building the modules for apache.

Yes.  the "developer" version is required because the mod_jk.c might have called some routines that is part of Tomcat include/header files.

I should have thought of that :) <-- always the case, once the solution is found, everybody will start yelling ... I knew it... as what I had thought.. blah blah...

Anyway, it's been great sharing the information.

Cheers.