Note that there are some explanatory texts on larger screens.

plurals
  1. POTomcat APR native library not loaded *even* when present and configured
    primarykey
    data
    text
    <p>The system is Ubuntu 13.04 (64-bit). [Update: also tried on a 12.04 TLS 64-bit, same result]</p> <p>I compiled the latest (1.4.8) library (process described <a href="http://www.sheroz.com/installing-apache-tomcat-native-linux-ubuntu-1204" rel="nofollow">here</a>) and the files are readable by all:</p> <pre><code>$ ll /usr/local/apr/lib -rw-r--r-- 1 root root 8351 Sep 12 19:29 apr.exp -rw-r--r-- 1 root root 1608792 Sep 12 19:29 libapr-1.a -rwxr-xr-x 1 root root 965 Sep 12 19:29 libapr-1.la* lrwxrwxrwx 1 root root 17 Sep 12 19:29 libapr-1.so -&gt; libapr-1.so.0.4.8* lrwxrwxrwx 1 root root 17 Sep 12 19:29 libapr-1.so.0 -&gt; libapr-1.so.0.4.8* -rwxr-xr-x 1 root root 925622 Sep 12 19:29 libapr-1.so.0.4.8* drwxr-xr-x 2 root root 4096 Sep 12 19:29 pkgconfig/ </code></pre> <p>The environment variable is set in .bashrc and it's loaded:</p> <pre><code>LD_LIBRARY_PATH=/usr/local/apr/lib </code></pre> <p>I launched Tomcat's Java with <code>-XshowSettings:properties</code> which shows <code>java.library.path</code> contains that path.</p> <pre><code>java.library.path = /usr/local/apr/lib /usr/java/packages/lib/amd64 /usr/lib64 /lib64 /lib /usr/lib </code></pre> <p>Still, when Tomcat starts I get a message it didn't find it even though it displays the path to that directory.</p> <pre><code>Sep 12, 2013 8:14:12 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/local/apr/lib:/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib </code></pre> <p>I'm really at a loss what could be the cause.</p> <p>Thank you very much for any pointers.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload