Public bug reported:

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/libtcnative-1.so /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)
InstallationMedia:
 
SourcePackage: tomcat-native
UpgradeStatus: No upgrade log present (probably fresh install)

** Affects: tomcat-native (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug trusty

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1326255

Title:
  Tomcat7 cannot find the libtcnative-1.so Native APR library file

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/tomcat-native/+bug/1326255/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to