tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gal Shachor <>
Subject Re: compile of for apache1.3
Date Tue, 30 May 2000 14:57:56 GMT

> tomcat wrote:
> Has anyone had success with the latest native source (as of this
> morning 5-29-00) in compiling for apache1.3 (linux)?
> I am getting errors related to libraries referencing jni, etc.
> Commenting out the various files only compounds the errors.
> If anybody has success please share your makefile.
> Thanks.

Ok here is how it goes...

The compile errors are from the jni worker, this probably means that the
jni headers are not in the include path. But you do not have to put them
for apache1.3 because it cannot run tomcat in-process (the jni way).

Instead here is what you need to do:
1. Edit jakarta-tomcat/src/native/jk/jk_worker_list.h and comment out
the lines
   that add the JNI worker:
   Meaning line 38 #include "jk_jni_worker.h" -> /* #include
"jk_jni_worker.h" */
           line 113 { JK_JNI_WORKER_NAME, jni_worker_factory}, -> /* {
JK_JNI_WORKER_NAME, jni_worker_factory},*/
2. Use apxs (as available with apache) to build the module. 
   Cd to jakarta-tomcat/src/native/apache1.3
   run apxs -I ../jk/  -o -c *.c \
       ../jk/jk_msg_buff.c ../jk/jk_ajp12_worker.c ../jk/jk_ajp13.c \
       ../jk/jk_ajp13_worker.c ../jk/jk_connect.c ../jk/jk_lb_worker.c \
       ../jk/jk_map.c ../jk/jk_pool.c ../jk/jk_sockbuf.c \
       ../jk/jk_uri_worker_map.c ../jk/jk_util.c ../jk/jk_worker.c

You will now have which is the apache module that you will
need to add.

I am also working on some quick and dirty how-to.

The build for Apache2.0 is not done yet (we have a Makefile in place for
but I would rather wait for the Apache2 release before developing a home

	Gal Shachor

View raw message