Re: Tomcat unable to find the apr library
I have exactly the same problem on RHEL 4: I compiled tomcat-native.tar.gz from tomcat 5.5.20 and installed the resulting dynamic library into /usr/local/apr/lib. Then I added CATALINA_OPTS=-Djava.library.path=/usr/local/apr/lib to my tomcat start script. I still get the message: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/local/apr/lib doing ldd /usr/local/apr/lib/libtcnative-1.so.0.1.3 revealed that all dependencies are found. I am using jsvc for starting tomcat. Any ideas what is wrong here? - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat unable to find the apr library
Hum, I remember that I had to download the source apr-1.2.7.tar.gz for APR directly from the apache website and use the classic ./configure make make install, Then I untar tomcat-native.tar.gz in the bin directory and run again configure --with-apr=/usr/local/apr/bin/ make make install This is true I dit not consider 32- or 64-bit compilation and the server use a 32 processor. Is there 2 differents packages 32 or 64 bit, or different compilation directive ? Thanks. Caldarale, Charles R a écrit : From: Michael Courcy [mailto:[EMAIL PROTECTED] Subject: Tomcat unable to find the apr library I wanted my tomcat instance use the APR (Apache Portable Runtime) so I installed it. Where did you get it in Linux-installable form? You normally have to build it for the platform it's going to be run on, using 32- or 64-bit compilation to match the JVM you have. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat unable to find the apr library
Michael Courcy wrote: Hum, I remember that I had to download the source apr-1.2.7.tar.gz for APR directly from the apache website and use the classic ./configure make make install, You need apr sources only if building from SVN, then you first have to ./buildconf.sh --with-apr=/location/of/the/apr-1.2.7 Then I untar tomcat-native.tar.gz in the bin directory and run again configure --with-apr=/usr/local/apr/bin/ make make install Usually that's the configure --with-apr=/usr/local/apr (if the APR was installed in a normal way) make make install will then copy the tcnative .so to the /usr/local/apr/lib Regards, Mladen. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat unable to find the apr library
Hi, I follow your advice and compiled successfully doing $ ./buildconf --with-apr=/home/ovh/src/soft/apr-1.2.7 $ ./configure --with-apr=/home/ovh/src/soft/apr-1.2.7 $ make $ make install All that went fine, the last message of make install was that libraries where put in /usr/local/apr/lib So I set my env var LD_LIBRARY_PATH $ export LD_LIBRARY_PATH=/usr/local/apr/lib:/usr/local/apr And restart tomcat... But still the same message : 17 oct. 2006 23:08:15 org.apache.catalina.core.AprLifecycleListener lifecycleEvent INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/java/jdk1.5.0_07/jre/lib/i386/client:/usr/java/jdk1.5.0_07/jre/lib/i386:/usr/java/jdk1.5.0_07/jre/../lib/i386:/usr/local/apr/lib:/usr/local/apr Honestly it does not matter that much, I'm going to work the best I can do to rely on apache server for serving static content and right now it's going to be enough. Thanks for your answer anyway. Cheers Mladen Turk a écrit : Michael Courcy wrote: Hum, I remember that I had to download the source apr-1.2.7.tar.gz for APR directly from the apache website and use the classic ./configure make make install, You need apr sources only if building from SVN, then you first have to ./buildconf.sh --with-apr=/location/of/the/apr-1.2.7 Then I untar tomcat-native.tar.gz in the bin directory and run again configure --with-apr=/usr/local/apr/bin/ make make install Usually that's the configure --with-apr=/usr/local/apr (if the APR was installed in a normal way) make make install will then copy the tcnative .so to the /usr/local/apr/lib Regards, Mladen. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat unable to find the apr library
Hi, I wanted my tomcat instance use the APR (Apache Portable Runtime) so I installed it. Installation went fine, and the library where installed in /usr/local/apr/lib. Then I set the env variable LD_LIBRAY_PATH to /usr/local/apr/lib. I restart tomcat, but I still get this message in the log INFO: The Apache Tomcat Native library which allo..[...]..s was not found on the java.library.path: [...]:/usr/local/apr/lib/ So I don't understand, because it looks like, all information to load the APR library is given, but tomcat failed to use it Any help ? - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]