Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2002-04-10
7
Medium Priority
?
288 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 1000 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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

In my time as an SEO for the last 2 years and in the questions I have assisted with on here I have always seen the need to redirect from non-www urls to their www versions. For instance redirecting http://domain.com (http://domain.com) to http…
Hi, in this article I'm going to teach you how to run your own site, and how to let people in (without IP). I'll talk about and explain each step... :) By the way, everything in this Tutorial is completely free and legal. This article is for …
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
Suggested Courses
Course of the Month10 days, 16 hours left to enroll

886 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