Tomcat7 cannot find the libtcnative-1.so Native APR library file
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tomcat-native (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
In Ubuntu versions prior to 14.04 LTS, installing libtcnative-1 and configuring server.xml as follows:
<Listener className=
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.
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/
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/
ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: libtcnative-1 1.1.29-1
Uname: Linux 3.10.23-
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)
InstallationMedia:
SourcePackage: tomcat-native
UpgradeStatus: No upgrade log present (probably fresh install)
Relates to bug #1088687, bug #1073159, and bug #1092548.