You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Stefan Wachter <St...@gmx.de> on 2006/06/30 13:14:09 UTC

APR not found under Linux

Hi all,

I tried to run Tomcat using the APR under (Suse-)Linux but did not 
succeed. During startup there is still the well known message:

The Apache Tomcat Native library which allows optimal performance in 
production environments was not found on the java.library.path: 
/java/jdk1.5.0_05/jre/lib/i386/client:/java/jdk1.5.0_05/jre/lib/i386:/java/jdk1.5.0_05/jre/../lib/i386:/usr/local/apr/lib:/usr/lib

Yet, in the directory /usr/local/apr/lib there are the apr and tcnative 
libraries. This is the listing of that directory:

-rw-r--r--  1 root root    7661 2006-06-30 09:56 apr.exp
-rw-r--r--  1 root root 1164070 2006-06-30 09:56 libapr-1.a
-rwxr-xr-x  1 root root     831 2006-06-30 09:56 libapr-1.la
lrwxrwxrwx  1 root root      17 2006-06-30 09:56 libapr-1.so -> 
libapr-1.so.0.2.7
lrwxrwxrwx  1 root root      17 2006-06-30 09:56 libapr-1.so.0 -> 
libapr-1.so.0.2.7
-rwxr-xr-x  1 root root  636499 2006-06-30 09:56 libapr-1.so.0.2.7
-rw-r--r--  1 root root 1380234 2006-06-30 10:07 libtcnative-1.a
-rwxr-xr-x  1 root root     912 2006-06-30 10:07 libtcnative-1.la
lrwxrwxrwx  1 root root      22 2006-06-30 10:07 libtcnative-1.so -> 
libtcnative-1.so.0.2.7
lrwxrwxrwx  1 root root      22 2006-06-30 10:07 libtcnative-1.so.0 -> 
libtcnative-1.so.0.2.7
-rwxr-xr-x  1 root root  800108 2006-06-30 10:07 libtcnative-1.so.0.2.7
drwxr-xr-x  2 root root     104 2006-06-30 10:07 pkgconfig

In addition the directory /usr/lib contains the openssl library:

lrwxrwxrwx  1 root root     15 2005-11-01 14:39 libssl.so.0 -> 
libssl.so.0.9.7
-rwxr-xr-x  1 root root 220153 2005-10-14 18:14 libssl.so.0.9.7

I also including these two directories in the LD_LIBRARY_PATH. For that 
purpose I created a setenv.sh with the line

export LD_LIBRARY_PATH=/usr/local/apr/lib:/usr/lib

Can anyone help me with this problem?

Regards,
--Stefan


---------------------------------------------------------------------
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


Re: APR not found under Linux

Posted by Stefan Wachter <St...@gmx.de>.
Hi Martina,

success! Thanks for your hints. In the following I summarize the steps 
taken in order to help others with simmilar problems:

I was able to compile and install 32-bit versions of the tcnative and 
the apr library on my 64-bit system. First I had to install some missing 
32-bit dependencies using Yast. After that the following two commands 
created 32-bit versions of the apr and tcnative libraries:

1. APR: ./configure CFLAGS=-m32 && make && make install
2. TcNative: ./configure --with-apr=/usr/local/apr CFLAGS=-m32 && make 
&& make install

The "file" command now outputs the following for these two libraries:

apr/lib/libtcnative-1.so.0.1.3: ELF 32-bit LSB shared object, Intel 
80386, version 1 (SYSV), not stripped
apr/lib/libapr-1.so.0.2.7: ELF 32-bit LSB shared object, Intel 80386, 
version 1 (SYSV), not stripped

Now the linker dependencies for tcnative are 32-bit libraries only:

alpha:/usr/local # ldd apr/lib/libtcnative-1.so.0.1.3
        linux-gate.so.1 =>  (0xffffe000)
        libapr-1.so.0 => /usr/local/apr/lib/libapr-1.so.0 (0x55597000)
        librt.so.1 => /lib/tls/librt.so.1 (0x555bf000)
        libcrypt.so.1 => /lib/libcrypt.so.1 (0x555c7000)
        libpthread.so.0 => /lib/tls/libpthread.so.0 (0x555f9000)
        libdl.so.2 => /lib/libdl.so.2 (0x5560a000)
        libssl.so.0.9.7 => /usr/lib/libssl.so.0.9.7 (0x5560e000)
        libcrypto.so.0.9.7 => /usr/lib/libcrypto.so.0.9.7 (0x5563e000)
        libc.so.6 => /lib/tls/libc.so.6 (0x55732000)
        /lib/ld-linux.so.2 (0x56555000)

Having a setenv.sh with the following line now allows Tomcat to use the 
APR with a 32-bit JVM:

export LD_LIBRARY_PATH=/usr/local/apr/lib:/lib/tls:/lib:/usr/lib

Similarly, I compiled and installed 64-bit versions of APR and TcNative 
using:

1. APR: ./configure --prefix=/usr/local/apr64 && make && make install
2. TcNative: ./configure --prefix=/usr/local/apr64 
--with-apr=/usr/local/apr64 && make && make install

The 64-bit versions of the libraries are "enabled" by the following line 
in setenv.sh:

export LD_LIBRARY_PATH=/usr/local/apr64/lib:/lib64/tls:/lib64:/usr/lib64

Unfortunately it seems not to be possible to offer both sets of 
libraries simultaneously to Java and let Java do the choice. (I tried 
concatenating the two library paths. But it seems that the first found 
library wins and that additional matches are not considered.)

Regards,
--Stefan









Holst, Martina wrote:
> Hi Steffen,
>
> yes, it's possible. RPMs install 32-bit libraries into /lib rather than
> /lib64.
> Choose a different installation directory for self-compiled libraries
> using --prefix option of configure, and set the -m32 option for gcc.
>
> Regards,
> Martina
>
> -----Original Message-----
> From: Stefan Wachter [mailto:Stefan.Wachter@gmx.de] 
> Sent: Monday, July 03, 2006 09:47
> To: Tomcat Users List
> Subject: Re: APR not found under Linux
>
> Hi Martina,
>
> you are right! Switching to the AMD-64-Bit virtual machine Tomcat does
> no longer inform: "The Apache Native library...". Therefore I assume
> that with that virtual machine the APR is used. Many thanks for your
> hint!
>
> Some time ago I compared the performance of the AMD-64-Bit VM with the
> Intel-32-Bit VM and had the impression that the AMD-64-Bit VM is slower.
>
> Now I have to take new measurements that consider Tomcat/APR/64Bit <->
> Tomcat/32Bit.
>
> Another option would be to install 32-Bit versions of the needed
> libraries. Do you know if it is possible to install 32-Bit versions of
> the needed libraries in addition to the already present 64-Bit versions?
>
> Regards,
> --Stefan
>
>
>
> Holst, Martina wrote:
>   
>> Hi Stefan,
>>
>> Looking at your library path: I think you are trying to use a 32bit 
>> Java JDK with 64-bit APR/OprnSSL libraries. Java does not find the 
>> 32-bit binaries it needs, hence the error message.
>>  
>> Best regards,
>> Martina
>>     


---------------------------------------------------------------------
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


RE: APR not found under Linux

Posted by "Holst, Martina" <ma...@hp.com>.
Hi Steffen,

yes, it's possible. RPMs install 32-bit libraries into /lib rather than
/lib64.
Choose a different installation directory for self-compiled libraries
using --prefix option of configure, and set the -m32 option for gcc.

Regards,
Martina

-----Original Message-----
From: Stefan Wachter [mailto:Stefan.Wachter@gmx.de] 
Sent: Monday, July 03, 2006 09:47
To: Tomcat Users List
Subject: Re: APR not found under Linux

Hi Martina,

you are right! Switching to the AMD-64-Bit virtual machine Tomcat does
no longer inform: "The Apache Native library...". Therefore I assume
that with that virtual machine the APR is used. Many thanks for your
hint!

Some time ago I compared the performance of the AMD-64-Bit VM with the
Intel-32-Bit VM and had the impression that the AMD-64-Bit VM is slower.

Now I have to take new measurements that consider Tomcat/APR/64Bit <->
Tomcat/32Bit.

Another option would be to install 32-Bit versions of the needed
libraries. Do you know if it is possible to install 32-Bit versions of
the needed libraries in addition to the already present 64-Bit versions?

Regards,
--Stefan



