Mantis - Resin
Viewing Issue Advanced Details
3521 major always 05-18-09 15:32 08-24-09 17:48
norlab  
ferg  
normal  
closed 3.1.8  
fixed  
none    
none 4.0.2  
0003521: JNI not found with <user-name>
During startup of Resin, unable to initiate user <user-name> declaration becuase it gives following error message:

com.caucho.config.ConfigException: <user-name> requires Resin Professional and compiled JNI. Check the $RESIN_HOME/libexec or $RESIN_HOME/libexec64 directory for libresin.so and check for a valid license in $RESIN_HOME/licenses.

We have a license & $RESIN_HOME/libexec64/libresin.so exists in this directory.

Notes
(0004025)
norlab   
05-18-09 15:33   
Running Solaris 10
(0004026)
norlab   
05-18-09 15:43   
On Startup following error:

Socket JNI library is not available.
[13:48:00.596] {main}Resin will still run but performance will be slower.
[13:48:00.596] {main}To compile the Socket JNI library on Unix, use ./configure; make; make install.

Config Log shows :

JAVA_HOME='/usr/jdk/jdk1.5.0_01'
JNI='yes'
JNI_INCLUDE='-I/usr/jdk/jdk1.5.0_01/include - I/usr/jdk/jdk1.5.0_01/include/solaris'
(0004100)
norlab   
07-23-09 16:25   
OK to close...found resolution

Needed to start using -J-d64 to specify 64 bit, and also specified the library path in the .conf file.

/resin/bin/httpd.sh -conf /resin/www.domain.com.conf -J-d64 -server www.domain.com start

<jvm-arg>-Djava.library.path=/usr/local/resin/libexec64</jvm-arg>