-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Nikolay,
On 1/19/2010 9:59 AM, Nikolay Diulgerov wrote: > I followed this instruction (http://tomcat.apache.org/native-doc/), > installed all the required packages for the compilation of TCNative > (1.1.19), > > The configuration, compilation and installation went OK. Great! > Now in my $CATALINA_HOME/lib folder I have Where does CATALINA_HOME point? > LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$CATALINA_HOME/lib > export LD_LIBRARY_PATH That looks good. > But when I start tomcat, it seems tcnative library cannot be found (so > not loaded). > > Jan 19, 2010 9:54:13 AM org.apache.catalina.core.AprLifecycleListener > lifecycleEvent > > INFO: The Apache Tomcat Native library which allows optimal performance > in production environments was not found on the java.library.path: > /appsrv/jdk1.6.0_16/jre/lib/amd64/server:/appsrv/jdk1.6.0_16/jre/lib/amd > 64:/appsrv/jdk1.6.0_16/jre/../lib/amd64::/appsrv/tomcat/lib:/usr/java/pa > ckages/lib/amd64:/lib:/usr/lib Is CATALINA_HOME set to "/appsrv/tomcat"? If so, then your LD_LIBRARY_PATH appears to be set correctly, which is good. > Now in my $CATALINA_HOME/lib folder I have > > drwxr-xr-x 3 niki niki 4096 2010-01-19 09:05 . > drwxr-xr-x 13 niki niki 4096 2010-01-19 08:43 .. > -rw-r--r-- 1 niki niki 1574152 2010-01-19 09:05 libtcnative-1.a > -rwxr-xr-x 1 niki niki 911 2010-01-19 09:05 libtcnative-1.la > lrwxrwxrwx 1 niki niki 23 2010-01-19 09:05 libtcnative-1.so -> > libtcnative-1.so.0.1.19 > lrwxrwxrwx 1 niki niki 23 2010-01-19 09:05 libtcnative-1.so.0 -> > libtcnative-1.so.0.1.19 > -rwxr-xr-x 1 niki niki 889278 2010-01-19 09:05 libtcnative-1.so.0.1.19 > drwxr-xr-x 2 niki niki 4096 2010-01-19 09:05 pkgconfig The file libtcnative-1.so should be all you need (well, plus the file to which it points). Everything you have done looks correct. I have a few possibilities I can think of: 1. Your tcnative library doesn't match the architecture of the JVM (i.e. JVM is 64-bit while library is 32-bit). You can find out what type the library is by doing: $ file $CATALINA_HOME/lib/libtcnative-1.so.0.1.19 2. You are running under a SecurityManager which does not permit you to load that native library from that location. Are you using a SecurityManager? 3. Your file paths are incorrect. You didn't say explicitly what CATALINA_HOME was, but I suspect everything is in order. Hope that helps, - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAktWALUACgkQ9CaO5/Lv0PCwiwCgplfaRNcJeA/wPbt79YJ8/azP SJ8An0jK1zK/5UjC72COJYD0g32c5YpO =Z2Hj -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org