Holst, Martina wrote:
> Hi Stefan,
>
> Looking at your library path: I think you are trying to use a 32bit 
> Java JDK with 64-bit APR/OprnSSL libraries. Java does not find the 
> 32-bit binaries it needs, hence the error message.
>  
> Best regards,
> Martina
>
> -----Original Message-----
> From: Stefan Wachter [mailto:Stefan.Wachter@gmx.de]
> Sent: Friday, June 30, 2006 16:44
> To: Tomcat Users List
> Subject: Re: APR not found under Linux
>
> Hi Dhaval,
>
> the java.library.path seems to be alright. The INFO message during 
> startup shows that
>
> java.library.path: 
> /java/jdk1.5.0_05/jre/lib/i386/client:/java/jdk1.5.0_05/jre/lib/i386:/
> ja 
> va/jdk1.5.0_05/jre/../lib/i386:/usr/local/apr/lib:/lib64/tls:/lib64:/u
> sr
> /lib64
>
> Cheers,
> --Stefan
>
> PS: Do you have a 64 bit system?
>
> Dhaval Patel wrote:
>   
>> Hmm
>>
>>   I read the BUILDING file of tomcat-native (the one that comes in 
>> TOMCAT\bin). It says something
>> like:
>>
>> 2 - In bin/setenv.sh add the following: 
>>     CATALINA_OPTS="$CATALINA_OPTS -Djava.library.path=tclib_location"
>>     In my machine I am using:
>>     /home/jfclere/jakarta-tomcat-connectors/jni/native/.libs for 
>> tclib_location
>>
>>   Did you try that?
>>
>>   Right now I am at work and my all configurations are at home. If 
>> things do not work, I will try to rebuild it when I go home. See 
>> above
>>     
> helps.
>   
>> Regards,
>> Dhaval
>> --- Stefan Wachter <St...@gmx.de> wrote:
>>
>>   
>>     
>>> Hi Dhaval,
>>>
>>> I don't think, that an old APR is involved. I compiled the latest 
>>> APR
>>>       
>
>   
>>> (version 1.2.7) using the sources from apr.apache.org. The created 
>>> library was placed into /usr/local/apr/lib by "make install".
>>>
>>> Yet, there is an old version of the APR installed on my system that 
>>> came with httpd 2.0.x (named "libapr-0"). Do you think that 
>>> "libapr-0" does interfere with "libapr-1"?
>>>
>>> Cheers,
>>> --Stefan
>>>
>>> Dhaval Patel wrote:
>>>     
>>>       
>>>> Hi,
>>>>
>>>>    I think your APR library is old. (You might have install using 
>>>> Yast). Tomcat 5.5 requires
>>>>       
>>>>         
>>> APR
>>>     
>>>       
>>>> 1.2+. So you might have to compile it by yourself.
>>>> (http://tomcat.apache.org/tomcat-5.5-doc/apr.html)
>>>>
>>>>    I remembered that I had to compile APR for SuSE 10. Here is what
>>>>         
> I did:
>   
>>>> 1) Make sure you have Apache Devel. headers and library are 
>>>> installed. (YaST will help you)
>>>> 2) Download APR from (http://apr.apache.org/). Follow the
>>>>         
> instruction to compile and make.
>   
>>>>       
>>>>         
>>> Make
>>>     
>>>       
>>>> sure that you remember the location of APR because you need that in
>>>>         
> Tomcat.
>   
>>>> 3) Go to TOMCAT_HOME\bin. Unpack tomcat-native.tar.gz.
>>>> 4) Follow the instruction to build it.
>>>> 5) Then you might have to use SetENV.sh.
>>>>
>>>>    See above things works. I may able to help you if it does not
>>>>         
> work.
>   
>>>> Regards,
>>>> Dhaval
>>>>
>>>> --- Stefan Wachter <St...@gmx.de> wrote:
>>>>
>>>>   
>>>>       
>>>>         
>>>>> Hi Rajeev,
>>>>>
>>>>> I changed the order of the directories to 
>>>>> /usr/lib:/usr/local/apr/lib but I did not help.
>>>>>
>>>>> Cheers,
>>>>> --Stefan
>>>>>
>>>>>
>>>>> Rajeev N. Jha wrote:
>>>>>     
>>>>>         
>>>>>           
>>>>>> Try putting the ssl libs in front of apr/tcnative.
>>>>>>
>>>>>> Thanks
>>>>>> - Rajeev.
>>>>>>
>>>>>> Stefan Wachter wrote:
>>>>>>       
>>>>>>           
>>>>>>             
>>>>>>> Hi all,
>>>>>>>
>>>>>>> I tried to run Tomcat using the APR under (Suse-)Linux but did 
>>>>>>> not succeed. During startup there is still the well known
>>>>>>>               
> message:
>   
>>>>>>> The Apache Tomcat Native library which allows optimal 
>>>>>>> performance
>>>>>>>               
>
>   
>>>>>>> in production environments was not found on the
>>>>>>>               
> java.library.path:
>   
>>>>>>>         
>>>>>>>             
>>>>>>>               
>> /java/jdk1.5.0_05/jre/lib/i386/client:/java/jdk1.5.0_05/jre/lib/i386:
>> / java/jdk1.5.0_05/jre/../lib/i386:/usr/local/apr/lib:/usr/lib
>>   
>>     
>>>>   
>>>>       
>>>>         
>>>>>>> Yet, in the directory /usr/local/apr/lib there are the apr and 
>>>>>>> tcnative libraries. This is the listing of that directory:
>>>>>>>
>>>>>>> -rw-r--r--  1 root root    7661 2006-06-30 09:56 apr.exp
>>>>>>> -rw-r--r--  1 root root 1164070 2006-06-30 09:56 libapr-1.a
>>>>>>> -rwxr-xr-x  1 root root     831 2006-06-30 09:56 libapr-1.la
>>>>>>> lrwxrwxrwx  1 root root      17 2006-06-30 09:56 libapr-1.so -> 
>>>>>>> libapr-1.so.0.2.7
>>>>>>> lrwxrwxrwx  1 root root      17 2006-06-30 09:56 libapr-1.so.0
->
>>>>>>>               
>
>   
>>>>>>> libapr-1.so.0.2.7
>>>>>>> -rwxr-xr-x  1 root root  636499 2006-06-30 09:56
>>>>>>> libapr-1.so.0.2.7
>>>>>>> -rw-r--r--  1 root root 1380234 2006-06-30 10:07 libtcnative-1.a
>>>>>>> -rwxr-xr-x  1 root root     912 2006-06-30 10:07
libtcnative-1.la
>>>>>>> lrwxrwxrwx  1 root root      22 2006-06-30 10:07
libtcnative-1.so
>>>>>>>               
> -> 
>   
>>>>>>> libtcnative-1.so.0.2.7
>>>>>>> lrwxrwxrwx  1 root root      22 2006-06-30 10:07
>>>>>>>               
> libtcnative-1.so.0
>   
>>>>>>> -> libtcnative-1.so.0.2.7
>>>>>>> -rwxr-xr-x  1 root root  800108 2006-06-30 10:07
>>>>>>>               
> libtcnative-1.so.0.2.7
>   
>>>>>>> drwxr-xr-x  2 root root     104 2006-06-30 10:07 pkgconfig
>>>>>>>
>>>>>>> In addition the directory /usr/lib contains the openssl library:
>>>>>>>
>>>>>>> lrwxrwxrwx  1 root root     15 2005-11-01 14:39 libssl.so.0 -> 
>>>>>>> libssl.so.0.9.7
>>>>>>> -rwxr-xr-x  1 root root 220153 2005-10-14 18:14 libssl.so.0.9.7
>>>>>>>
>>>>>>> I also including these two directories in the LD_LIBRARY_PATH. 
>>>>>>> For that purpose I created a setenv.sh with the line
>>>>>>>
>>>>>>> export LD_LIBRARY_PATH=/usr/local/apr/lib:/usr/lib
>>>>>>>
>>>>>>> Can anyone help me with this problem?
>>>>>>>
>>>>>>> Regards,
>>>>>>> --Stefan
>>>>>>>
>>>>>>>
>>>>>>> ----------------------------------------------------------------
>>>>>>> -
>>>>>>> ---- 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
>>>>>
>>>>>
>>>>>     
>>>>>         
>>>>>           
>>>> __________________________________________________
>>>> Do You Yahoo!?
>>>> Tired of spam?  Yahoo! Mail has the best spam protection around 
>>>> http://mail.yahoo.com
>>>>
>>>> -------------------------------------------------------------------
>>>> -
>>>> - 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
>>>
>>>
>>>     
>>>       
>> __________________________________________________
>> Do You Yahoo!?
>> Tired of spam?  Yahoo! Mail has the best spam protection around 
>> http://mail.yahoo.com
>>
>> ---------------------------------------------------------------------
>> 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
>
>
>   


---------------------------------------------------------------------
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


Re: APR not found under Linux

