mod_jk for IBM AIX (Apache+Tomcat)

mod_jk for IBM AIX (Apache+Tomcat)

Post by manojkithan » Tue, 03 Sep 2002 14:28:04



Hi Experts,

I am having problems in Integrating Apache (1.3) with Tomcat (4.0.3).
I am using IBM AIX 5.1 Unix System.

It seems that I need to download mod_jk.so file - but I could'nt come
accross this file for IBM AIX System. This file is available for many
UNIX versions easily but difficult for IBM AIX System.

Does anyone of you Experts know where to get this file from and how to
Integrate these application.


Any related information would be appreciated.

THANKS A LOT!!!

Manoj G. Kithany


--
Posted via http://dbforums.com

 
 
 

mod_jk for IBM AIX (Apache+Tomcat)

Post by H.G.Borrman » Tue, 03 Sep 2002 19:01:18



> Hi Experts,

> I am having problems in Integrating Apache (1.3) with Tomcat (4.0.3).
> I am using IBM AIX 5.1 Unix System.

> It seems that I need to download mod_jk.so file - but I could'nt come
> accross this file for IBM AIX System. This file is available for many
> UNIX versions easily but difficult for IBM AIX System.

> Does anyone of you Experts know where to get this file from and how to
> Integrate these application.


> Any related information would be appreciated.

First look at
http://jakarta.apache.org/tomcat/tomcat-3.3-doc/mod_jk-howto.html  how to
get the sources
for mod_jk and how to compile it. I succeeded under AIX 4.3.3 with

Makefile.linux as Makefile
the following change to the Makefile:
         --- Makefile.orig       Mon Oct 15 15:57:59 2001
         ***************
         *** 19,25 ****
           all: mod_jk.so

           mod_jk.so:

-bE:mod_jk.exp $(SRCS)

           clean:
                 rm *.o *.so
         --- 19,25 ----
           all: mod_jk.so

           mod_jk.so:

