tomcat6 error log appears:Info: The APR based Apache Tomcat Native Library which allows optimal performance in production environments is not found O n the Java.library.path:/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
Solution:resolve by installing and configuring Apr. Tomcat Native allows Tomcat to use Apache's APR package to handle including file and network IO operations to improve performance. 1. Install: yum-y install openssl-devel 2. Download: apr-1.4.6.tar.gz, apr-util-1.4.1.tar.bz2, Tomcat-native-1.1.19-src.tar.gz (: http://archive.apache.org/dist/tomcat/tomcat-connectors/native/) 3. Installing the Apr:tar- XZF apr-1.4.6.tar.gz CD apr-1.4.6./configure && make && make install TAR-XJF apr-util-1.4.1.tar.bz2cd Apr -util-1.4.1
./configure--with-apr=/usr/local/apr && make && make install
Tar-xzf Tomcat-native-1.1.19-src.tar.gzcd/opt/tomcat-native-1.1.19-src/jni
./configure--with-apr=/usr/local/apr--with-java-home=/opt/jdk && make && make install
4. Set environment variables for Apr: Vi/etc/profileexport ld_library_path= $LD _library_path:/usr/local/apr/lib Save Exit Source/etc/profile Check the Catalina.out log again and find no more errors:
Information: An older version 1.1.19 of the APR based Apache Tomcat Native Library is installed , while Tomcat recommends a minimum version of 1.1.22
Error log: The APR based Apache Tomcat Native Library which allows optimal performance in production environments is not Foun D on the Java.library.path