The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found

ERROR:
The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found

Testes on CentOS 6.4 x64 with Tomcat 6

Instalar o APR,
——————-

Install pre-req:
yum install apr apr-devel openssl-devel gcc

Download tomcat-native-1.1.30-src.tar.gz:
cd /tmp
wget https://archive.apache.org/dist/tomcat/tomcat-connectors/native/1.1.30/source/tomcat-native-1.1.30-src.tar.gz
cd /tmp/tomcat-native-1.1.30-src/jni/native/
./configure –with-apr=/usr/bin/apr-1-config –with-java-home=/usr/lib/jvm/java-openjdk –prefix=/usr/lib64
make && make install

cd /usr/lib64/lib
ln -s lib/libtcnative-1.so.0.1.30 libtcnative-1.so
ln -s lib/libtcnative-1.so.0.1.30 libtcnative-1.so.0

Verify catalina.out log:
INFO: Loaded APR based Apache Tomcat Native library 1.1.30.

Leave a Reply

Your email address will not be published. Required fields are marked *

VAMOVE *

*