tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Ozarchuk <jdo...@yahoo.com>
Subject Re: Native library issue on RHEL5
Date Thu, 02 Oct 2008 20:24:26 GMT
Here is the output of ldd libtcnative-1.so

libssl.so.6 => /lib64/libssl.so.6 (0x00002aaaaace1000)
    libcrypto.so.6 => /lib64/libcrypto.so.6 (0x00002aaaaaf2a000)
    libapr-1.so.0 => /usr/lib64/libapr-1.so.0 (0x00002aaaab272000)
    libpthread.so.0 => /lib64/libpthread.so.0 (0x00002aaaab49a000)
    libdl.so.2 => /lib64/libdl.so.2 (0x00002aaaab6b4000)
    libc.so.6 => /lib64/libc.so.6 (0x00002aaaab8b8000)
    libgssapi_krb5.so.2 => /usr/lib64/libgssapi_krb5.so.2 (0x00002aaaabc09000)
    libkrb5.so.3 => /usr/lib64/libkrb5.so.3 (0x00002aaaabe37000)
    libcom_err.so.2 => /lib64/libcom_err.so.2 (0x00002aaaac0c9000)
    libk5crypto.so.3 => /usr/lib64/libk5crypto.so.3 (0x00002aaaac2cc000)
    libz.so.1 => /usr/lib64/libz.so.1 (0x00002aaaac4f1000)
    libuuid.so.1 => /lib64/libuuid.so.1 (0x00002aaaac705000)
    libcrypt.so.1 => /lib64/libcrypt.so.1 (0x00002aaaac909000)
    /lib64/ld-linux-x86-64.so.2 (0x0000555555554000)
    libkrb5support.so.0 => /usr/lib64/libkrb5support.so.0 (0x00002aaaacb3d000)
    libkeyutils.so.1 => /lib64/libkeyutils.so.1 (0x00002aaaacd45000)
    libresolv.so.2 => /lib64/libresolv.so.2 (0x00002aaaacf48000)
    libselinux.so.1 => /lib64/libselinux.so.1 (0x00002aaaad15d000)
    libsepol.so.1 => /lib64/libsepol.so.1 (0x00002aaaad376000)


I'm not sure how I would go about making sure the APR libraries are there?


----- Original Message ----
From: Rainer Jung <rainer.jung@kippdata.de>
To: Tomcat Users List <users@tomcat.apache.org>
Sent: Thursday, October 2, 2008 3:27:02 PM
Subject: Re: Native library issue on RHEL5

John Ozarchuk schrieb:
> Hello,
>  
> I am running Apache-tomcat 6.0.1.14 
> on Redhat Enterprise 5.2, and I am having trouble getting Catalina.sh to use the Apache
Tomcat Native Library.  I have run configure, make, and make install on 
> the Native (tomcat-native-1.1.10-src) and it has installed libraries in 
> /usr/local/apr/lib:
>  
> [root@jdotest ~]# ll 
> /usr/local/apr/lib
> total 
> 2360
> -rw-r--r-- 1 root root 1518062 Oct  
> 2 11:21 libtcnative-1.a
> -rwxr-xr-x 1 root root     893 Oct  
> 2 11:21 libtcnative-1.la
> lrwxrwxrwx 1 root root      23 Oct  
> 2 11:21 libtcnative-1.so -> libtcnative-1.so  
>             .0.1.10
> lrwxrwxrwx 1 root root      23 Oct  
> 2 11:21 libtcnative-1.so.0 -> libtcnative-1.              
> so.0.1.10
> -rwxr-xr-x 1 root root  853799 Oct  
> 2 11:21 libtcnative-1.so.0.1.10
> drwxr-xr-x 2 root root    4096 Oct  
> 2 11:21 pkgconfig
>  
> I have added this path to 
> $CATALINA_HOME/Catalina.sh:
>  
> JAVA_OPTS="-Djava.library.path=/usr/local/apr/lib/"
>  
> When I run “Catalina.sh start” to 
> startup the Tomcat server, it still is not detecting these libraries, per 
> Catalina.out:
>  
> INFO: The Apache Tomcat Native 
> library which allows optimal performance in production environments was not 
> found on the java.library.path: /usr/local/apr/lib/
> Oct 2, 2008 12:59:40 PM org.apache.coyote.http11.Http11Protocol init
> INFO: Initializing Coyote HTTP/1.1 
> on http-8080
> Oct 2, 2008 12:59:40 PM 
> org.apache.catalina.startup.Catalina load
> INFO: Initialization processed in 
> 529 ms
>  
> Am I missing something here?   Any 
> help is greatly appreciated.  Thank you.

libtcnative needs he apr libraries too. Use "ldd
/usr/local/apr/lib/libtcnative-1.so" to check, whether the apr libraries
can be found and where they are. You might need to add their path to the
java.library.path too.

BTW: Consider updating to Tomcat 6.0.18 and tcnative 1.1.15.

Regards,

Rainer

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


      
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message