Posted by Stefan Wachter <St...@gmx.de>.
Hi Martina,

you are right! Switching to the AMD-64-Bit virtual machine Tomcat does 
no longer inform: "The Apache Native library...". Therefore I assume 
that with that virtual machine the APR is used. Many thanks for your hint!

Some time ago I compared the performance of the AMD-64-Bit VM with the 
Intel-32-Bit VM and had the impression that the AMD-64-Bit VM is slower. 
Now I have to take new measurements that consider Tomcat/APR/64Bit <-> 
Tomcat/32Bit.

Another option would be to install 32-Bit versions of the needed 
libraries. Do you know if it is possible to install 32-Bit versions of 
the needed libraries in addition to the already present 64-Bit versions?

Regards,
--Stefan



Holst, Martina wrote:
> Hi Stefan,
>
> Looking at your library path: I think you are trying to use a 32bit Java
> JDK with 64-bit APR/OprnSSL libraries. Java does not find the 32-bit
> binaries it needs, hence the error message. 
>  
> Best regards,
> Martina
>
> -----Original Message-----
> From: Stefan Wachter [mailto:Stefan.Wachter@gmx.de] 
> Sent: Friday, June 30, 2006 16:44
> To: Tomcat Users List
> Subject: Re: APR not found under Linux
>
> Hi Dhaval,
>
> the java.library.path seems to be alright. The INFO message during
> startup shows that
>
> java.library.path: 
> /java/jdk1.5.0_05/jre/lib/i386/client:/java/jdk1.5.0_05/jre/lib/i386:/ja
> va/jdk1.5.0_05/jre/../lib/i386:/usr/local/apr/lib:/lib64/tls:/lib64:/usr
> /lib64
>
> Cheers,
> --Stefan
>
> PS: Do you have a 64 bit system?
>
> Dhaval Patel wrote:
>   
>> Hmm
>>
>>   I read the BUILDING file of tomcat-native (the one that comes in 
>> TOMCAT\bin). It says something
>> like:
>>
>> 2 - In bin/setenv.sh add the following: 
>>     CATALINA_OPTS="$CATALINA_OPTS -Djava.library.path=tclib_location"
>>     In my machine I am using:
>>     /home/jfclere/jakarta-tomcat-connectors/jni/native/.libs for 
>> tclib_location
>>
>>   Did you try that?
>>
>>   Right now I am at work and my all configurations are at home. If 
>> things do not work, I will try to rebuild it when I go home. See above
>>     
> helps.
>   
>> Regards,
>> Dhaval
>> --- Stefan Wachter <St...@gmx.de> wrote:
>>
>>   
>>     
>>> Hi Dhaval,
>>>
>>> I don't think, that an old APR is involved. I compiled the latest APR
>>>       
>
>   
>>> (version 1.2.7) using the sources from apr.apache.org. The created 
>>> library was placed into /usr/local/apr/lib by "make install".
>>>
>>> Yet, there is an old version of the APR installed on my system that 
>>> came with httpd 2.0.x (named "libapr-0"). Do you think that 
>>> "libapr-0" does interfere with "libapr-1"?
>>>
>>> Cheers,
>>> --Stefan
>>>
>>> Dhaval Patel wrote:
>>>     
>>>       
>>>> Hi,
>>>>
>>>>    I think your APR library is old. (You might have install using 
>>>> Yast). Tomcat 5.5 requires
>>>>       
>>>>         
>>> APR
>>>     
>>>       
>>>> 1.2+. So you might have to compile it by yourself.
>>>> (http://tomcat.apache.org/tomcat-5.5-doc/apr.html)
>>>>
>>>>    I remembered that I had to compile APR for SuSE 10. Here is what
>>>>         
> I did:
>   
>>>> 1) Make sure you have Apache Devel. headers and library are 
>>>> installed. (YaST will help you)
>>>> 2) Download APR from (http://apr.apache.org/). Follow the
>>>>         
> instruction to compile and make.
>   
>>>>       
>>>>         
>>> Make
>>>     
>>>       
>>>> sure that you remember the location of APR because you need that in
>>>>         
> Tomcat.
>   
>>>> 3) Go to TOMCAT_HOME\bin. Unpack tomcat-native.tar.gz.
>>>> 4) Follow the instruction to build it.
>>>> 5) Then you might have to use SetENV.sh.
>>>>
>>>>    See above things works. I may able to help you if it does not
>>>>         
> work.
>   
>>>> Regards,
>>>> Dhaval
>>>>
>>>> --- Stefan Wachter <St...@gmx.de> wrote:
>>>>
>>>>   
>>>>       
>>>>         
>>>>> Hi Rajeev,
>>>>>
>>>>> I changed the order of the directories to 
>>>>> /usr/lib:/usr/local/apr/lib but I did not help.
>>>>>
>>>>> Cheers,
>>>>> --Stefan
>>>>>
>>>>>
>>>>> Rajeev N. Jha wrote:
>>>>>     
>>>>>         
>>>>>           
>>>>>> Try putting the ssl libs in front of apr/tcnative.
>>>>>>
>>>>>> Thanks
>>>>>> - Rajeev.
>>>>>>
>>>>>> Stefan Wachter wrote:
>>>>>>       
>>>>>>           
>>>>>>             
>>>>>>> Hi all,
>>>>>>>
>>>>>>> I tried to run Tomcat using the APR under (Suse-)Linux but did 
>>>>>>> not succeed. During startup there is still the well known
>>>>>>>               
> message:
>   
>>>>>>> The Apache Tomcat Native library which allows optimal performance
>>>>>>>               
>
>   
>>>>>>> in production environments was not found on the
>>>>>>>               
> java.library.path:
>   
>>>>>>>         
>>>>>>>             
>>>>>>>               
>> /java/jdk1.5.0_05/jre/lib/i386/client:/java/jdk1.5.0_05/jre/lib/i386:/
>> java/jdk1.5.0_05/jre/../lib/i386:/usr/local/apr/lib:/usr/lib
>>   
>>     
>>>>   
>>>>       
>>>>         
>>>>>>> Yet, in the directory /usr/local/apr/lib there are the apr and 
>>>>>>> tcnative libraries. This is the listing of that directory:
>>>>>>>
>>>>>>> -rw-r--r--  1 root root    7661 2006-06-30 09:56 apr.exp
>>>>>>> -rw-r--r--  1 root root 1164070 2006-06-30 09:56 libapr-1.a
>>>>>>> -rwxr-xr-x  1 root root     831 2006-06-30 09:56 libapr-1.la
>>>>>>> lrwxrwxrwx  1 root root      17 2006-06-30 09:56 libapr-1.so -> 
>>>>>>> libapr-1.so.0.2.7
>>>>>>> lrwxrwxrwx  1 root root      17 2006-06-30 09:56 libapr-1.so.0 ->
>>>>>>>               
>
>   
>>>>>>> libapr-1.so.0.2.7
>>>>>>> -rwxr-xr-x  1 root root  636499 2006-06-30 09:56 
>>>>>>> libapr-1.so.0.2.7
>>>>>>> -rw-r--r--  1 root root 1380234 2006-06-30 10:07 libtcnative-1.a
>>>>>>> -rwxr-xr-x  1 root root     912 2006-06-30 10:07 libtcnative-1.la
>>>>>>> lrwxrwxrwx  1 root root      22 2006-06-30 10:07 libtcnative-1.so
>>>>>>>               
> -> 
>   
>>>>>>> libtcnative-1.so.0.2.7
>>>>>>> lrwxrwxrwx  1 root root      22 2006-06-30 10:07
>>>>>>>               
> libtcnative-1.so.0 
>   
>>>>>>> -> libtcnative-1.so.0.2.7
>>>>>>> -rwxr-xr-x  1 root root  800108 2006-06-30 10:07
>>>>>>>               
> libtcnative-1.so.0.2.7
>   
>>>>>>> drwxr-xr-x  2 root root     104 2006-06-30 10:07 pkgconfig
>>>>>>>
>>>>>>> In addition the directory /usr/lib contains the openssl library:
>>>>>>>
>>>>>>> lrwxrwxrwx  1 root root     15 2005-11-01 14:39 libssl.so.0 -> 
>>>>>>> libssl.so.0.9.7
>>>>>>> -rwxr-xr-x  1 root root 220153 2005-10-14 18:14 libssl.so.0.9.7
>>>>>>>
>>>>>>> I also including these two directories in the LD_LIBRARY_PATH. 
>>>>>>> For that purpose I created a setenv.sh with the line
>>>>>>>
>>>>>>> export LD_LIBRARY_PATH=/usr/local/apr/lib:/usr/lib
>>>>>>>
>>>>>>> Can anyone help me with this problem?
>>>>>>>
>>>>>>> Regards,
>>>>>>> --Stefan
>>>>>>>
>>>>>>>
>>>>>>> -----------------------------------------------------------------
>>>>>>> ---- 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
>>>>>
>>>>>
>>>>>     
>>>>>         
>>>>>           
>>>> __________________________________________________
>>>> Do You Yahoo!?
>>>> Tired of spam?  Yahoo! Mail has the best spam protection around 
>>>> http://mail.yahoo.com
>>>>
>>>> --------------------------------------------------------------------
>>>> - 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
>>>
>>>
>>>     
>>>       
>> __________________________________________________
>> Do You Yahoo!?
>> Tired of spam?  Yahoo! Mail has the best spam protection around 
>> http://mail.yahoo.com
>>
>> ---------------------------------------------------------------------
>> 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
>
>
>   


