PDA

View Full Version : JNI Socket support requires Resin Professional.


brianpmullaney
06-14-2010, 08:11 PM
I'm trying to install Resin 4.0.7 on a fresh CentOS 5.5 system. I grabbed the resin-4.0.7.tar.gz (non-pro) file. Just un-tarring it and trying to run it I get the following message:

Resin/4.0.7 can't start -server '' for watchdog at 127.0.0.1:6600.
<user-name> requires compiled JNI.
Unable to find native library 'resin_os' for com.caucho.bootjni.JniProcess. Resin expects to find this library in:
(Unix) /usr/local/resin-4.0.7/libexec/libresin_os.so
On Unix, run ./configure; make; make install.

The JVM exception was: java.lang.UnsatisfiedLinkError: no resin_os in java.library.path


So, I configure/make/make install and everything seems to go fine, but when I go to run it, I'm getting the following message:
Jun 14, 2010 10:49:18 AM com.caucho.boot.WatchdogChildProcess createProcess
WARNING: java.io.IOException: JNI Socket support requires Resin Professional.
java.io.IOException: JNI Socket support requires Resin Professional.
at com.caucho.vfs.QJniServerSocket.createJNI(QJniServ erSocket.java:159)
at com.caucho.network.listen.SocketLinkListener.bindF orWatchdog(SocketLinkListener.java:1067)
at com.caucho.boot.WatchdogChildProcess.createProcess (WatchdogChildProcess.java:354)
at com.caucho.boot.WatchdogChildProcess.run(WatchdogC hildProcess.java:126)
at com.caucho.boot.WatchdogChildTask.run(WatchdogChil dTask.java:174)
at com.caucho.util.ThreadPool$PoolThread.runTasks(Thr eadPool.java:901)
at com.caucho.util.ThreadPool$PoolThread.run(ThreadPo ol.java:866)


Now, I'm not even running the "pro" version of the app and haven't enabled anything in the config file (haven't touched it at all actually).

Does anyone have any idea why this could be happening?

emil
06-14-2010, 08:34 PM
Hi,

You can safely ignore the message if you're not intending to use Pro features. It's there to help our Pro customers debug problems with JNI.

Best,
Emil

brianpmullaney
06-14-2010, 09:30 PM
Thanks.

So I start it up and now every 5 seconds I have the following error:


[2010/06/14 12:06:43.041] java.lang.IllegalArgumentException: www-data is an unknown user
at com.caucho.bootjni.JniProcess.exec(Native Method)
at com.caucho.bootjni.JniProcess.<init>(JniProcess.java:91)
at com.caucho.bootjni.JniProcess.create(JniProcess.ja va:124)
at com.caucho.bootjni.JniBoot.exec(JniBoot.java:69)
at com.caucho.boot.WatchdogChildProcess.createProcess (WatchdogChildProcess.java:378)
at com.caucho.boot.WatchdogChildProcess.run(WatchdogC hildProcess.java:126)
at com.caucho.boot.WatchdogChildTask.run(WatchdogChil dTask.java:174)
at com.caucho.util.ThreadPool$PoolThread.runTasks(Thr eadPool.java:901)
at com.caucho.util.ThreadPool$PoolThread.run(ThreadPo ol.java:866)


It's over and over again, every 5 seconds, in /var/log/resin/watchdog-manager.log and the server doesn't appear to be starting up all the way (nothing listening on port 8080)

emil
06-15-2010, 11:54 PM
Hi,

Remove or change the <user-name> and <group-name> in your resin.xml. Our default non-privileged user for Resin is "www-data" and if you don't have that user, obviously we can't use it. Another option would be to start Resin as the user you want directly instead of root since you're using a non-privileged port (8080) anyway.

Best,
Emil