The APR based Apache Tomcat Native Library which allows optimal performance in production environments is not found on th E Java.library.path:/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
This is known by the code as an error caused by the lack of APR modules.
1. Install Apr
wget http://apache.mirror.phpchina.com/apr/apr-1.3.2.tar.gz tar zxvf apr-1.3.2.tar.gz cd apr-1.3.2 . Configure make make install
2. Installing Apr-util
wget http://apache.mirror.phpchina.com/apr/apr-util-1.3.2.tar.gz tar zxvf apr-util-1.3.2.tar.gz CD apr-util-1.3.2 ./configure--with-apr=/usr/local/apr make make and install
3. Installing tomcat-native
Installation packages already available in the Tomcat/bin directory
Cd/usr/local/tomcat/bin
Tar zxvf tomcat-native.tar.gz
CD tomcat-native-1.2.7-src/native
./configure--WITH-APR=/USR/LOCAL/APR--with-java-home=/usr/local/java
Make
--------------------------------------------------------------------------------------------------------------- --------------------------------
An installation error has occurred here
Checking for GCC option to accept ISO C89 ... none neededchecking for OpenSSL library ... using OpenSSL from/usr/lib and/u Sr/includechecking OpenSSL library version >= 1.0.2...Found openssl_version_number 0x10000003 (OpenSSL 1.0.0 29 Mar) Require Openssl_version_number 0x1000200f or greater (1.0.2) Configure:error:Your VERSION of OPENSSL is not comp Atible with this version of Tcnative
The version of OpenSSL is too low by mistake
Upgrade OpenSSL
View Upgrade Actions
--------------------------------------------------------------------------------------------------------------- --------------------------------
4. Setting environment variables for APR
Vi/etc/profile
Added later
Export Ld_library_path= $LD _library_path:/usr/local/apr/lib
Make settings effective
Source/etc/profile
The APR based Apache Tomcat Native Library Tomcat startup error