Tomcat7 cannot find the Native APR library file

Bug #1326255 reported by Hendy Irawan on 2014-06-04
This bug affects 11 people
Affects Status Importance Assigned to Milestone
tomcat-native (Ubuntu)

Bug Description

In Ubuntu versions prior to 14.04 LTS, installing libtcnative-1 and configuring server.xml as follows:

<Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" />

is sufficient to enable APR.

However in Ubuntu 14.04, Tomcat v7.0.52-1 still cannot find the APR library:

Apr 30, 2014 1:56:32 PM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib

As Ubuntu packages go, libtcnative-1 should work out-of-the-box without additional steps (apart from server.xml change, which is a Tomcat configuration, not a distro thing)

Workaround is to symlink the library manually inside /usr/lib :

sudo ln -sv /usr/lib/x86_64-linux-gnu/ /usr/lib/

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: libtcnative-1 1.1.29-1
Uname: Linux 3.10.23-xxxx-std-ipv6-64 x86_64
ApportVersion: 2.14.1-0ubuntu3.2
Architecture: amd64
Date: Wed Jun 4 03:38:32 2014
InstallationDate: Installed on 2014-04-16 (48 days ago)

SourcePackage: tomcat-native
UpgradeStatus: No upgrade log present (probably fresh install)

Hendy Irawan (ceefour) wrote :
Hendy Irawan (ceefour) wrote :
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in tomcat-native (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers