mod_jk for tomcat 4.1.18 and Aix5.1

mod_jk for tomcat 4.1.18 and Aix5.1

Post by Formaux Mar » Tue, 18 Feb 2003 23:52:25



I'm still unable to get the 'mod_jk.so' file ...
Compiling under aix 5.1, with these tools :
        gcc version 2.9-aix51-020209
        libtool 1.4.3
        make 3.80 (GNU Make)

and the source file, jakarta-tomcat-connectors-jk-1.2.2-src.tar,
has been untared with tar (GNU tar) 1.13 ..

Using ./buildconf, then
./configure --with-apxs=/usr/local/apache1.3.27/bin/apxs \
    --with-java-home=/usr/java14

The end of the result is (sorry for the lines too long) :

...
Making all in common
make[1]: Entering directory
`/tmpapache/jakarta-tomcat-connectors-4.1.18-src/jk/native/common'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory
`/tmpapache/jakarta-tomcat-connectors-4.1.18-src/jk/native/common'
Making all in apache-1.3
make[1]: Entering directory
`/tmpapache/jakarta-tomcat-connectors-4.1.18-src/jk/native/apache-1.3'
/usr/local/bin/libtool --mode=install cp mod_jk.la `pwd`/mod_jk.so
cp .libs/mod_jk.a
/tmpapache/jakarta-tomcat-connectors-4.1.18-src/jk/native/apache-1.3/mod_jk.a
cp .libs/mod_jk.lai
/tmpapache/jakarta-tomcat-connectors-4.1.18-src/jk/native/apache-1.3/mod_jk.la
cp .libs/mod_jk.a
/tmpapache/jakarta-tomcat-connectors-4.1.18-src/jk/native/apache-1.3/mod_jk.a
ranlib
/tmpapache/jakarta-tomcat-connectors-4.1.18-src/jk/native/apache-1.3/mod_jk.a
chmod 644
/tmpapache/jakarta-tomcat-connectors-4.1.18-src/jk/native/apache-1.3/mod_jk.a
libtool: install: warning: remember to run `libtool --finish
/usr/local/apache1.3.27/libexec'
make[1]: Leaving directory
`/tmpapache/jakarta-tomcat-connectors-4.1.18-src/jk/native/apache-1.3'

But mod_jk.so is not created in apache-1.3
In fact, it's not created at all, as find says it to me ...

What am I doing wrong ? Can someone help me ?
TIA

        M. Formaux

 
 
 

mod_jk for tomcat 4.1.18 and Aix5.1

Post by Jeff Trawic » Wed, 19 Feb 2003 03:14:19



> But mod_jk.so is not created in apache-1.3
> In fact, it's not created at all, as find says it to me ...

maybe it is called something else?  look for a .libs directory in the
mod_jk directory tree somewhere...   you just might find libmod_jk.so.0
or something similarly named which is a usable DSO

 
 
 

mod_jk for tomcat 4.1.18 and Aix5.1

Post by Formaux Mar » Wed, 19 Feb 2003 16:27:56


Jeff Trawick a crit :

Quote:

> maybe it is called something else?  look for a .libs directory in the
> mod_jk directory tree somewhere...   you just might find libmod_jk.so.0
> or something similarly named which is a usable DSO

Thank you for the response.

OK, I got a 'mod_jk.so.0' in the .libs directory ...
But when I copy it to (apache)/libexec and put
        LoadModule jk_module    libexec/mod_jk.so.0  and
        AddModule mod_jk.c
in httpd.conf, all it create is a coredump :-(
It says :
hermes:/usr/local/apache1.3.27/bin:root>./apachectl start
./apachectl[71]: 47868 Erreur de segmentation(coredump)
./apachectl start: httpd could not be started

Another idea ?

TIA

 
 
 

mod_jk for tomcat 4.1.18 and Aix5.1

Post by Jeff Trawic » Wed, 19 Feb 2003 23:00:32



> It says :
> hermes:/usr/local/apache1.3.27/bin:root>./apachectl start
> ./apachectl[71]: 47868 Erreur de segmentation(coredump)
> ./apachectl start: httpd could not be started

> Another idea ?

I'll try it now :(
 
 
 

mod_jk for tomcat 4.1.18 and Aix5.1

Post by Jeff Trawic » Thu, 20 Feb 2003 01:07:03



> OK, I got a 'mod_jk.so.0' in the .libs directory ...
> But when I copy it to (apache)/libexec and put
>    LoadModule jk_module    libexec/mod_jk.so.0  and
>    AddModule mod_jk.c
> in httpd.conf, all it create is a coredump :-(
> It says :
> hermes:/usr/local/apache1.3.27/bin:root>./apachectl start
> ./apachectl[71]: 47868 Erreur de segmentation(coredump)
> ./apachectl start: httpd could not be started

The DSO wasn't linked properly for AIX.  As such, it doesn't know where
to resolve Apache functions (ap_*).

I just put some very crude notes up at

http://www.apache.org/~trawick/tomcataix.html

that explain where to change the link so that the DSO knows how to find
Apache functions.

(Sorry for the formatting... it is a quick hack via OpenOffice export.)

As I mention at the end of the notes, if somebody can verify that it
actually works for something then I'll try to work with the people who
develop this code to get the build cleaned up (lots of compile warnings,
the need to specify httpd.exp in the build, etc.).

 
 
 

mod_jk for tomcat 4.1.18 and Aix5.1

Post by Formaux Mar » Thu, 20 Feb 2003 19:49:00


Jeff Trawick a crit :

Quote:

> The DSO wasn't linked properly for AIX.  As such, it doesn't know where
> to resolve Apache functions (ap_*).

> I just put some very crude notes up at
> http://www.apache.org/~trawick/tomcataix.html
> that explain where to change the link so that the DSO knows how to find
> Apache functions.

> (Sorry for the formatting... it is a quick hack via OpenOffice export.)

> As I mention at the end of the notes, if somebody can verify that it
> actually works for something then I'll try to work with the people who
> develop this code to get the build cleaned up (lots of compile warnings,
> the need to specify httpd.exp in the build, etc.).

I've got good news :-)
I followed your advices, and mod_jk.so.0 is now functionning !

some details :
* building apache 1.3.27
I did'nt got "ld: 0711-317 ERROR: Undefined symbol: .__fixsfsi"
maybe because i use AIX 5.1, or because i did'nt use OPTIM ??

* building mod_jk
I did'nt got "Waiting for jk_ajp12_worker.o.lock to be removed"
maybe because I use JDK1.4 ?

* 'making' mod_jk with modified Makefile
Got error messages with

${libexecdir} $^
I tried without the '\' after rpath, near the end, and all was OK.

I hope this will help for the future :-)
And thank you again.

 
 
 

mod_jk for tomcat 4.1.18 and Aix5.1

Post by Jeff Trawic » Thu, 20 Feb 2003 22:02:47



> Jeff Trawick a crit :

> I've got good news :-)
> I followed your advices, and mod_jk.so.0 is now functionning !

cool!

Quote:> some details :
> * building apache 1.3.27
> I did'nt got "ld: 0711-317 ERROR: Undefined symbol: .__fixsfsi"
> maybe because i use AIX 5.1, or because i did'nt use OPTIM ??

probably because you were using a different gcc build (which knew to
include libgcc.a in DSOs)?  I dunno

Quote:

> * building mod_jk
> I did'nt got "Waiting for jk_ajp12_worker.o.lock to be removed"
> maybe because I use JDK1.4 ?

oops, I got that one because I configured libtool with xlc instead of
gcc, and libtool needs to do a lock operation around compiling/renaming
using xlc, and libtool's lock mechanism is so freakin' busted

I'll add a comment to that effect in the doc

> * 'making' mod_jk with modified Makefile
> Got error messages with

> ${libexecdir} $^
> I tried without the '\' after rpath, near the end, and all was OK.

just a formatting problem on my part...  I'll fix that

Quote:> I hope this will help for the future :-)
> And thank you again.

By the way...  I was looking through the info on Tomcat connectors
yesterday in the hopes of identifying the currently-developed version
and making sure that builds cleanly on AIX (and forgetting the old stuff
:) ), and I really wasn't sure where the current code lived.

Is that something you can advise on?

 
 
 

mod_jk for tomcat 4.1.18 and Aix5.1

Post by Formaux Mar » Fri, 21 Feb 2003 16:28:35


Jeff Trawick a crit :

Quote:

> By the way...  I was looking through the info on Tomcat connectors
> yesterday in the hopes of identifying the currently-developed version
> and making sure that builds cleanly on AIX (and forgetting the old stuff
> :) ), and I really wasn't sure where the current code lived.

> Is that something you can advise on?

I don't understand clearly your question ... sorry for my english :-)
Are you looking for the most recent binaries of Tomcat connectors ?
For the most recent sources ? For tests of (good) compilation of
these ?
As a sort of 'Aix and unix newbie', i'm afraid i can't help a lot...
But I can try anyway :-)
 
 
 

mod_jk for tomcat 4.1.18 and Aix5.1

Post by Jeff Trawic » Sat, 22 Feb 2003 11:48:39



> Jeff Trawick a crit :

> >By the way...  I was looking through the info on Tomcat connectors
> >yesterday in the hopes of identifying the currently-developed version
> >and making sure that builds cleanly on AIX (and forgetting the old stuff
> >:) ), and I really wasn't sure where the current code lived.

> >Is that something you can advise on?

> I don't understand clearly your question ... sorry for my english :-)
> Are you looking for the most recent binaries of Tomcat connectors ?
> For the most recent sources ? For tests of (good) compilation of
> these ?

I saw that there is mod_jk, mod_jk2, and mod_webapp which serve as
connectors between Apache and Tomcat.  Is mod_jk2 the strategic one?  Is
mod_jk still updated as necessary?

(I should check out the relevant mailing lists and ask there.)

 
 
 

mod_jk for tomcat 4.1.18 and Aix5.1

Post by Formaux Mar » Sat, 22 Feb 2003 16:09:58


Jeff Trawick a crit :

Quote:> I saw that there is mod_jk, mod_jk2, and mod_webapp which serve as
> connectors between Apache and Tomcat.  Is mod_jk2 the strategic one?  Is
> mod_jk still updated as necessary?

> (I should check out the relevant mailing lists and ask there.)

maybe the following page :
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/connectors.html

is answering to your question ?
I hope so :-)

 
 
 

1. Jakarta-Tomcat 4.1.18 + FreeBSD + linux-sun-jdk14 won't start ...

When I try to start, using linux-sun-jdk14:

Using CATALINA_BASE:   /usr/local/jakarta-tomcat4.1
Using CATALINA_HOME:   /usr/local/jakarta-tomcat4.1
Using CATALINA_TMPDIR: /usr/local/jakarta-tomcat4.1/temp
Using JAVA_HOME:       /usr/local/linux-sun-jdk1.4.1
Using CLASSPATH:       /usr/local/linux-sun-jdk1.4.1/lib/tools.jar:/usr/local/jakarta-tomcat4.1/bin/bootstrap.jar

it fails, missing a Class:

Exception during startup processing
java.lang.ClassNotFoundException: org.apache.catalina.startup.Catalina
        at org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:992)
        at org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:857)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:176)

If I switch to using the native JDK:

Using CATALINA_BASE:   /usr/local/jakarta-tomcat4.1
Using CATALINA_HOME:   /usr/local/jakarta-tomcat4.1
Using CATALINA_TMPDIR: /usr/local/jakarta-tomcat4.1/temp
Using JAVA_HOME:       /usr/local/jdk1.3.1
Using CLASSPATH:       /usr/local/jdk1.3.1/lib/tools.jar:/usr/local/jakarta-tomcat4.1/bin/bootstrap.jar

it all starts beautifully:

[INFO] Http11Protocol - -Initializing Coyote HTTP/1.1 on port 8042
Starting service Tomcat-Standalone
Apache Tomcat/4.1.18
[INFO] Http11Protocol - -Starting Coyote HTTP/1.1 on port 8042
[INFO] ChannelSocket - -JK2: ajp13 listening on 0.0.0.0/0.0.0.0:8043
[INFO] JkMain - -Jk running ID=0 time=17/118  config=/usr/local/jakarta-tomcat4.1/conf/jk2.properties

I've tried using the linux-sun-jdk13, and get the same results as the
jdk14 one ... is there a something that I need to add to my CLASSPATH that
the linux version doesn't have?

Thanks ...


with "unsubscribe freebsd-java" in the body of the message

2. We have another WINNER

3. Specifying jdk for tomcat 4.1.18

4. Is there a good font viewer for X?

5. jakarta-tomcat 4.1.18 and freebsd 5.0 problems

6. nis and amd question

7. [Fwd: Re: Tomcat 4.1.18, Apache 1.3.27 and jk?]

8. Howto mirror a drive

9. Tomcat 4.1.18, Apache 1.3.27 and jk?

10. Specifying jdk for tomcat 4.1.18

11. X11 , AIX 4.3.3.0 , JAVA JDK 1.3.1 , TOMCAT 4.1.18 AND DYNAMIC JPEG

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

13. TOMCAT 3.2.3 on Linux with apache mod_jk