Mantis - Resin
Viewing Issue Advanced Details
3442 major always 04-10-09 14:08 05-27-09 11:53
nam  
ferg  
normal  
closed 4.0.0  
fixed  
none    
none 4.0.1  
0003442: JNI: file not found/accessible
(rep by koreth)

Problem goes away by removing .so files.

com.caucho.server.cache.Cache.init(): Cache path '/resin/cache' must be a directory.

171: -->
172: <resin:if test="${resin.professional}">
173: <cache path="cache" memory-size="64M">
174: <!-- Vary header rewriting for IE -->
175: <rewrite-vary-as-private/>

Notes
(0004014)
pablorg   
05-13-09 23:03   
I have the same problem. What so's need to be removed to fix this?
(0004015)
nam   
05-13-09 23:25   
You'll need to disable JNI by removing the .so files in the directory libexec/.
(0004016)
pablorg   
05-13-09 23:39   
I just noticed that i dont have the so's b/c evidently there's a compilation error (i ran ./configure --disable-jni):

jni_vfs.c: In function ‚Java_com_caucho_server_port_JniSelectManager_closeNative‚:
jni_vfs.c:1896: warning: ignoring return value of ‚write‚, declared with attribute warn_unused_result
jni_vfs.c: In function ‚Java_com_caucho_vfs_JniFilePathImpl_nativeChangeOwner‚:
jni_vfs.c:2479: warning: ignoring return value of ‚chown‚, declared with attribute warn_unused_result
In function ‚open‚,
    inlined from ‚Java_com_caucho_vfs_JniRandomAccessFile_nativeOpen‚ at jni_vfs.c:209:
/usr/include/bits/fcntl2.h:51: error: call to ‚__open_missing_mode‚ declared with attribute error: open with O_CREAT in second argument needs 3 arguments
make[2]: *** [jni_vfs.o] Error 1