tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Neven Cvetkovic <>
Subject Re: Tomcats warning message about APR library
Date Fri, 06 Mar 2015 13:13:05 GMT

The actual list of steps is at the link you mentioned earlier:

On Fri, Mar 6, 2015 at 7:30 AM, Neven Cvetkovic <>

> Let us know if you need help compiling the native Tomcat connectors
> (APR-based).
There might be others that want to compile their TCNATIVE (apr-based)
connectors, so here's the digested list below (for Ubuntu/Debian based

1) Install required libraries for building TCNATIVE (APR dev, APR, and SSL
sudo apt-get zlib1g-dev build-essential libapr1 libapr1-dev libssl-dev

2) Unpack TC-native source, e.g.
cd /opt/apache-tomcat-8.0.20
cd bin
tar zxvf tomcat-native.tar.gz

3) Change directory to TC-native source code, e.g.
cd /opt/tomcat/bin/tomcat-native-1.1.32-src/jni/native/

4) Prepare makefile for compiling source, e.g.
./configure --with-apr=/usr/bin/apr-config --with-prefix=/opt/tomcat

5) Compile code, e.g.

6) Install libraries, e.g.
make install

7) This will add libraries to:

You can see the actual things installed:

8) Now we need to let Tomcat know about these libraries and add them to the
library path. Add a new file, e.g. /opt/tomcat/bin/ file:

9) Restart Tomcat,e.g.
/opt/tomcat/bin/ run

10) Observe the output, you should see something like this in the console
INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent
Loaded APR based Apache Tomcat Native library 1.1.32 using APR version
INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent
APR capabilities: IPv6 [true], sendfile [true], accept filters [false],
random [true].
NFO [main] org.apache.catalina.core.AprLifecycleListener.initializeSSL
OpenSSL successfully initialized (OpenSSL 1.0.1f 6 Jan 2014)
INFO [main] org.apache.coyote.AbstractProtocol.init Initializing
ProtocolHandler ["http-apr-8080"]
INFO [main] org.apache.coyote.AbstractProtocol.init Initializing
ProtocolHandler ["ajp-apr-8009"]

Good luck!

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message