tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Welch, Ronald P" <ronald.p.we...@BAESYSTEMS.COM>
Subject RE: Building/using JK2 - linking problem
Date Wed, 10 Sep 2003 13:00:35 GMT
Nikola,

I had similar problems with loading shared libraries
until I recompiled jk2 after configuring it with the
"./configure --with-apxs=/some/path/to/apache2/bin/apxs"
command suggested in John Turner's "Solaris 8 + Tomcat
HOWTO", which is, BTW, and excellent resource. I have
been able to get everything working on Solaris except
getting Apache to start Tomcat in process (I am stumped
on that one).

Ron
----------=-=-=-=-=-=-=-=-========oOo========-=-=-=-=-=-=-=-=----------
mailto:Ronald.P.Welch@baesystems.com                Phone:(607)770-3701
BAE SYSTEMS Controls            600 Main St Johnson City, NY 13790-1888
----------=-=-=-=-=-=-=-=-===================-=-=-=-=-=-=-=-=----------


-----Original Message-----
From: Nikola Milutinovic [mailto:Nikola.Milutinovic@ev.co.yu] 
Sent: Wednesday, September 10, 2003 8:49 AM
To: Tomcat Users List
Subject: Building/using JK2 - linking problem


Hi all.

I have built mod_jk2.so and jkjni.so from the latest
tomcat-connectors-jk2-2.0.2. This is my jk2.properties:

handler.list=apr,channelUnix,request
channelUnix.file = /var/tomcat4/work/jk2.socket
shm.file         = /var/tomcat4/work/jk2.shm
apr.NativeSo     = /usr/lib/apache2-extramodules-2.0.44/jkjni.so

My problem is that when I try to start Tomcat I get errors in catalina.out:

Sep 10, 2003 2:40:44 PM org.apache.jk.server.JkMain start
INFO:
  APR not loaded, disabling jni components:
  java.io.IOException:
    /usr/lib/apache2-extramodules-2.0.44/jkjni.so:
      /usr/lib/apache2-extramodules-2.0.44/jkjni.so:
        undefined symbol: apr_md5_final

I have built jkjni.so with shared libraries. What should I do now?

- Specify libapr-0.so as another "apr.NativeSo"
- Relink jkjni.so to statically link other libraries (that should be
possible, right?)
- Leave out "apr" from jk2.config (I think I need it for AF_UNIX socket!)

Thanks for any insight.

Nix.

Mime
View raw message