---------------------------------------------------------------------
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


RE: APR not found under Linux

Posted by "Holst, Martina" <ma...@hp.com>.
Hi Stefan,

Looking at your library path: I think you are trying to use a 32bit Java
JDK with 64-bit APR/OprnSSL libraries. Java does not find the 32-bit
binaries it needs, hence the error message. 
 
Best regards,
Martina

-----Original Message-----
From: Stefan Wachter [mailto:Stefan.Wachter@gmx.de] 
Sent: Friday, June 30, 2006 16:44
To: Tomcat Users List
Subject: Re: APR not found under Linux

Hi Dhaval,

the java.library.path seems to be alright. The INFO message during
startup shows that

java.library.path: 
/java/jdk1.5.0_05/jre/lib/i386/client:/java/jdk1.5.0_05/jre/lib/i386:/ja
va/jdk1.5.0_05/jre/../lib/i386:/usr/local/apr/lib:/lib64/tls:/lib64:/usr
/lib64

Cheers,
--Stefan

PS: Do you have a 64 bit system?

Dhaval Patel wrote:
> Hmm
>
>   I read the BUILDING file of tomcat-native (the one that comes in 
> TOMCAT\bin). It says something
> like:
>
> 2 - In bin/setenv.sh add the following: 
>     CATALINA_OPTS="$CATALINA_OPTS -Djava.library.path=tclib_location"
>     In my machine I am using:
>     /home/jfclere/jakarta-tomcat-connectors/jni/native/.libs for 
> tclib_location
>
>   Did you try that?
>
>   Right now I am at work and my all configurations are at home. If 
> things do not work, I will try to rebuild it when I go home. See above
helps.
>
>
> Regards,
> Dhaval
> --- Stefan Wachter <St...@gmx.de> wrote:
>
>   
>> Hi Dhaval,
>>
>> I don't think, that an old APR is involved. I compiled the latest APR

>> (version 1.2.7) using the sources from apr.apache.org. The created 
>> library was placed into /usr/local/apr/lib by "make install".
>>
>> Yet, there is an old version of the APR installed on my system that 
>> came with httpd 2.0.x (named "libapr-0"). Do you think that 
>> "libapr-0" does interfere with "libapr-1"?
>>
>> Cheers,
>> --Stefan
>>
>> Dhaval Patel wrote:
>>     
>>> Hi,
>>>
>>>    I think your APR library is old. (You might have install using 
>>> Yast). Tomcat 5.5 requires
>>>       
>> APR
>>     
>>> 1.2+. So you might have to compile it by yourself.
>>> (http://tomcat.apache.org/tomcat-5.5-doc/apr.html)
>>>
>>>    I remembered that I had to compile APR for SuSE 10. Here is what
I did:
>>> 1) Make sure you have Apache Devel. headers and library are 
>>> installed. (YaST will help you)
>>> 2) Download APR from (http://apr.apache.org/). Follow the
instruction to compile and make.
>>>       
>> Make
>>     
>>> sure that you remember the location of APR because you need that in
Tomcat.
>>> 3) Go to TOMCAT_HOME\bin. Unpack tomcat-native.tar.gz.
>>> 4) Follow the instruction to build it.
>>> 5) Then you might have to use SetENV.sh.
>>>
>>>    See above things works. I may able to help you if it does not
work.
>>>
>>> Regards,
>>> Dhaval
>>>
>>> --- Stefan Wachter <St...@gmx.de> wrote:
>>>
>>>   
>>>       
>>>> Hi Rajeev,
>>>>
>>>> I changed the order of the directories to 
>>>> /usr/lib:/usr/local/apr/lib but I did not help.
>>>>
>>>> Cheers,
>>>> --Stefan
>>>>
>>>>
>>>> Rajeev N. Jha wrote:
>>>>     
>>>>         
>>>>> Try putting the ssl libs in front of apr/tcnative.
>>>>>
>>>>> Thanks
>>>>> - Rajeev.
>>>>>
>>>>> Stefan Wachter wrote:
>>>>>       
>>>>>           
>>>>>> Hi all,
>>>>>>
>>>>>> I tried to run Tomcat using the APR under (Suse-)Linux but did 
>>>>>> not succeed. During startup there is still the well known
message:
>>>>>>
>>>>>> The Apache Tomcat Native library which allows optimal performance

>>>>>> in production environments was not found on the
java.library.path:
>>>>>>
>>>>>>         
>>>>>>             
> /java/jdk1.5.0_05/jre/lib/i386/client:/java/jdk1.5.0_05/jre/lib/i386:/
> java/jdk1.5.0_05/jre/../lib/i386:/usr/local/apr/lib:/usr/lib
>   
>>>   
>>>       
>>>>>> Yet, in the directory /usr/local/apr/lib there are the apr and 
>>>>>> tcnative libraries. This is the listing of that directory:
>>>>>>
>>>>>> -rw-r--r--  1 root root    7661 2006-06-30 09:56 apr.exp
>>>>>> -rw-r--r--  1 root root 1164070 2006-06-30 09:56 libapr-1.a
>>>>>> -rwxr-xr-x  1 root root     831 2006-06-30 09:56 libapr-1.la
>>>>>> lrwxrwxrwx  1 root root      17 2006-06-30 09:56 libapr-1.so -> 
>>>>>> libapr-1.so.0.2.7
>>>>>> lrwxrwxrwx  1 root root      17 2006-06-30 09:56 libapr-1.so.0 ->

>>>>>> libapr-1.so.0.2.7
>>>>>> -rwxr-xr-x  1 root root  636499 2006-06-30 09:56 
>>>>>> libapr-1.so.0.2.7
>>>>>> -rw-r--r--  1 root root 1380234 2006-06-30 10:07 libtcnative-1.a
>>>>>> -rwxr-xr-x  1 root root     912 2006-06-30 10:07 libtcnative-1.la
>>>>>> lrwxrwxrwx  1 root root      22 2006-06-30 10:07 libtcnative-1.so
-> 
>>>>>> libtcnative-1.so.0.2.7
>>>>>> lrwxrwxrwx  1 root root      22 2006-06-30 10:07
libtcnative-1.so.0 
>>>>>> -> libtcnative-1.so.0.2.7
>>>>>> -rwxr-xr-x  1 root root  800108 2006-06-30 10:07
libtcnative-1.so.0.2.7
>>>>>> drwxr-xr-x  2 root root     104 2006-06-30 10:07 pkgconfig
>>>>>>
>>>>>> In addition the directory /usr/lib contains the openssl library:
>>>>>>
>>>>>> lrwxrwxrwx  1 root root     15 2005-11-01 14:39 libssl.so.0 -> 
>>>>>> libssl.so.0.9.7
>>>>>> -rwxr-xr-x  1 root root 220153 2005-10-14 18:14 libssl.so.0.9.7
>>>>>>
>>>>>> I also including these two directories in the LD_LIBRARY_PATH. 
>>>>>> For that purpose I created a setenv.sh with the line
>>>>>>
>>>>>> export LD_LIBRARY_PATH=/usr/local/apr/lib:/usr/lib
>>>>>>
>>>>>> Can anyone help me with this problem?
>>>>>>
>>>>>> Regards,
>>>>>> --Stefan
>>>>>>
>>>>>>
>>>>>> -----------------------------------------------------------------
>>>>>> ---- 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
>>>>
>>>>
>>>>     
>>>>         
>>> __________________________________________________
>>> Do You Yahoo!?
>>> Tired of spam?  Yahoo! Mail has the best spam protection around 
>>> http://mail.yahoo.com
>>>
>>> --------------------------------------------------------------------
>>> - 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
>>
>>
>>     
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com
>
> ---------------------------------------------------------------------
> 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


Re: APR not found under Linux

Posted by Stefan Wachter <St...@gmx.de>.
Hi Dhaval,