The change specifies the file mod_jk.exp which you must produce yourself.
It contains only one line
containing the string "jk_module" (without the ").

--
.______________________________________________________________.
|H.G.Borrmann                           |Tel.: (0761) 203-4652 |
|Rechenzentrum der Universitaet Freiburg|Fax:  (0761) 203-4643 |
|Hermann-Herder-Str. 10 D79104 FREIBURG                        |

 
 
 

mod_jk for IBM AIX (Apache+Tomcat)

Post by manojkithan » Wed, 04 Sep 2002 04:54:07


Hi Mr H.G.Borrmann,

THANK YOU VERY MUCH for your reply.

I tried to follow your instructions but get following errors -
wonder why?

My "Makefile" is as follows:
---------------------------------------------
## You need to edit this file - configure later :-)
## I assume this one is set up already
# JAVA_HOME=
OS=aix

JK=../common/
JK_INCL=-I ${JK} -DUSE_APACHE_MD5
JAVA_INCL=-I ${JAVA_HOME}/include -I ${JAVA_HOME}/include
JAVA_LIB=-L ${JAVA_HOME}/jre/lib -L ${JAVA_HOME}/lib
#ifndef APXS
APXS=/usr/local/apache/bin/apxs
#endif

SRCS=${JK}/jk_ajp12_worker.c ${JK}/jk_connect.c ${JK}/jk_msg_buff.c
${JK}/jk_util.c ${JK}/jk_ajp13.c \
${JK}/jk_jni_worker.c ${JK}/jk_pool.c ${JK}/jk_worker.c
${JK}/jk_ajp13_worker.c ${JK}/jk_lb_worker.c \
${JK}/jk_sockbuf.c  ${JK}/jk_map.c ${JK}/jk_uri_worker_map.c
${JK}/jk_ajp14.c ${JK}/jk_ajp14_worker.c \
${JK}/jk_md5.c ${JK}/jk_context.c ${JK}/jk_ajp_common.c

all: mod_jk.so

mod_jk.so:
$(APXS) ${JK_INCL} ${JAVA_INCL} -c -o $@ mod_jk.c -bE:mod_jk.exp $(SRCS)

clean:
rm -f *.o *.so

---------------------------------------------------

And I execute the following file by:
#pwd
/jtc/jk/native/apache-1.3
# make -f Makefile mod_jk.so

I get follwong Error Message (see the last line):
-------------------------------------------------
        /usr/local/apache/bin/apxs -I ../common/ -DUSE_APACHE_MD5
        -I /usr/java130/include -I /usr/java130/include -c -o
        mod_jk.so mod_j
k.c -bE:mod_jk.exp ../common//jk_ajp12_worker.c ../common//jk_connect.c
  ../common//jk_msg_buff.c ../common//jk_util.c ../common//jk_ajp
13.c  ../common//jk_jni_worker.c ../common//jk_pool.c
       ../common//jk_worker.c ../common//jk_ajp13_worker.c
       ../common//jk_lb_worker.c  ..
       /common//jk_sockbuf.c  ../common//jk_map.c
       ../common//jk_uri_worker_map.c ../common//jk_ajp14.c
       ../common//jk_ajp14_worker.c  ../common
       //jk_md5.c ../common//jk_context.c ../common//jk_ajp_common.c
       gcc -DAIX=1 -U__STR__ -DAIX_BIND_PROCESSOR -DUSE_HSREGEX
       -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED
       -I/usr/local/apache/include -I
       ../common/ -I/usr/java130/include -I/usr/java130/include
       -DUSE_APACHE_MD5  -c mod_jk.c
       mod_jk.c: In function `request_log_transaction':
       mod_jk.c:857: warning: passing arg 3 of `jk_log' makes integer
       from pointer without a cast
       gcc -DAIX=1 -U__STR__ -DAIX_BIND_PROCESSOR -DUSE_HSREGEX
       -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED
       -I/usr/local/apache/include -I
       ../common/ -I/usr/java130/include -I/usr/java130/include
       -DUSE_APACHE_MD5  -c ../common//jk_ajp12_worker.c
       gcc -DAIX=1 -U__STR__ -DAIX_BIND_PROCESSOR -DUSE_HSREGEX
       -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED
       -I/usr/local/apache/include -I
       ../common/ -I/usr/java130/include -I/usr/java130/include
       -DUSE_APACHE_MD5  -c ../common//jk_connect.c
       gcc -DAIX=1 -U__STR__ -DAIX_BIND_PROCESSOR -DUSE_HSREGEX
       -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED
       -I/usr/local/apache/include -I
       ../common/ -I/usr/java130/include -I/usr/java130/include
       -DUSE_APACHE_MD5  -c ../common//jk_msg_buff.c
       gcc -DAIX=1 -U__STR__ -DAIX_BIND_PROCESSOR -DUSE_HSREGEX
       -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED
       -I/usr/local/apache/include -I
       ../common/ -I/usr/java130/include -I/usr/java130/include
       -DUSE_APACHE_MD5  -c ../common//jk_util.c
       gcc -DAIX=1 -U__STR__ -DAIX_BIND_PROCESSOR -DUSE_HSREGEX
       -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED
       -I/usr/local/apache/include -I
       ../common/ -I/usr/java130/include -I/usr/java130/include
       -DUSE_APACHE_MD5  -c ../common//jk_ajp13.c
       gcc -DAIX=1 -U__STR__ -DAIX_BIND_PROCESSOR -DUSE_HSREGEX
       -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED
       -I/usr/local/apache/include -I
       ../common/ -I/usr/java130/include -I/usr/java130/include
       -DUSE_APACHE_MD5  -c ../common//jk_jni_worker.c
       gcc -DAIX=1 -U__STR__ -DAIX_BIND_PROCESSOR -DUSE_HSREGEX
       -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED
       -I/usr/local/apache/include -I
       ../common/ -I/usr/java130/include -I/usr/java130/include
       -DUSE_APACHE_MD5  -c ../common//jk_pool.c
       gcc -DAIX=1 -U__STR__ -DAIX_BIND_PROCESSOR -DUSE_HSREGEX
       -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED
       -I/usr/local/apache/include -I
       ../common/ -I/usr/java130/include -I/usr/java130/include
       -DUSE_APACHE_MD5  -c ../common//jk_worker.c
       gcc -DAIX=1 -U__STR__ -DAIX_BIND_PROCESSOR -DUSE_HSREGEX
       -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED
       -I/usr/local/apache/include -I
       ../common/ -I/usr/java130/include -I/usr/java130/include
       -DUSE_APACHE_MD5  -c ../common//jk_ajp13_worker.c
       gcc -DAIX=1 -U__STR__ -DAIX_BIND_PROCESSOR -DUSE_HSREGEX
       -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED
       -I/usr/local/apache/include -I
       ../common/ -I/usr/java130/include -I/usr/java130/include
       -DUSE_APACHE_MD5  -c ../common//jk_lb_worker.c
       gcc -DAIX=1 -U__STR__ -DAIX_BIND_PROCESSOR -DUSE_HSREGEX
       -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED
       -I/usr/local/apache/include -I
       ../common/ -I/usr/java130/include -I/usr/java130/include
       -DUSE_APACHE_MD5  -c ../common//jk_sockbuf.c
       gcc -DAIX=1 -U__STR__ -DAIX_BIND_PROCESSOR -DUSE_HSREGEX
       -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED
       -I/usr/local/apache/include -I
       ../common/ -I/usr/java130/include -I/usr/java130/include
       -DUSE_APACHE_MD5  -c ../common//jk_map.c
       gcc -DAIX=1 -U__STR__ -DAIX_BIND_PROCESSOR -DUSE_HSREGEX
       -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED
       -I/usr/local/apache/include -I
       ../common/ -I/usr/java130/include -I/usr/java130/include
       -DUSE_APACHE_MD5  -c ../common//jk_uri_worker_map.c
       gcc -DAIX=1 -U__STR__ -DAIX_BIND_PROCESSOR -DUSE_HSREGEX
       -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED
       -I/usr/local/apache/include -I
       ../common/ -I/usr/java130/include -I/usr/java130/include
       -DUSE_APACHE_MD5  -c ../common//jk_ajp14.c
       gcc -DAIX=1 -U__STR__ -DAIX_BIND_PROCESSOR -DUSE_HSREGEX
       -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED
       -I/usr/local/apache/include -I
       ../common/ -I/usr/java130/include -I/usr/java130/include
       -DUSE_APACHE_MD5  -c ../common//jk_ajp14_worker.c
       gcc -DAIX=1 -U__STR__ -DAIX_BIND_PROCESSOR -DUSE_HSREGEX
       -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED
       -I/usr/local/apache/include -I
       ../common/ -I/usr/java130/include -I/usr/java130/include
       -DUSE_APACHE_MD5  -c ../common//jk_md5.c
       gcc -DAIX=1 -U__STR__ -DAIX_BIND_PROCESSOR -DUSE_HSREGEX
       -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED
       -I/usr/local/apache/include -I
       ../common/ -I/usr/java130/include -I/usr/java130/include
       -DUSE_APACHE_MD5  -c ../common//jk_context.c
       gcc -DAIX=1 -U__STR__ -DAIX_BIND_PROCESSOR -DUSE_HSREGEX
       -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED
       -I/usr/local/apache/include -I
       ../common/ -I/usr/java130/include -I/usr/java130/include
       -DUSE_APACHE_MD5  -c ../common//jk_ajp_common.c
       -o mod_jk.so jk_ajp_common.o jk_context.o jk_md5.o
       jk_ajp14_worker.o jk_ajp14.o jk_uri_worker_map.o jk_map.o
       jk_sockbuf.o jk_lb_worke
r.o jk_ajp13_worker.o jk_worker.o jk_pool.o jk_jni_worker.o jk_ajp13.o
  jk_util.o jk_msg_buff.o jk_connect.o jk_ajp12_worker.o mod_jk.o
  -bE:mod_jk.exp
  apxs:Break: Command failed with rc=16777215
  make: 1254-004 The error code from the last command is 1.

------------------------------------------------------

Would appreciate if you could look into this and help me out in this.

THANKS again!

Manoj G. Kithany
manojkith...@yahoo.com

--
Posted via http://dbforums.com

 
 
 

1. mod_jk for IBM-AIX System (Apache-Tomcat Integration)

Hi Experts,

Greetings!

I am having problems in Integrating Apache (1.3) with Tomcat (4.0.3).
I am using IBM AIX (ver 5.0) Unix System. We are also using JBoss.

It seems that I need to download mod_jk.so file - but I could'nt come
accross this file for IBM AIX System. I tried to follow the steps
which is mentioned at
http://www.cs.cardiff.ac.uk/applications/tomcat/mod_jk-howto.html

I tried to execute "build-hpux-cc.sh" as was mentioned in your above
article - but get following ERRORS:
Error: Unable to locate Java libraries. Verify that
JAVA_HOME is set correctly in this script.

I have set my JAVA_HOME to /usr/java130 where my java is stored but
still get the error.

I have been doing this for a week - but in vain - and so would really
appreciate and be very THHANKFUL to you if you could guide me in
solving this problem.

Does anyone of you know if where to get this file from and how to
Integrate these application. I tried to serach the net also but in
vain!

Any related information would be appreciated.

THANKS A MILLIONS !!!

Manoj G. Kithany

2. Network problem with my machine...

3. tomcat + apache (mod_jk) on aix 5.1

4. state D in 2.5.67-ac2 and 2.5.68-mm1

5. mod_jk for Apache-Tomcat Integration on AIX

6. Can't login as root - corruption in /etc/passwd

7. HELP!!! with aix 5.1 mod_jk (tomcat-apache)

8. Ftp to linux server

9. tomcat + virtual hosts + multiple tomcat jvm + mod_jk problem

10. TOMCAT 3.2.3 on Linux with apache mod_jk

11. how can mod_jk read web.xml in apache-tomcat way?

12. Apache, Tomcat and mod_jk

13. Where is mod_jk for Tomcat 4.03 (Apache 1.3.22)