PDA

View Full Version : Explanation of libresin_os.so


covaburaz
05-24-2010, 11:25 AM
Hi, can anyone explaine a little purpose of this file?
Recently I had a problem on my servers with resin 4.0.6 and in startup log I received this message always:

"Found library 'resin_os' as '/resinSrv/libexec64/libresin_os.so', but the load failed. The JVM exception was: java.lang.UnsatisfiedLinkError: no resin_os in java.library.path"

The problem was with root and myuser privileges, but I just want to know more about this file.

Tnx in advance

emil
05-24-2010, 05:17 PM
Hi,

libresin_os.so contains some JNI code for things like dropping permissions after binding to a port. The message you received sounds a little odd - any chance you have LD_LIBRARY_PATH set or that the library isn't built?

Thanks,
Emil

covaburaz
05-26-2010, 11:56 AM
Hi, as I said, problem was with the privileges. As a webmaster(without root privileges) I was able to start resin on port 80 (SUID). Therefore, when resin starts, root user can't load libresin_os.so and I was receiving this exception. Problem solved with one symbolic link in /usr/lib64/libresin_os.so.