Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

APR based Apache Tomcat Native library was not found on the java.library.path?

Tags:

When trying to run my app with eclipse/linux on tomcat I got the following info message:

INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/lib/jvm/java-6-sun-1.6.0.20/jre/lib/amd64/server:/usr/lib/jvm/java-6-sun-1.6.0.20/jre/lib/amd64:/usr/lib/jvm/java-6-sun-1.6.0.20/jre/../lib/amd64:/usr/lib64/xulrunner-addons:/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib 

How do I resolve this issue?

like image 931
Mahmoud Saleh Avatar asked Nov 25 '10 14:11

Mahmoud Saleh


People also ask

What does the APR based Apache Tomcat Native Library was not found mean?

It means exactly what it says: "The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path" The library referred to is bundled into an OS specific dll (tcnative-1. dll) loaded via JNI.

What is Apache Tomcat Native Library?

The Apache Tomcat Native Library is an optional component for use with Apache Tomcat that allows Tomcat to use OpenSSL as a replacement for JSSE to support TLS connections.

What is APR in Tomcat?

The Apache Portable Runtime (APR) is used by Tomcat to provide a number of enhanced features and performance. For example, the APR needs to be present in order to get the increased performance provided by OpenSSL for HTTPS.


Video Answer


1 Answers

My case: Seeing the same INFO message.

Centos 6.2 x86_64 Tomcat 6.0.24

This fixed the problem for me:

yum install tomcat-native 

boom!

like image 152
Wayne Avatar answered Oct 18 '22 08:10

Wayne