tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nicolas ...@bregenzer.org>
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 
> http://nagoya.apache.org/wiki/apachewiki.cgi?TomcatFAQ/ModJK2OnRedHat
> 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: java.io.IOException: 
initialize
Exception during startup processing
java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
Caused by: java.lang.UnsatisfiedLinkError: getJkEnv
        at org.apache.jk.apr.AprImpl.getJkEnv(Native Method)
        at org.apache.jk.common.JniHandler.initNative(JniHandler.java:132)
        at org.apache.jk.common.ChannelUn.init(ChannelUn.java:114)
        at org.apache.jk.server.JkMain.start(JkMain.java:351)
        at 
org.apache.jk.server.JkCoyoteHandler.start(JkCoyoteHandler.java:169)
        at 
org.apache.coyote.tomcat4.CoyoteConnector.start(CoyoteConnector.java:1141)
        at 
org.apache.catalina.core.StandardService.start(StandardService.java:506)
        at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
        at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
        at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
        ... 5 more


i checked out the net and it seems like a bug

http://www.mail-archive.com/tomcat-dev@jakarta.apache.org/msg43639.html
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17762
 >    /------- Additional Comments From Costin Manolache 
<mailto:cmanolache@yahoo.com> 2003-03-14 01:14 -------/

>	Works for me. I build with ant - didn't try the other build.
>
>	Make sure libapr.so is in LD_LIBRARY_PATH and 
>	 ldd libjkjni.so 
>	lists apr.so as a dependency.
	
i checked it

        libcrypt.so.1 => /lib/libcrypt.so.1 (0x4002b000)
        libapr-0.so.0 => /opt/apache/httpd/lib/libapr-0.so.0 (0x40058000)
        libaprutil-0.so.0 => /opt/apache/httpd/lib/libaprutil-0.so.0 
(0x40077000)
        libgdbm.so.3 => /usr/lib/libgdbm.so.3 (0x4008d000)
        libexpat.so.0 => /usr/lib/libexpat.so.0 (0x40093000)
        libdb-4.1.so => /usr/lib/libdb-4.1.so (0x400b4000)
        libc.so.6 => /lib/libc.so.6 (0x40166000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)





---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message