Results 1 to 7 of 7

Thread: Tomcat not loading APR

  1. #1
    Join Date
    Sep 2009
    Location
    Alverca do Ribatejo, Portugal
    Posts
    53

    Question Tomcat not loading APR

    Hi all!

    On my tomcat6 log I have the following:
    Code:
    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/jdk1.6.0_16/jre/lib/i386/server:/usr/java/jdk1.6.0_16/jre/lib/i386:/usr/java/jdk1.6.0_16/jre/../lib/i386:/usr/lib64/mpi/gcc/openmpi/lib64:/usr/lib64:/usr/lib64:/usr/java/packages/lib/i386:/lib:/usr/lib
    Nonetheless, when executing
    Code:
    locate libapr
    I have:
    Code:
    /usr/lib64/libapr-1.so.0
    /usr/lib64/libapr-1.so.0.3.3
    /usr/lib64/libaprutil-1.so.0
    /usr/lib64/libaprutil-1.so.0.3.4
    /usr/share/doc/packages/libapr-util1
    /usr/share/doc/packages/libapr-util1/CHANGES
    /usr/share/doc/packages/libapr-util1/LICENSE
    /usr/share/doc/packages/libapr-util1/NOTICE
    /usr/share/doc/packages/libapr1
    /usr/share/doc/packages/libapr1/CHANGES
    /usr/share/doc/packages/libapr1/LICENSE
    /usr/share/doc/packages/libapr1/NOTICE
    Note that /usr/lib64 is part of the java.library.path.

    Why doesn't tomcat recognizes the /usr/lib64/libapr-1.so.0 or /usr/lib64/libapr-1.so.0.3.3?

    Best regards,
    Jorge

  2. #2

    Default Re: Tomcat not loading APR

    you need to install libtcnative package with yast.

    Apart from that, even with that library, I cannot get Tomcat to pick up the APR lib.

    strange...if someone has a clue on this...
    Code:
    osprod1@opensmc:~/bin> ls -l /usr/lib64/libtc*
    lrwxrwxrwx 1 root root     23 2010-03-10 13:58 /usr/lib64/libtcnative-1.so.0 -> libtcnative-1.so.0.1.17
    -rwxr-xr-x 1 root root 141728 2009-11-01 13:08 /usr/lib64/libtcnative-1.so.0.1.17
    osprod1@opensmc:~/bin> ls -l /usr/lib64/libapr*
    lrwxrwxrwx 1 root root     17 2010-03-02 12:53 /usr/lib64/libapr-1.so.0 -> libapr-1.so.0.3.8
    -rwxr-xr-x 1 root root 185272 2009-10-24 06:03 /usr/lib64/libapr-1.so.0.3.8
    lrwxrwxrwx 1 root root     21 2010-03-02 13:50 /usr/lib64/libaprutil-1.so.0 -> libaprutil-1.so.0.3.9
    -rwxr-xr-x 1 root root 143960 2009-10-19 21:34 /usr/lib64/libaprutil-1.so.0.3.9

    but still getting the error

    Code:
    INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /wos1/java/jdk1.6.0_18/jre/lib/amd64/server:/wos1/java/jdk1.6.0_18/jre/lib/amd64:/wos1/java/jdk1.6.0_18/jre/../lib/amd64:/usr/lib64/mpi/gcc/openmpi/lib64:/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib

  3. #3
    Join Date
    Sep 2008
    Location
    Dubai
    Posts
    1,770

    Default Re: Tomcat not loading APR

    Not sure because I didn't try enabling it myself but did you compile the wrapper library?
    Apache Tomcat 6.0 - Apache Portable Runtime (APR) based Native library for Tomcat
    openSUSE 12.3 (x86_64) with Kernel 3.7.10-1.16-desktop and KDE 4.11.2 on MacBook Pro
    Latest MS Windows version used: Win95

  4. #4

    Default Re: Tomcat not loading APR

    Quote Originally Posted by syampillai View Post
    Not sure because I didn't try enabling it myself but did you compile the wrapper library?
    Apache Tomcat 6.0 - Apache Portable Runtime (APR) based Native library for Tomcat
    compile it's not needed since Suse provides the library already compiled (as you can see in my previous post).

  5. #5

    Default Re: Tomcat not loading APR

    Setting the following soft-links in your lib directory will resolve this and enable tomcat to load APR.

    ln -s libapr-1.so.0.3.8 libapr-1.so
    ln -s libtcnative-1.so.0.1.17 libtcnative-1.so

  6. #6

    Default Re: Tomcat not loading APR

    thanks, it's working now

  7. #7
    Join Date
    Sep 2008
    Location
    Dubai
    Posts
    1,770

    Default Re: Tomcat not loading APR

    Quote Originally Posted by deadpoint View Post
    Setting the following soft-links in your lib directory will resolve this and enable tomcat to load APR.

    ln -s libapr-1.so.0.3.8 libapr-1.so
    ln -s libtcnative-1.so.0.1.17 libtcnative-1.so
    Thanks, this information is useful.
    openSUSE 12.3 (x86_64) with Kernel 3.7.10-1.16-desktop and KDE 4.11.2 on MacBook Pro
    Latest MS Windows version used: Win95

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •