Hi there!
I'm trying to get tomcat to use the native library. After lots of searching
on the web I finaly got it working at my workstation. But following the
same procedure on the server did not go so well.
I'm still getting the INFO message in catalina.out:
Mar 29, 2006 11:48:46 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:
/usr/local/apr/lib
The content of the directory is as follows:
>ls -l /usr/local/apr/lib
-rw-r--r-- 1 root root 7656 mar 29 11:38 apr.exp
-rw-r--r-- 1 root root 1184410 mar 29 11:38 libapr-1.a
-rwxr-xr-x 1 root root 847 mar 29 11:38 libapr-1.la
lrwxrwxrwx 1 root root 17 mar 29 11:38 libapr-1.so ->
libapr-1.so.0.2.6
lrwxrwxrwx 1 root root 17 mar 29 11:38 libapr-1.so.0 ->
libapr-1.so.0.2.6
-rwxr-xr-x 1 root root 651502 mar 29 11:38 libapr-1.so.0.2.6
-rw-r--r-- 1 root root 1387042 mar 29 11:46 libtcnative-1.a
-rwxr-xr-x 1 root root 928 mar 29 11:46 libtcnative-1.la
lrwxrwxrwx 1 root root 22 mar 29 11:46 libtcnative-1.so ->
libtcnative-1.so.0.2.6
lrwxrwxrwx 1 root root 22 mar 29 11:46 libtcnative-1.so.0 ->
libtcnative-1.so.0.2.6
-rwxr-xr-x 1 root root 798841 mar 29 11:46 libtcnative-1.so.0.2.6
drwxr-xr-x 2 root root 4096 mar 29 11:46 pkgconfig
Since I've got this to work on my workstation, I suspect there might be
some other issues
using x86_64.
The procedure I've been following to generate is:
cd /usr/local
downloading apr-1.2.6.tar.gz
tar zxf apr-1.2.6.tar.gz
rm apr-1.2.6.tar.gz
ln -s apr-1.2.6 apr
cd apr
./configure && make && make install
cd /var/tomcat/bin
downloading tomcat-native-1.1.2.tar.gz
tar zxf tomcat-native-1.1.2.tar.gz
cd tomcat-native-1.1.2/jni/native
./configure --with-apr=/usr/local/apr && make && make install
I also made a file setenv.sh in the bin directory of tomcat,
containing:
CATALINA_OPTS="$CATALINA_OPTS -Djava.library.path=/usr/local/apr/lib"
So I'm a bit unsure on what to do next to get the native library up and
running with tomcat on the server. Any sugestions on to do next?
If needed, the server can be isolated for further testing.
Best regards
Dag Bjerkeli
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]