the java.library.path seems to be alright. The INFO message during 
startup shows that

java.library.path: 
/java/jdk1.5.0_05/jre/lib/i386/client:/java/jdk1.5.0_05/jre/lib/i386:/java/jdk1.5.0_05/jre/../lib/i386:/usr/local/apr/lib:/lib64/tls:/lib64:/usr/lib64

Cheers,
--Stefan

PS: Do you have a 64 bit system?

Dhaval Patel wrote:
> Hmm
>
>   I read the BUILDING file of tomcat-native (the one that comes in TOMCAT\bin). It says something
> like:
>
> 2 - In bin/setenv.sh add the following: 
>     CATALINA_OPTS="$CATALINA_OPTS -Djava.library.path=tclib_location"
>     In my machine I am using:
>     /home/jfclere/jakarta-tomcat-connectors/jni/native/.libs for tclib_location
>
>   Did you try that?
>
>   Right now I am at work and my all configurations are at home. If things do not work, I will try
> to rebuild it when I go home. See above helps.
>
>
> Regards,
> Dhaval
> --- Stefan Wachter <St...@gmx.de> wrote:
>
>   
>> Hi Dhaval,
>>
>> I don't think, that an old APR is involved. I compiled the latest APR 
>> (version 1.2.7) using the sources from apr.apache.org. The created 
>> library was placed into /usr/local/apr/lib by "make install".
>>
>> Yet, there is an old version of the APR installed on my system that came 
>> with httpd 2.0.x (named "libapr-0"). Do you think that "libapr-0" does 
>> interfere with "libapr-1"?
>>
>> Cheers,
>> --Stefan
>>
>> Dhaval Patel wrote:
>>     
>>> Hi,
>>>
>>>    I think your APR library is old. (You might have install using Yast). Tomcat 5.5 requires
>>>       
>> APR
>>     
>>> 1.2+. So you might have to compile it by yourself.
>>> (http://tomcat.apache.org/tomcat-5.5-doc/apr.html)
>>>
>>>    I remembered that I had to compile APR for SuSE 10. Here is what I did:
>>> 1) Make sure you have Apache Devel. headers and library are installed. (YaST will help you)
>>> 2) Download APR from (http://apr.apache.org/). Follow the instruction to compile and make.
>>>       
>> Make
>>     
>>> sure that you remember the location of APR because you need that in Tomcat.
>>> 3) Go to TOMCAT_HOME\bin. Unpack tomcat-native.tar.gz.
>>> 4) Follow the instruction to build it.
>>> 5) Then you might have to use SetENV.sh.
>>>
>>>    See above things works. I may able to help you if it does not work.
>>>
>>> Regards,
>>> Dhaval
>>>
>>> --- Stefan Wachter <St...@gmx.de> wrote:
>>>
>>>   
>>>       
>>>> Hi Rajeev,
>>>>
>>>> I changed the order of the directories to /usr/lib:/usr/local/apr/lib 
>>>> but I did not help.
>>>>
>>>> Cheers,
>>>> --Stefan
>>>>
>>>>
>>>> Rajeev N. Jha wrote:
>>>>     
>>>>         
>>>>> Try putting the ssl libs in front of apr/tcnative.
>>>>>
>>>>> Thanks
>>>>> - Rajeev.
>>>>>
>>>>> Stefan Wachter wrote:
>>>>>       
>>>>>           
>>>>>> Hi all,
>>>>>>
>>>>>> I tried to run Tomcat using the APR under (Suse-)Linux but did not 
>>>>>> succeed. During startup there is still the well known message:
>>>>>>
>>>>>> The Apache Tomcat Native library which allows optimal performance in 
>>>>>> production environments was not found on the java.library.path: 
>>>>>>
>>>>>>         
>>>>>>             
> /java/jdk1.5.0_05/jre/lib/i386/client:/java/jdk1.5.0_05/jre/lib/i386:/java/jdk1.5.0_05/jre/../lib/i386:/usr/local/apr/lib:/usr/lib
>   
>>>   
>>>       
>>>>>> Yet, in the directory /usr/local/apr/lib there are the apr and 
>>>>>> tcnative libraries. This is the listing of that directory:
>>>>>>
>>>>>> -rw-r--r--  1 root root    7661 2006-06-30 09:56 apr.exp
>>>>>> -rw-r--r--  1 root root 1164070 2006-06-30 09:56 libapr-1.a
>>>>>> -rwxr-xr-x  1 root root     831 2006-06-30 09:56 libapr-1.la
>>>>>> lrwxrwxrwx  1 root root      17 2006-06-30 09:56 libapr-1.so -> 
>>>>>> libapr-1.so.0.2.7
>>>>>> lrwxrwxrwx  1 root root      17 2006-06-30 09:56 libapr-1.so.0 -> 
>>>>>> libapr-1.so.0.2.7
>>>>>> -rwxr-xr-x  1 root root  636499 2006-06-30 09:56 libapr-1.so.0.2.7
>>>>>> -rw-r--r--  1 root root 1380234 2006-06-30 10:07 libtcnative-1.a
>>>>>> -rwxr-xr-x  1 root root     912 2006-06-30 10:07 libtcnative-1.la
>>>>>> lrwxrwxrwx  1 root root      22 2006-06-30 10:07 libtcnative-1.so -> 
>>>>>> libtcnative-1.so.0.2.7
>>>>>> lrwxrwxrwx  1 root root      22 2006-06-30 10:07 libtcnative-1.so.0 
>>>>>> -> libtcnative-1.so.0.2.7
>>>>>> -rwxr-xr-x  1 root root  800108 2006-06-30 10:07 libtcnative-1.so.0.2.7
>>>>>> drwxr-xr-x  2 root root     104 2006-06-30 10:07 pkgconfig
>>>>>>
>>>>>> In addition the directory /usr/lib contains the openssl library:
>>>>>>
>>>>>> lrwxrwxrwx  1 root root     15 2005-11-01 14:39 libssl.so.0 -> 
>>>>>> libssl.so.0.9.7
>>>>>> -rwxr-xr-x  1 root root 220153 2005-10-14 18:14 libssl.so.0.9.7
>>>>>>
>>>>>> I also including these two directories in the LD_LIBRARY_PATH. For 
>>>>>> that purpose I created a setenv.sh with the line
>>>>>>
>>>>>> export LD_LIBRARY_PATH=/usr/local/apr/lib:/usr/lib
>>>>>>
>>>>>> Can anyone help me with this problem?
>>>>>>
>>>>>> Regards,
>>>>>> --Stefan
>>>>>>
>>>>>>
>>>>>> ---------------------------------------------------------------------
>>>>>> 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
>>>>
>>>>
>>>>     
>>>>         
>>> __________________________________________________
>>> Do You Yahoo!?
>>> Tired of spam?  Yahoo! Mail has the best spam protection around 
>>> http://mail.yahoo.com 
>>>
>>> ---------------------------------------------------------------------
>>> 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
>>
>>
>>     
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 
>
> ---------------------------------------------------------------------
> 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


Re: APR not found under Linux

Posted by Dhaval Patel <dh...@yahoo.com>.
Hmm

  I read the BUILDING file of tomcat-native (the one that comes in TOMCAT\bin). It says something
like:

2 - In bin/setenv.sh add the following: 
    CATALINA_OPTS="$CATALINA_OPTS -Djava.library.path=tclib_location"
    In my machine I am using:
    /home/jfclere/jakarta-tomcat-connectors/jni/native/.libs for tclib_location

  Did you try that?

  Right now I am at work and my all configurations are at home. If things do not work, I will try
to rebuild it when I go home. See above helps.


Regards,
Dhaval
--- Stefan Wachter <St...@gmx.de> wrote:

> Hi Dhaval,
> 
> I don't think, that an old APR is involved. I compiled the latest APR 
> (version 1.2.7) using the sources from apr.apache.org. The created 
> library was placed into /usr/local/apr/lib by "make install".
> 
> Yet, there is an old version of the APR installed on my system that came 
> with httpd 2.0.x (named "libapr-0"). Do you think that "libapr-0" does 
> interfere with "libapr-1"?
> 
> Cheers,
> --Stefan
> 
> Dhaval Patel wrote:
> > Hi,
> >
> >    I think your APR library is old. (You might have install using Yast). Tomcat 5.5 requires
> APR
> > 1.2+. So you might have to compile it by yourself.
> > (http://tomcat.apache.org/tomcat-5.5-doc/apr.html)
> >
> >    I remembered that I had to compile APR for SuSE 10. Here is what I did:
> > 1) Make sure you have Apache Devel. headers and library are installed. (YaST will help you)
> > 2) Download APR from (http://apr.apache.org/). Follow the instruction to compile and make.
> Make
> > sure that you remember the location of APR because you need that in Tomcat.
> > 3) Go to TOMCAT_HOME\bin. Unpack tomcat-native.tar.gz.
> > 4) Follow the instruction to build it.
> > 5) Then you might have to use SetENV.sh.
> >
> >    See above things works. I may able to help you if it does not work.
> >
> > Regards,
> > Dhaval
> >
> > --- Stefan Wachter <St...@gmx.de> wrote:
> >
> >   
> >> Hi Rajeev,
> >>
> >> I changed the order of the directories to /usr/lib:/usr/local/apr/lib 
> >> but I did not help.
> >>
> >> Cheers,
> >> --Stefan
> >>
> >>
> >> Rajeev N. Jha wrote:
> >>     
> >>> Try putting the ssl libs in front of apr/tcnative.
> >>>
> >>> Thanks
> >>> - Rajeev.
> >>>
> >>> Stefan Wachter wrote:
> >>>       
> >>>> Hi all,
> >>>>
> >>>> I tried to run Tomcat using the APR under (Suse-)Linux but did not 
> >>>> succeed. During startup there is still the well known message:
> >>>>
> >>>> The Apache Tomcat Native library which allows optimal performance in 
> >>>> production environments was not found on the java.library.path: 
> >>>>
> >>>>         
> >
>
/java/jdk1.5.0_05/jre/lib/i386/client:/java/jdk1.5.0_05/jre/lib/i386:/java/jdk1.5.0_05/jre/../lib/i386:/usr/local/apr/lib:/usr/lib
> >   
> >>>> Yet, in the directory /usr/local/apr/lib there are the apr and 
> >>>> tcnative libraries. This is the listing of that directory:
> >>>>
> >>>> -rw-r--r--  1 root root    7661 2006-06-30 09:56 apr.exp
> >>>> -rw-r--r--  1 root root 1164070 2006-06-30 09:56 libapr-1.a
> >>>> -rwxr-xr-x  1 root root     831 2006-06-30 09:56 libapr-1.la
> >>>> lrwxrwxrwx  1 root root      17 2006-06-30 09:56 libapr-1.so -> 
> >>>> libapr-1.so.0.2.7
> >>>> lrwxrwxrwx  1 root root      17 2006-06-30 09:56 libapr-1.so.0 -> 
> >>>> libapr-1.so.0.2.7
> >>>> -rwxr-xr-x  1 root root  636499 2006-06-30 09:56 libapr-1.so.0.2.7
> >>>> -rw-r--r--  1 root root 1380234 2006-06-30 10:07 libtcnative-1.a
> >>>> -rwxr-xr-x  1 root root     912 2006-06-30 10:07 libtcnative-1.la
> >>>> lrwxrwxrwx  1 root root      22 2006-06-30 10:07 libtcnative-1.so -> 
> >>>> libtcnative-1.so.0.2.7
> >>>> lrwxrwxrwx  1 root root      22 2006-06-30 10:07 libtcnative-1.so.0 
> >>>> -> libtcnative-1.so.0.2.7
> >>>> -rwxr-xr-x  1 root root  800108 2006-06-30 10:07 libtcnative-1.so.0.2.7
> >>>> drwxr-xr-x  2 root root     104 2006-06-30 10:07 pkgconfig
> >>>>
> >>>> In addition the directory /usr/lib contains the openssl library:
> >>>>
> >>>> lrwxrwxrwx  1 root root     15 2005-11-01 14:39 libssl.so.0 -> 
> >>>> libssl.so.0.9.7
> >>>> -rwxr-xr-x  1 root root 220153 2005-10-14 18:14 libssl.so.0.9.7
> >>>>
> >>>> I also including these two directories in the LD_LIBRARY_PATH. For 
> >>>> that purpose I created a setenv.sh with the line
> >>>>
> >>>> export LD_LIBRARY_PATH=/usr/local/apr/lib:/usr/lib
> >>>>
> >>>> Can anyone help me with this problem?
> >>>>
> >>>> Regards,
> >>>> --Stefan
> >>>>
> >>>>
> >>>> ---------------------------------------------------------------------
> >>>> 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
> >>
> >>
> >>     
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam?  Yahoo! Mail has the best spam protection around 
> > http://mail.yahoo.com 
> >
> > ---------------------------------------------------------------------
> > 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
> 
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

---------------------------------------------------------------------
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


Re: APR not found under Linux

Posted by Stefan Wachter <St...@gmx.de>.
Hi Dhaval,

I don't think, that an old APR is involved. I compiled the latest APR 
(version 1.2.7) using the sources from apr.apache.org. The created 
library was placed into /usr/local/apr/lib by "make install".

Yet, there is an old version of the APR installed on my system that came 
with httpd 2.0.x (named "libapr-0"). Do you think that "libapr-0" does 
interfere with "libapr-1"?

Cheers,
--Stefan

Dhaval Patel wrote:
> Hi,
>
>    I think your APR library is old. (You might have install using Yast). Tomcat 5.5 requires APR
> 1.2+. So you might have to compile it by yourself.
> (http://tomcat.apache.org/tomcat-5.5-doc/apr.html)
>
>    I remembered that I had to compile APR for SuSE 10. Here is what I did:
> 1) Make sure you have Apache Devel. headers and library are installed. (YaST will help you)
> 2) Download APR from (http://apr.apache.org/). Follow the instruction to compile and make. Make
> sure that you remember the location of APR because you need that in Tomcat.
> 3) Go to TOMCAT_HOME\bin. Unpack tomcat-native.tar.gz.
> 4) Follow the instruction to build it.
> 5) Then you might have to use SetENV.sh.
>
>    See above things works. I may able to help you if it does not work.
>
> Regards,
> Dhaval
>
> --- Stefan Wachter <St...@gmx.de> wrote:
>
>   
>> Hi Rajeev,
>>
>> I changed the order of the directories to /usr/lib:/usr/local/apr/lib 
>> but I did not help.
>>
>> Cheers,
>> --Stefan
>>
>>
>> Rajeev N. Jha wrote:
>>     
>>> Try putting the ssl libs in front of apr/tcnative.
>>>
>>> Thanks
>>> - Rajeev.
>>>
>>> Stefan Wachter wrote:
>>>       
>>>> Hi all,
>>>>
>>>> I tried to run Tomcat using the APR under (Suse-)Linux but did not 
>>>> succeed. During startup there is still the well known message:
>>>>
>>>> The Apache Tomcat Native library which allows optimal performance in 
>>>> production environments was not found on the java.library.path: 
>>>>
>>>>         
> /java/jdk1.5.0_05/jre/lib/i386/client:/java/jdk1.5.0_05/jre/lib/i386:/java/jdk1.5.0_05/jre/../lib/i386:/usr/local/apr/lib:/usr/lib
>   
>>>> Yet, in the directory /usr/local/apr/lib there are the apr and 
>>>> tcnative libraries. This is the listing of that directory:
>>>>
>>>> -rw-r--r--  1 root root    7661 2006-06-30 09:56 apr.exp
>>>> -rw-r--r--  1 root root 1164070 2006-06-30 09:56 libapr-1.a
>>>> -rwxr-xr-x  1 root root     831 2006-06-30 09:56 libapr-1.la
>>>> lrwxrwxrwx  1 root root      17 2006-06-30 09:56 libapr-1.so -> 
>>>> libapr-1.so.0.2.7
>>>> lrwxrwxrwx  1 root root      17 2006-06-30 09:56 libapr-1.so.0 -> 
>>>> libapr-1.so.0.2.7
>>>> -rwxr-xr-x  1 root root  636499 2006-06-30 09:56 libapr-1.so.0.2.7
>>>> -rw-r--r--  1 root root 1380234 2006-06-30 10:07 libtcnative-1.a
>>>> -rwxr-xr-x  1 root root     912 2006-06-30 10:07 libtcnative-1.la
>>>> lrwxrwxrwx  1 root root      22 2006-06-30 10:07 libtcnative-1.so -> 
>>>> libtcnative-1.so.0.2.7
>>>> lrwxrwxrwx  1 root root      22 2006-06-30 10:07 libtcnative-1.so.0 
>>>> -> libtcnative-1.so.0.2.7
>>>> -rwxr-xr-x  1 root root  800108 2006-06-30 10:07 libtcnative-1.so.0.2.7
>>>> drwxr-xr-x  2 root root     104 2006-06-30 10:07 pkgconfig
>>>>
>>>> In addition the directory /usr/lib contains the openssl library:
>>>>
>>>> lrwxrwxrwx  1 root root     15 2005-11-01 14:39 libssl.so.0 -> 
>>>> libssl.so.0.9.7
>>>> -rwxr-xr-x  1 root root 220153 2005-10-14 18:14 libssl.so.0.9.7
>>>>
>>>> I also including these two directories in the LD_LIBRARY_PATH. For 
>>>> that purpose I created a setenv.sh with the line
>>>>
>>>> export LD_LIBRARY_PATH=/usr/local/apr/lib:/usr/lib
>>>>
>>>> Can anyone help me with this problem?
>>>>
>>>> Regards,
>>>> --Stefan
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> 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
>>
>>
>>     
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 
>
> ---------------------------------------------------------------------
> 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


