tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nicolas>
Subject Re: JK2
Date Sat, 12 Jul 2003 02:15:36 GMT
Simon Pabst wrote:

> Thats a compile problem when you compile mod_jk2 --with-jni,
> follow 
> then everything should work fine.
> (you only need jni if you want to use fast unix sockets or Tomcat 
> inprocess with Apache)
> The important thing to do is to edit jk/native2/server/apache2/Makefile
> after you did configure and modify JK_LDFLAGS so the proper libraries 
> are linked:
> JK_LDFLAGS=-L${APACHE2_LIBDIR} -lcrypt -lapr-0 -laprutil-0 -lgdbm 
> -lexpat -ldb @PCRE_LIBS@

not working but i think were getting closer ;-) tough walking from one 
bug to another

i compilied the module exactly as discribed in redhat documentation 
(including the -laprutil-0 modification).
but when i try to start tomcat following error follows:

Using CATALINA_BASE:   /opt/apache/jakarta-tomcat-4.1.24
Using CATALINA_HOME:   /opt/apache/jakarta-tomcat-4.1.24
Using CATALINA_TMPDIR: /opt/apache/jakarta-tomcat-4.1.24/temp
Using JAVA_HOME:       /opt/j2sdk
Jul 12, 2003 2:12:54 AM org.apache.commons.modeler.Registry loadRegistry
INFO: Loading registry information
Jul 12, 2003 2:12:54 AM org.apache.commons.modeler.Registry getRegistry
INFO: Creating new Registry instance
Jul 12, 2003 2:12:55 AM org.apache.commons.modeler.Registry getServer
INFO: Creating MBeanServer
Jul 12, 2003 2:12:56 AM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on port 8080
Starting service Tomcat-Standalone
Apache Tomcat/4.1.24

Jul 12, 2003 2:13:01 AM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on port 8080
Jul 12, 2003 2:13:02 AM org.apache.jk.server.JkMain start
INFO: APR not loaded, disabling jni components: 
Exception during startup processing
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.lang.reflect.Method.invoke(
        at org.apache.catalina.startup.Bootstrap.main(
Caused by: java.lang.UnsatisfiedLinkError: getJkEnv
        at org.apache.jk.apr.AprImpl.getJkEnv(Native Method)
        at org.apache.jk.common.JniHandler.initNative(
        at org.apache.jk.common.ChannelUn.init(
        at org.apache.jk.server.JkMain.start(
        at org.apache.catalina.startup.Catalina.start(
        at org.apache.catalina.startup.Catalina.execute(
        at org.apache.catalina.startup.Catalina.process(
        ... 5 more

i checked out the net and it seems like a bug
 >    /------- Additional Comments From Costin Manolache 
<> 2003-03-14 01:14 -------/

>	Works for me. I build with ant - didn't try the other build.
>	Make sure is in LD_LIBRARY_PATH and 
>	 ldd 
>	lists as a dependency.
i checked it => /lib/ (0x4002b000) => /opt/apache/httpd/lib/ (0x40058000) => /opt/apache/httpd/lib/ 
(0x40077000) => /usr/lib/ (0x4008d000) => /usr/lib/ (0x40093000) => /usr/lib/ (0x400b4000) => /lib/ (0x40166000)
        /lib/ => /lib/ (0x80000000)

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message