?
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
?
285 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

 
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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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…
In Solr 4.0 it is possible to atomically (or partially) update individual fields in a document. This article will show the operations possible for atomic updating as well as setting up your Solr instance to be able to perform the actions. One major …
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Suggested Courses

719 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