Re: APR not found under Linux

Posted by Dhaval Patel <dh...@yahoo.com>.
Hi,

   I think your APR library is old. (You might have install using Yast). Tomcat 5.5 requires APR
1.2+. So you might have to compile it by yourself.
(http://tomcat.apache.org/tomcat-5.5-doc/apr.html)

   I remembered that I had to compile APR for SuSE 10. Here is what I did:
1) Make sure you have Apache Devel. headers and library are installed. (YaST will help you)
2) Download APR from (http://apr.apache.org/). Follow the instruction to compile and make. Make
sure that you remember the location of APR because you need that in Tomcat.
3) Go to TOMCAT_HOME\bin. Unpack tomcat-native.tar.gz.
4) Follow the instruction to build it.
5) Then you might have to use SetENV.sh.

   See above things works. I may able to help you if it does not work.

Regards,
Dhaval

--- Stefan Wachter <St...@gmx.de> wrote:

> Hi Rajeev,
> 
> I changed the order of the directories to /usr/lib:/usr/local/apr/lib 
> but I did not help.
> 
> Cheers,
> --Stefan
> 
> 
> Rajeev N. Jha wrote:
> > Try putting the ssl libs in front of apr/tcnative.
> >
> > Thanks
> > - Rajeev.
> >
> > Stefan Wachter wrote:
> >> Hi all,
> >>
> >> I tried to run Tomcat using the APR under (Suse-)Linux but did not 
> >> succeed. During startup there is still the well known message:
> >>
> >> The Apache Tomcat Native library which allows optimal performance in 
> >> production environments was not found on the java.library.path: 
> >>
>
/java/jdk1.5.0_05/jre/lib/i386/client:/java/jdk1.5.0_05/jre/lib/i386:/java/jdk1.5.0_05/jre/../lib/i386:/usr/local/apr/lib:/usr/lib
> 
> >>
> >>
> >> Yet, in the directory /usr/local/apr/lib there are the apr and 
> >> tcnative libraries. This is the listing of that directory:
> >>
> >> -rw-r--r--  1 root root    7661 2006-06-30 09:56 apr.exp
> >> -rw-r--r--  1 root root 1164070 2006-06-30 09:56 libapr-1.a
> >> -rwxr-xr-x  1 root root     831 2006-06-30 09:56 libapr-1.la
> >> lrwxrwxrwx  1 root root      17 2006-06-30 09:56 libapr-1.so -> 
> >> libapr-1.so.0.2.7
> >> lrwxrwxrwx  1 root root      17 2006-06-30 09:56 libapr-1.so.0 -> 
> >> libapr-1.so.0.2.7
> >> -rwxr-xr-x  1 root root  636499 2006-06-30 09:56 libapr-1.so.0.2.7
> >> -rw-r--r--  1 root root 1380234 2006-06-30 10:07 libtcnative-1.a
> >> -rwxr-xr-x  1 root root     912 2006-06-30 10:07 libtcnative-1.la
> >> lrwxrwxrwx  1 root root      22 2006-06-30 10:07 libtcnative-1.so -> 
> >> libtcnative-1.so.0.2.7
> >> lrwxrwxrwx  1 root root      22 2006-06-30 10:07 libtcnative-1.so.0 
> >> -> libtcnative-1.so.0.2.7
> >> -rwxr-xr-x  1 root root  800108 2006-06-30 10:07 libtcnative-1.so.0.2.7
> >> drwxr-xr-x  2 root root     104 2006-06-30 10:07 pkgconfig
> >>
> >> In addition the directory /usr/lib contains the openssl library:
> >>
> >> lrwxrwxrwx  1 root root     15 2005-11-01 14:39 libssl.so.0 -> 
> >> libssl.so.0.9.7
> >> -rwxr-xr-x  1 root root 220153 2005-10-14 18:14 libssl.so.0.9.7
> >>
> >> I also including these two directories in the LD_LIBRARY_PATH. For 
> >> that purpose I created a setenv.sh with the line
> >>
> >> export LD_LIBRARY_PATH=/usr/local/apr/lib:/usr/lib
> >>
> >> Can anyone help me with this problem?
> >>
> >> Regards,
> >> --Stefan
> >>
> >>
> >> ---------------------------------------------------------------------
> >> 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
> 
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

---------------------------------------------------------------------
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


Re: APR not found under Linux

Posted by Stefan Wachter <St...@gmx.de>.
Hi Rajeev,

I changed the order of the directories to /usr/lib:/usr/local/apr/lib 
but I did not help.

Cheers,
--Stefan


Rajeev N. Jha wrote:
> Try putting the ssl libs in front of apr/tcnative.
>
> Thanks
> - Rajeev.
>
> Stefan Wachter wrote:
>> Hi all,
>>
>> I tried to run Tomcat using the APR under (Suse-)Linux but did not 
>> succeed. During startup there is still the well known message:
>>
>> The Apache Tomcat Native library which allows optimal performance in 
>> production environments was not found on the java.library.path: 
>> /java/jdk1.5.0_05/jre/lib/i386/client:/java/jdk1.5.0_05/jre/lib/i386:/java/jdk1.5.0_05/jre/../lib/i386:/usr/local/apr/lib:/usr/lib 
>>
>>
>> Yet, in the directory /usr/local/apr/lib there are the apr and 
>> tcnative libraries. This is the listing of that directory:
>>
>> -rw-r--r--  1 root root    7661 2006-06-30 09:56 apr.exp
>> -rw-r--r--  1 root root 1164070 2006-06-30 09:56 libapr-1.a
>> -rwxr-xr-x  1 root root     831 2006-06-30 09:56 libapr-1.la
>> lrwxrwxrwx  1 root root      17 2006-06-30 09:56 libapr-1.so -> 
>> libapr-1.so.0.2.7
>> lrwxrwxrwx  1 root root      17 2006-06-30 09:56 libapr-1.so.0 -> 
>> libapr-1.so.0.2.7
>> -rwxr-xr-x  1 root root  636499 2006-06-30 09:56 libapr-1.so.0.2.7
>> -rw-r--r--  1 root root 1380234 2006-06-30 10:07 libtcnative-1.a
>> -rwxr-xr-x  1 root root     912 2006-06-30 10:07 libtcnative-1.la
>> lrwxrwxrwx  1 root root      22 2006-06-30 10:07 libtcnative-1.so -> 
>> libtcnative-1.so.0.2.7
>> lrwxrwxrwx  1 root root      22 2006-06-30 10:07 libtcnative-1.so.0 
>> -> libtcnative-1.so.0.2.7
>> -rwxr-xr-x  1 root root  800108 2006-06-30 10:07 libtcnative-1.so.0.2.7
>> drwxr-xr-x  2 root root     104 2006-06-30 10:07 pkgconfig
>>
>> In addition the directory /usr/lib contains the openssl library:
>>
>> lrwxrwxrwx  1 root root     15 2005-11-01 14:39 libssl.so.0 -> 
>> libssl.so.0.9.7
>> -rwxr-xr-x  1 root root 220153 2005-10-14 18:14 libssl.so.0.9.7
>>
>> I also including these two directories in the LD_LIBRARY_PATH. For 
>> that purpose I created a setenv.sh with the line
>>
>> export LD_LIBRARY_PATH=/usr/local/apr/lib:/usr/lib
>>
>> Can anyone help me with this problem?
>>
>> Regards,
>> --Stefan
>>
>>
>> ---------------------------------------------------------------------
>> 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


Re: APR not found under Linux

Posted by "Rajeev N. Jha" <jh...@gmail.com>.
Try putting the ssl libs in front of apr/tcnative.

Thanks
- Rajeev.

