Mantis - Resin
Viewing Issue Advanced Details
915 minor always 02-03-06 04:50 04-10-06 15:08
teemupo  
ferg  
normal  
closed 3.0.17  
fixed  
none    
none 3.0.19  
0000915: Socket JNI library is not available
We have compiled Resin pro 3.0.17 with the following parameters:

./configure --prefix=/usr/local/resin-pro-3.0.17 --enable-jni --disable-ssl --enable-linux-smp --with-java-home=/usr/local/j2sdk1.4.2_08


The installation goes through without errors and it seems to find JNI without problems.

Part of configuration output:
...
checking for JNI in /usr/local/j2sdk1.4.2_08/include/linux ... found
...

Part of make output:
...
make[2]: Entering directory `/home/teemupo/resin-pro-3.0.17/modules/c/src/resin_os'
gcc -g -O2 -DPOLL -DB64 -m64 -fPIC -DRESIN_HOME=\"/home/teemupo/resin-pro-3.0.17\" -I/usr/local/j2sdk1.4.2_08/include -I/usr/local/j2sdk1.4.2_08/include/linux -I../common -DCPU=\"x86_64\" -DOS= -c -o jni_os.o jni_os.c
gcc -g -O2 -DPOLL -DB64 -m64 -fPIC -DRESIN_HOME=\"/home/teemupo/resin-pro-3.0.17\" -I/usr/local/j2sdk1.4.2_08/include -I/usr/local/j2sdk1.4.2_08/include/linux -I../common -DCPU=\"x86_64\" -DOS= -c -o jni_jvmti.o jni_jvmti.c
gcc -g -O2 -DPOLL -DB64 -m64 -fPIC -DRESIN_HOME=\"/home/teemupo/resin-pro-3.0.17\" -I/usr/local/j2sdk1.4.2_08/include -I/usr/local/j2sdk1.4.2_08/include/linux -I../common -DCPU=\"x86_64\" -DOS= -c -o jni_jvmdi.o jni_jvmdi.c
/usr/bin/ld -shared -fPIC -o libresin_os.so jni_os.o jni_jvmti.o jni_jvmdi.o -lpthread
...


But we still get the following complain into stdout.log when starting the server:

Resin-3.0.17 (built Thu, 22 Dec 2005 12:11:34 PST)
Copyright(c) 1998-2004 Caucho Technology. All rights reserved.

Starting Resin on Fri, 03 Feb 2006 12:36:09 +0100 (CET)

[12:36:10.969] Proxy Cache disk-size=1024M memory-size=8M
[12:36:11.066] Server[fr2] starting
[12:36:11.090] Socket JNI library is not available.
[12:36:11.090] Resin will still run but performance will be slower.
[12:36:11.090] To compile the Socket JNI library on Unix, use ./configure; make; make install.


Here are some details about the environment:

$ uname -a
Linux deih30208038-25 2.6.9-22.0.1.ELsmp 0000001 SMP Tue Oct 18 18:39:02 EDT 2005 x86_64 x86_64 x86_64 GNU/Linux

$ cat /etc/redhat-release
Red Hat Enterprise Linux ES release 4 (Nahant Update 2)

Notes
(0000880)
anonymous   
02-13-06 11:21   
Hi,
I am new to Linux/ Resin. How did you do:
./configure --prefix=/usr/local/resin-pro-3.0.17 --enable-jni --disable-ssl --enable-linux-smp --with-java-home=/usr/local/j2sdk1.4.2_08

Could you explain little more on that.
Thanks,

(0000882)
koreth   
02-15-06 10:08   
I have similar problems on Solaris 10 on AMD64. I turned the debug level up to "finest" and it looks like a problem with shared libraries -- I get "libresin.so: wrong ELF class: ELFCLASS64" if I run Resin using the standard start script, or "libresin.so: ld.so.1: internal: message buffer overflow" if I tell the start script to run the JVM in 64-bit mode.