tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Milan Cvejic <m.cve...@inbox-online.com>
Subject Re: Problem install APR Tomcat Native Library on Centos 5.2
Date Wed, 12 Nov 2008 18:05:01 GMT
It looks to me that you are using 32bit version of JDK on 64bit linux 
installation?

am i right? you are having

libraries in /lib64 and also in 
/usr/jdk1.6.0_10/jre/lib/i386

That may be problem... try installing 64bit version od JDK...


Paul van Beukering wrote:
> Hi Mladen,
>
> Did what you told me to do but the song remains the same.
>
> root@localhost:/root]# ldconfig -v
> /usr/local/apr/lib:
>         libtcnative-1.so.0 -> libtcnative-1.so.0.1.15
>         libaprutil-1.so.0 -> libaprutil-1.so.0.3.4
>         libexpat.so.0 -> libexpat.so.0.1.0
>         libapr-1.so.0 -> libapr-1.so.0.3.3
>
>
> and than restarted tomcat.
>
> Nov 12, 2008 6:30:35 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/jdk1.6.0_10/jre/lib/i386/server:/usr/jdk1.6.0_10/jre/lib/i386:/usr/jdk1.6.0_10/jre/../lib/i386:/home/belpop/tomcat/lib:/usr/local/apr/lib:/usr/local/apr:/usr/java/packages/lib/i386:/lib:/usr/lib
>
>
> Paul
>
> On Wed, Nov 12, 2008 at 6:04 PM, Milan Cvejic <m.cvejic@inbox-online.com>wrote:
>
>   
>> Try creating new file in /etc/ld.so.conf.d
>> name it custom.conf or something.conf and add line
>>
>> /usr/local/apr/lib
>>
>> in that file. Then run ldconfig
>> and try to restart tomcat.
>>
>>
>> Paul van Beukering wrote:
>>
>>     
>>> Hi Mladen
>>>
>>> The output is:
>>> belpop@localhost:/home/belpop/tomcat/lib]$ ldd libtcnative-1.so
>>>        libssl.so.6 => /lib64/libssl.so.6 (0x00002affd1727000)
>>>        libcrypto.so.6 => /lib64/libcrypto.so.6 (0x00002affd1970000)
>>>        libapr-1.so.0 => /usr/local/apr/lib/libapr-1.so.0
>>> (0x00002affd1cb8000)
>>>        librt.so.1 => /lib64/librt.so.1 (0x00002affd1ee2000)
>>>        libcrypt.so.1 => /lib64/libcrypt.so.1 (0x00002affd20eb000)
>>>        libpthread.so.0 => /lib64/libpthread.so.0 (0x00002affd2323000)
>>>        libdl.so.2 => /lib64/libdl.so.2 (0x00002affd253e000)
>>>        libc.so.6 => /lib64/libc.so.6 (0x00002affd2742000)
>>>        libgssapi_krb5.so.2 => /usr/lib64/libgssapi_krb5.so.2
>>> (0x00002affd2a95000)
>>>        libkrb5.so.3 => /usr/lib64/libkrb5.so.3 (0x00002affd2cc4000)
>>>        libcom_err.so.2 => /lib64/libcom_err.so.2 (0x00002affd2f57000)
>>>        libk5crypto.so.3 => /usr/lib64/libk5crypto.so.3
>>> (0x00002affd3159000)
>>>        libz.so.1 => /usr/lib64/libz.so.1 (0x00002affd337f000)
>>>        /lib64/ld-linux-x86-64.so.2 (0x00000034be400000)
>>>        libkrb5support.so.0 => /usr/lib64/libkrb5support.so.0
>>> (0x00002affd3593000)
>>>        libkeyutils.so.1 => /lib64/libkeyutils.so.1 (0x00002affd379c000)
>>>        libresolv.so.2 => /lib64/libresolv.so.2 (0x00002affd399e000)
>>>        libselinux.so.1 => /lib64/libselinux.so.1 (0x00002affd3bb3000)
>>>        libsepol.so.1 => /lib64/libsepol.so.1 (0x00002affd3dcc000)
>>>
>>> gr
>>> Paul
>>>
>>> On Wed, Nov 12, 2008 at 4:50 PM, Mladen Turk <mturk@apache.org> wrote:
>>>
>>>
>>>
>>>       
>>>> Paul van Beukering wrote:
>>>>
>>>>
>>>>
>>>>         
>>>>> Hello Milan and Mladen,
>>>>>
>>>>> See here the libraries that are created:
>>>>>
>>>>> -rwxr-xr-x 1 belpop belpop  872663 Nov 12 14:41 libtcnative-1.so.0.1.14
>>>>> lrwxrwxrwx 1 belpop belpop      23 Nov 12 14:41 libtcnative-1.so.0 ->
>>>>> libtcnative-1.so.0.1.14
>>>>> lrwxrwxrwx 1 belpop belpop      23 Nov 12 14:41 libtcnative-1.so ->
>>>>> libtcnative-1.so.0.1.14
>>>>> -rwxr-xr-x 1 belpop belpop     920 Nov 12 14:41 libtcnative-1.la
>>>>> -rw-r--r-- 1 belpop belpop 1561106 Nov 12 14:41 libtcnative-1.a
>>>>> drwxr-xr-x 2 belpop belpop    4096 Nov 12 16:17 pkgconfig
>>>>>
>>>>> I did put them in LD_LIBRARY_PATH and in all the JDK directories listed
>>>>> below. Still the same message is shown in the log.
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>           
>>>> OK, if they are in the LD_LIBRARY_PATH
>>>> what is the output from
>>>> ldd libtcnative-1.so
>>>>
>>>>
>>>>
>>>> Regards
>>>> --
>>>> ^(TM)
>>>>
>>>> ---------------------------------------------------------------------
>>>> 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
>>>>
>>>>
>>>>
>>>>
>>>>         
>>>
>>>       
>> ---------------------------------------------------------------------
>> 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
>>
>>
>>     
>
>   


---------------------------------------------------------------------
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
View raw message