Stefan Wachter wrote:
> Hi all,
>
> I tried to run Tomcat using the APR under (Suse-)Linux but did not 
> succeed. During startup there is still the well known message:
>
> The Apache Tomcat Native library which allows optimal performance in 
> production environments was not found on the java.library.path: 
> /java/jdk1.5.0_05/jre/lib/i386/client:/java/jdk1.5.0_05/jre/lib/i386:/java/jdk1.5.0_05/jre/../lib/i386:/usr/local/apr/lib:/usr/lib 
>
>
> Yet, in the directory /usr/local/apr/lib there are the apr and 
> tcnative libraries. This is the listing of that directory:
>
> -rw-r--r--  1 root root    7661 2006-06-30 09:56 apr.exp
> -rw-r--r--  1 root root 1164070 2006-06-30 09:56 libapr-1.a
> -rwxr-xr-x  1 root root     831 2006-06-30 09:56 libapr-1.la
> lrwxrwxrwx  1 root root      17 2006-06-30 09:56 libapr-1.so -> 
> libapr-1.so.0.2.7
> lrwxrwxrwx  1 root root      17 2006-06-30 09:56 libapr-1.so.0 -> 
> libapr-1.so.0.2.7
> -rwxr-xr-x  1 root root  636499 2006-06-30 09:56 libapr-1.so.0.2.7
> -rw-r--r--  1 root root 1380234 2006-06-30 10:07 libtcnative-1.a
> -rwxr-xr-x  1 root root     912 2006-06-30 10:07 libtcnative-1.la
> lrwxrwxrwx  1 root root      22 2006-06-30 10:07 libtcnative-1.so -> 
> libtcnative-1.so.0.2.7
> lrwxrwxrwx  1 root root      22 2006-06-30 10:07 libtcnative-1.so.0 -> 
> libtcnative-1.so.0.2.7
> -rwxr-xr-x  1 root root  800108 2006-06-30 10:07 libtcnative-1.so.0.2.7
> drwxr-xr-x  2 root root     104 2006-06-30 10:07 pkgconfig
>
> In addition the directory /usr/lib contains the openssl library:
>
> lrwxrwxrwx  1 root root     15 2005-11-01 14:39 libssl.so.0 -> 
> libssl.so.0.9.7
> -rwxr-xr-x  1 root root 220153 2005-10-14 18:14 libssl.so.0.9.7
>
> I also including these two directories in the LD_LIBRARY_PATH. For 
> that purpose I created a setenv.sh with the line
>
> export LD_LIBRARY_PATH=/usr/local/apr/lib:/usr/lib
>
> Can anyone help me with this problem?
>
> Regards,
> --Stefan
>
>
> ---------------------------------------------------------------------
> 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


Re: APR not found under Linux

Posted by "Rajeev N. Jha" <jh...@gmail.com>.
After reading the entire thread, i am out of ideas as well ;o) stefan, 
please post your issue+ solution when you have solved it .

Thanks

Markus Schönhaber wrote:
> Stefan Wachter wrote:
>   
>> the ldd command outputs the following dependencies:
>>
>>         libapr-1.so.0 => /usr/local/apr/lib/libapr-1.so.0
>> (0x00002aaaaabcc000)
>>         librt.so.1 => /lib64/tls/librt.so.1 (0x00002aaaaad17000)
>>         libcrypt.so.1 => /lib64/libcrypt.so.1 (0x00002aaaaae1f000)
>>         libpthread.so.0 => /lib64/tls/libpthread.so.0 (0x00002aaaaaf59000)
>>         libdl.so.2 => /lib64/libdl.so.2 (0x00002aaaab06e000)
>>         libssl.so.0.9.7 => /usr/lib64/libssl.so.0.9.7 (0x00002aaaab171000)
>>         libcrypto.so.0.9.7 => /usr/lib64/libcrypto.so.0.9.7
>> (0x00002aaaab2a7000)
>>         libc.so.6 => /lib64/tls/libc.so.6 (0x00002aaaab4da000)
>>         /lib64/ld-linux-x86-64.so.2 (0x0000555555554000)
>>     
>
> This looks OK to me.
> I've had problems once after moving the installation directory of apr and 
> tcnative. The apr lib was still sought for at the original place, which 
> failed. But this does not seem to be the problem in your case.
> I'm out of ideas, sorry.
>
> Regards
>   mks
>
> ---------------------------------------------------------------------
> 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


Re: APR not found under Linux

Posted by Markus Schönhaber <ma...@schoenhaber.de>.
Stefan Wachter wrote:
> the ldd command outputs the following dependencies:
>
>         libapr-1.so.0 => /usr/local/apr/lib/libapr-1.so.0
> (0x00002aaaaabcc000)
>         librt.so.1 => /lib64/tls/librt.so.1 (0x00002aaaaad17000)
>         libcrypt.so.1 => /lib64/libcrypt.so.1 (0x00002aaaaae1f000)
>         libpthread.so.0 => /lib64/tls/libpthread.so.0 (0x00002aaaaaf59000)
>         libdl.so.2 => /lib64/libdl.so.2 (0x00002aaaab06e000)
>         libssl.so.0.9.7 => /usr/lib64/libssl.so.0.9.7 (0x00002aaaab171000)
>         libcrypto.so.0.9.7 => /usr/lib64/libcrypto.so.0.9.7
> (0x00002aaaab2a7000)
>         libc.so.6 => /lib64/tls/libc.so.6 (0x00002aaaab4da000)
>         /lib64/ld-linux-x86-64.so.2 (0x0000555555554000)

This looks OK to me.
I've had problems once after moving the installation directory of apr and 
tcnative. The apr lib was still sought for at the original place, which 
failed. But this does not seem to be the problem in your case.
I'm out of ideas, sorry.

Regards
  mks

---------------------------------------------------------------------
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


Re: APR not found under Linux

Posted by Stefan Wachter <St...@gmx.de>.
Hi Markus,

the ldd command outputs the following dependencies:

        libapr-1.so.0 => /usr/local/apr/lib/libapr-1.so.0 
(0x00002aaaaabcc000)
        librt.so.1 => /lib64/tls/librt.so.1 (0x00002aaaaad17000)
        libcrypt.so.1 => /lib64/libcrypt.so.1 (0x00002aaaaae1f000)
        libpthread.so.0 => /lib64/tls/libpthread.so.0 (0x00002aaaaaf59000)
        libdl.so.2 => /lib64/libdl.so.2 (0x00002aaaab06e000)
        libssl.so.0.9.7 => /usr/lib64/libssl.so.0.9.7 (0x00002aaaab171000)
        libcrypto.so.0.9.7 => /usr/lib64/libcrypto.so.0.9.7 
(0x00002aaaab2a7000)
        libc.so.6 => /lib64/tls/libc.so.6 (0x00002aaaab4da000)
        /lib64/ld-linux-x86-64.so.2 (0x0000555555554000)

Having seen this, I augmented the LD_LIBRARY_PATH in setenv.sh:

export LD_LIBRARY_PATH=/usr/local/apr/lib:/lib64/tls:/lib64:/usr/lib64

However, the message stays the same (now containing the additional 
directories):

The Apache Tomcat Native library which allows optimal performance in 
production environments was not found on the java.library.path: 
/java/jdk1.5.0_05/jre/lib/i386/client:/java/jdk1.5.0_05/jre/lib/i386:/java/jdk1.5.0_05/jre/../lib/i386:/usr/local/apr/lib:/lib64/tls:/lib64:/usr/lib64

Cheers,
--Stefan


Markus Schönhaber wrote:
> Stefan Wachter wrote:
>   
>> The Apache Tomcat Native library which allows optimal performance in
>> production environments was not found on the java.library.path:
>> /java/jdk1.5.0_05/jre/lib/i386/client:/java/jdk1.5.0_05/jre/lib/i386:/java/
>> jdk1.5.0_05/jre/../lib/i386:/usr/local/apr/lib:/usr/lib
>>
>> Yet, in the directory /usr/local/apr/lib there are the apr and tcnative
>> libraries. This is the listing of that directory:
>>     
> [...]
>
> What does
> ldd /usr/local/apr/lib/libtcnative-1.so.0.2.7
> say?
>
> Regards
>   mks
>
> ---------------------------------------------------------------------
> 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


Re: APR not found under Linux

Posted by Markus Schönhaber <ma...@schoenhaber.de>.
Stefan Wachter wrote:
> The Apache Tomcat Native library which allows optimal performance in
> production environments was not found on the java.library.path:
> /java/jdk1.5.0_05/jre/lib/i386/client:/java/jdk1.5.0_05/jre/lib/i386:/java/
>jdk1.5.0_05/jre/../lib/i386:/usr/local/apr/lib:/usr/lib
>
> Yet, in the directory /usr/local/apr/lib there are the apr and tcnative
> libraries. This is the listing of that directory:
[...]

What does
ldd /usr/local/apr/lib/libtcnative-1.so.0.2.7
say?

Regards
  mks

---------------------------------------------------------------------
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