Solved

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

Posted on 2002-04-10
7
276 Views
Last Modified: 2008-02-01
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

0
Comment
Question by:hawkers
  • 4
  • 3
7 Comments
 
LVL 15

Expert Comment

by:samri
ID: 6932857

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.
0
 
LVL 2

Author Comment

by:hawkers
ID: 6933344
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
0
 
LVL 15

Accepted Solution

by:
samri earned 250 total points
ID: 6933434
/export/Apache1.3.22/bin/apxs -DSOLARIS I../jk -I/usr/java/include -I/usr/java/include/solaris -i -a -c mod_jk.c

And make sure you are in the same location as the mod_jk.c
0
Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

 
LVL 2

Author Comment

by:hawkers
ID: 6933731
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
0
 
LVL 2

Author Comment

by:hawkers
ID: 6933738
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
0
 
LVL 2

Author Comment

by:hawkers
ID: 6933762
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
0
 
LVL 15

Expert Comment

by:samri
ID: 6933817
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.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

If you are running a LAMP infrastructure, this little code snippet is very helpful if you are serving lots of HTML, JavaScript and CSS-related information. The mod_deflate module, which is part of the Apache 2.2 application, provides the DEFLATE…
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question