Re: Problem with Apache Portable Runtime (APR) based Native library for Tomcat
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jarda, On 4/18/2011 1:12 AM, Jaroslav Fikker wrote: Thank you very much for your tip. I had tried to run command CFLAGS=-m32 CXXFLAGS=-m32 LDFLAGS=-m32 ./configure --with-apr=/usr --prefix=/opt/tomcat_6_0 but I still was unsuccessful. I check log file and I think that cause of problem is in /usr/bin/apr-1-config file. One command inside this file is: pkg-config --variable=libdir apr-1 Output of this command is /usr/lib64. I have installed both 32bit (/usr/lib) and 64bit (/usr/lib64) version of APR. Does exist any way to force configure command to use 32bit path of APR? Your tcnative build must match your apr and openssl architectures. If you have 64-bit APR, you must use 64-bit tcnative and therefore 64-bit Java. I'm not sure if it's possible to use your package manager to install both 32- and 64-bit APR libraries so you can choose. You might want to simplify things and build everything x64. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk2spq8ACgkQ9CaO5/Lv0PBZBACgmRGS8cmw1fDCL2BfJShkVx89 fsAAoLCixJfNpgKrSlur1yEQ8Hff/siY =TUda -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Problem with Apache Portable Runtime (APR) based Native library for Tomcat
Hi Konstantin, Thank you very much for your tip. I had tried to run command CFLAGS=-m32 CXXFLAGS=-m32 LDFLAGS=-m32 ./configure --with-apr=/usr --prefix=/opt/tomcat_6_0 but I still was unsuccessful. I check log file and I think that cause of problem is in /usr/bin/apr-1-config file. One command inside this file is: pkg-config --variable=libdir apr-1 Output of this command is /usr/lib64. I have installed both 32bit (/usr/lib) and 64bit (/usr/lib64) version of APR. Does exist any way to force configure command to use 32bit path of APR? Best regards, Jarda F. __ Od: Konstantin Kolinko knst.koli...@gmail.com Komu: Tomcat Users List users@tomcat.apache.org Datum: 15.04.2011 16:48 Předmět: Re: Problem with Apache Portable Runtime (APR) based Native library for Tomcat 2011/4/13 Jaroslav Fikker fik...@atlas.cz: You are right - my java is 32bit. So that is the probelm in compilation of APR? Java byte code is agnostic to CPU architecture, but native code should be for the same architecture as the Java runtime that loads it. You should either use 64-bit JRE with 64-bit library, or recompile the library as 32-bit. (*) Whether there are benefits in using 64-bit Java is a separate question. (*) I have never tried to build 32-bit apps on 64-bit Linux. Looking at what is written elsewhere my guess would be: CFLAGS=-m32 CXXFLAGS=-m32 LDFLAGS=-m32 ./configure Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Problem with Apache Portable Runtime (APR) based Native library for Tomcat
2011/4/13 Jaroslav Fikker fik...@atlas.cz: You are right - my java is 32bit. So that is the probelm in compilation of APR? Java byte code is agnostic to CPU architecture, but native code should be for the same architecture as the Java runtime that loads it. You should either use 64-bit JRE with 64-bit library, or recompile the library as 32-bit. (*) Whether there are benefits in using 64-bit Java is a separate question. (*) I have never tried to build 32-bit apps on 64-bit Linux. Looking at what is written elsewhere my guess would be: CFLAGS=-m32 CXXFLAGS=-m32 LDFLAGS=-m32 ./configure Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Problem with Apache Portable Runtime (APR) based Native library for Tomcat
Hi, I apologize for my stupid question but I am not Linux specialist. Is there some recommendation for using 32bit java (and APR) on 64bit RedHat? JF __ Od: Mladen Turk mt...@apache.org Komu: users@tomcat.apache.org Datum: 13.04.2011 14:38 Předmět: Re: Problem with Apache Portable Runtime (APR) based Native library for Tomcat On 04/13/2011 02:29 PM, Jaroslav Fikker wrote: So that is the probelm in compilation of APR? LOL. Nope. It's in your java cause you have 64-bit OS, right? Regards -- ^TM - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Problem with Apache Portable Runtime (APR) based Native library for Tomcat
Jaroslav Fikker wrote: Hi, I apologize for my stupid question but I am not Linux specialist. Is there some recommendation for using 32bit java (and APR) on 64bit RedHat? It is not a stupid question. Proof : I have the same question. :-) If you allow me to hijack your post, my question is : If my server has a 64-bit capable CPU, a 64-bit Linux O.S., and 8 GB of RAM, and I have a tomcat which runs only one or two small webapps, and is unlikely to ever need more than e.g. 1 GB of RAM, is there any advantage (or inconvenient) in running this Tomcat in a 64-bit (or 32-bit) JVM ? From previous posts on this list, I gather that basically the only advantage of using a 64-bit JVM, is that one can allocate more than 2-3 GB of RAM to the JVM. But on the other hand, for the same workload, a 64-bit JVM will use a significantly larger amount of RAM, without immediate benefits. True/false ? So for the above Tomcat, I would use less resources, without sacrificing performance, by running it in a 32-bit JVM. True/false ? And if for some other Java application on the same server, I needed more than 2 GB or RAM, I could always run that one in a separate 64-bit JVM. True/false ? - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Problem with Apache Portable Runtime (APR) based Native library for Tomcat
On 04/14/2011 12:10 PM, André Warnier wrote: Jaroslav Fikker wrote: I apologize for my stupid question but I am not Linux specialist. Is there some recommendation for using 32bit java (and APR) on 64bit RedHat? It is not a stupid question. Proof : I have the same question. :-) If you allow me to hijack your post, my question is : If my server has a 64-bit capable CPU, a 64-bit Linux O.S., and 8 GB of RAM, and I have a tomcat which runs only one or two small webapps, and is unlikely to ever need more than e.g. 1 GB of RAM, is there any advantage (or inconvenient) in running this Tomcat in a 64-bit (or 32-bit) JVM ? I totally agree with you. If you don't need huge memory use 32-bit JVM It is as well more then 30% memory efficient for the same application. I have a simple MemoryTest.java that can prove that easily. However not all 64-bit linux boxes have 32-bit JVM support, so not a general solution. Also neither -d32/-d64 works (Although I'm working on a OpenJDK patches for that, but the OpenJDK community, is well ... fill in the gaps :) Regards -- ^TM - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Problem with Apache Portable Runtime (APR) based Native library for Tomcat
On 04/13/2011 07:14 AM, Jaroslav Fikker wrote: Hi, I also create /opt/tomcat_6_0/bin/setenv.sh file with this content: LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$CATALINA_HOME/lib export LD_LIBRARY_PATH But when I start server with startup.sh script I can find next warning incatalina.out file (but Tomcat application server runs and works): Apr 11, 2011 8:44:15 AM org.apache.catalina.core.AprLifecycleListener init INFO: The APR based Apache Tomcat Native library which allows optimalperformance in production environments was not found on the java.library.path:/usr/lib/jvm/java-1.6.0-ibm-1.6.0.9.1/jre/lib/i38 6::/opt/tomcat_6_0/lib:/usr/lib Where could be a problem? Thank you very much for your help. What is the output of ls /opt/tomcat_6_0/lib ? $ LD_LIBRARY_PATH=$CATALINA_HOME/lib:$LD_LIBRARY_PATH $ export LD_LIBRARY_PATH $ ldd /opt/tomcat_6_0/lib/libtcnative-1.so Make sure there are no unresolved references. Regards -- ^TM - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Problem with Apache Portable Runtime (APR) based Native library for Tomcat
Hi, There is output of ldd command: ldd /opt/tomcat_6_0/lib/libtcnative-1.so linux-vdso.so.1 = (0x7fff4a5d9000) libssl.so.6 = /lib64/libssl.so.6 (0x2ad6f40ad000) libcrypto.so.6 = /lib64/libcrypto.so.6 (0x2ad6f42fa000) libapr-1.so.0 = /usr/lib64/libapr-1.so.0 (0x2ad6f464b000) libpthread.so.0 = /lib64/libpthread.so.0 (0x2ad6f4872000) libdl.so.2 = /lib64/libdl.so.2 (0x2ad6f4a8e000) libc.so.6 = /lib64/libc.so.6 (0x2ad6f4c92000) libgssapi_krb5.so.2 = /usr/lib64/libgssapi_krb5.so.2 (0x2ad6f4fea000) libkrb5.so.3 = /usr/lib64/libkrb5.so.3 (0x2ad6f5219000) libcom_err.so.2 = /lib64/libcom_err.so.2 (0x2ad6f54ae000) libk5crypto.so.3 = /usr/lib64/libk5crypto.so.3 (0x2ad6f56b) libz.so.1 = /usr/lib64/libz.so.1 (0x2ad6f58d6000) libuuid.so.1 = /lib64/libuuid.so.1 (0x2ad6f5aea000) libcrypt.so.1 = /lib64/libcrypt.so.1 (0x2ad6f5cee000) /lib64/ld-linux-x86-64.so.2 (0x00349dc0) libkrb5support.so.0 = /usr/lib64/libkrb5support.so.0 (0x2ad6f5f27000) libkeyutils.so.1 = /lib64/libkeyutils.so.1 (0x2ad6f612f000) libresolv.so.2 = /lib64/libresolv.so.2 (0x2ad6f6331000) libselinux.so.1 = /lib64/libselinux.so.1 (0x2ad6f6547000) libsepol.so.1 = /lib64/libsepol.so.1 (0x2ad6f675f000) It seems that all is OK. Jarda __ Od: Mladen Turk mt...@apache.org Komu: Tomcat Users List users@tomcat.apache.org Datum: 13.04.2011 09:18 Předmět: Re: Problem with Apache Portable Runtime (APR) based Native library for Tomcat On 04/13/2011 07:14 AM, Jaroslav Fikker wrote: Hi, I also create /opt/tomcat_6_0/bin/setenv.sh file with this content: LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$CATALINA_HOME/lib export LD_LIBRARY_PATH But when I start server with startup.sh script I can find next warning incatalina.out file (but Tomcat application server runs and works): Apr 11, 2011 8:44:15 AM org.apache.catalina.core.AprLifecycleListener init INFO: The APR based Apache Tomcat Native library which allows optimalperformance in production environments was not found on the java.library.path:/usr/lib/jvm/java-1.6.0-ibm-1.6.0.9.1/jre/lib/i38 6::/opt/tomcat_6_0/lib:/usr/lib Where could be a problem? Thank you very much for your help. What is the output of ls /opt/tomcat_6_0/lib ? $ LD_LIBRARY_PATH=$CATALINA_HOME/lib:$LD_LIBRARY_PATH $ export LD_LIBRARY_PATH $ ldd /opt/tomcat_6_0/lib/libtcnative-1.so Make sure there are no unresolved references. Regards -- ^TM - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Problem with Apache Portable Runtime (APR) based Native library for Tomcat
/lib64/* -- is your Java 64-bit as well? I guess yours is 32-bit, because version.sh printed Architecture: x86 2011/4/13 Jaroslav Fikker fik...@atlas.cz: Hi, There is output of ldd command: ldd /opt/tomcat_6_0/lib/libtcnative-1.so linux-vdso.so.1 = (0x7fff4a5d9000) libssl.so.6 = /lib64/libssl.so.6 (0x2ad6f40ad000) libcrypto.so.6 = /lib64/libcrypto.so.6 (0x2ad6f42fa000) libapr-1.so.0 = /usr/lib64/libapr-1.so.0 (0x2ad6f464b000) libpthread.so.0 = /lib64/libpthread.so.0 (0x2ad6f4872000) libdl.so.2 = /lib64/libdl.so.2 (0x2ad6f4a8e000) libc.so.6 = /lib64/libc.so.6 (0x2ad6f4c92000) libgssapi_krb5.so.2 = /usr/lib64/libgssapi_krb5.so.2 (0x2ad6f4fea000) libkrb5.so.3 = /usr/lib64/libkrb5.so.3 (0x2ad6f5219000) libcom_err.so.2 = /lib64/libcom_err.so.2 (0x2ad6f54ae000) libk5crypto.so.3 = /usr/lib64/libk5crypto.so.3 (0x2ad6f56b) libz.so.1 = /usr/lib64/libz.so.1 (0x2ad6f58d6000) libuuid.so.1 = /lib64/libuuid.so.1 (0x2ad6f5aea000) libcrypt.so.1 = /lib64/libcrypt.so.1 (0x2ad6f5cee000) /lib64/ld-linux-x86-64.so.2 (0x00349dc0) libkrb5support.so.0 = /usr/lib64/libkrb5support.so.0 (0x2ad6f5f27000) libkeyutils.so.1 = /lib64/libkeyutils.so.1 (0x2ad6f612f000) libresolv.so.2 = /lib64/libresolv.so.2 (0x2ad6f6331000) libselinux.so.1 = /lib64/libselinux.so.1 (0x2ad6f6547000) libsepol.so.1 = /lib64/libsepol.so.1 (0x2ad6f675f000) It seems that all is OK. Jarda __ Od: Mladen Turk mt...@apache.org Komu: Tomcat Users List users@tomcat.apache.org Datum: 13.04.2011 09:18 Předmět: Re: Problem with Apache Portable Runtime (APR) based Native library for Tomcat On 04/13/2011 07:14 AM, Jaroslav Fikker wrote: Hi, I also create /opt/tomcat_6_0/bin/setenv.sh file with this content: LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$CATALINA_HOME/lib export LD_LIBRARY_PATH But when I start server with startup.sh script I can find next warning incatalina.out file (but Tomcat application server runs and works): Apr 11, 2011 8:44:15 AM org.apache.catalina.core.AprLifecycleListener init INFO: The APR based Apache Tomcat Native library which allows optimalperformance in production environments was not found on the java.library.path:/usr/lib/jvm/java-1.6.0-ibm-1.6.0.9.1/jre/lib/i38 6::/opt/tomcat_6_0/lib:/usr/lib Where could be a problem? Thank you very much for your help. What is the output of ls /opt/tomcat_6_0/lib ? $ LD_LIBRARY_PATH=$CATALINA_HOME/lib:$LD_LIBRARY_PATH $ export LD_LIBRARY_PATH $ ldd /opt/tomcat_6_0/lib/libtcnative-1.so Make sure there are no unresolved references. Regards -- ^TM - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Problem with Apache Portable Runtime (APR) based Native library for Tomcat
Hi Konstantin, You are right - my java is 32bit. So that is the probelm in compilation of APR? JF __ Od: Konstantin Kolinko knst.koli...@gmail.com Komu: Tomcat Users List users@tomcat.apache.org Datum: 13.04.2011 14:15 Předmět: Re: Problem with Apache Portable Runtime (APR) based Native library for Tomcat /lib64/* -- is your Java 64-bit as well? I guess yours is 32-bit, because version.sh printed Architecture: x86 2011/4/13 Jaroslav Fikker fik...@atlas.cz: Hi, There is output of ldd command: ldd /opt/tomcat_6_0/lib/libtcnative-1.so linux-vdso.so.1 = (0x7fff4a5d9000) libssl.so.6 = /lib64/libssl.so.6 (0x2ad6f40ad000) libcrypto.so.6 = /lib64/libcrypto.so.6 (0x2ad6f42fa000) libapr-1.so.0 = /usr/lib64/libapr-1.so.0 (0x2ad6f464b000) libpthread.so.0 = /lib64/libpthread.so.0 (0x2ad6f4872000) libdl.so.2 = /lib64/libdl.so.2 (0x2ad6f4a8e000) libc.so.6 = /lib64/libc.so.6 (0x2ad6f4c92000) libgssapi_krb5.so.2 = /usr/lib64/libgssapi_krb5.so.2 (0x2ad6f4fea000) libkrb5.so.3 = /usr/lib64/libkrb5.so.3 (0x2ad6f5219000) libcom_err.so.2 = /lib64/libcom_err.so.2 (0x2ad6f54ae000) libk5crypto.so.3 = /usr/lib64/libk5crypto.so.3 (0x2ad6f56b) libz.so.1 = /usr/lib64/libz.so.1 (0x2ad6f58d6000) libuuid.so.1 = /lib64/libuuid.so.1 (0x2ad6f5aea000) libcrypt.so.1 = /lib64/libcrypt.so.1 (0x2ad6f5cee000) /lib64/ld-linux-x86-64.so.2 (0x00349dc0) libkrb5support.so.0 = /usr/lib64/libkrb5support.so.0 (0x2ad6f5f27000) libkeyutils.so.1 = /lib64/libkeyutils.so.1 (0x2ad6f612f000) libresolv.so.2 = /lib64/libresolv.so.2 (0x2ad6f6331000) libselinux.so.1 = /lib64/libselinux.so.1 (0x2ad6f6547000) libsepol.so.1 = /lib64/libsepol.so.1 (0x2ad6f675f000) It seems that all is OK. Jarda __ Od: Mladen Turk mt...@apache.org Komu: Tomcat Users List users@tomcat.apache.org Datum: 13.04.2011 09:18 Předmět: Re: Problem with Apache Portable Runtime (APR) based Native library for Tomcat On 04/13/2011 07:14 AM, Jaroslav Fikker wrote: Hi, I also create /opt/tomcat_6_0/bin/setenv.sh file with this content: LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$CATALINA_HOME/lib export LD_LIBRARY_PATH But when I start server with startup.sh script I can find next warning incatalina.out file (but Tomcat application server runs and works): Apr 11, 2011 8:44:15 AM org.apache.catalina.core.AprLifecycleListener init INFO: The APR based Apache Tomcat Native library which allows optimalperformance in production environments was not found on the java.library.path:/usr/lib/jvm/java-1.6.0-ibm-1.6.0.9.1/jre/lib/i38 6::/opt/tomcat_6_0/lib:/usr/lib Where could be a problem? Thank you very much for your help. What is the output of ls /opt/tomcat_6_0/lib ? $ LD_LIBRARY_PATH=$CATALINA_HOME/lib:$LD_LIBRARY_PATH $ export LD_LIBRARY_PATH $ ldd /opt/tomcat_6_0/lib/libtcnative-1.so Make sure there are no unresolved references. Regards -- ^TM - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Problem with Apache Portable Runtime (APR) based Native library for Tomcat
On 04/13/2011 02:29 PM, Jaroslav Fikker wrote: So that is the probelm in compilation of APR? LOL. Nope. It's in your java cause you have 64-bit OS, right? Regards -- ^TM - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Problem with Apache Portable Runtime (APR) based Native library for Tomcat
Hi, Do you have somebody some tip where could be a problem? Thanks in advance. J. Fikker - Hello Konstantin, There is output of ls command: ls -la /opt/tomcat_6_0/lib/ total 9484 drwxr-x--- 3 wasadmin wasadmin4096 Apr 11 07:30 . drwxr-x--- 11 wasadmin wasadmin4096 Apr 11 07:30 .. -rwxr-x--- 1 wasadmin wasadmin5881 Sep 11 2009 AMTomcatValve.jar -rwxr-x--- 1 wasadmin wasadmin 15239 Feb 2 20:04 annotations-api.jar -rwxr-x--- 1 wasadmin wasadmin 53756 Feb 2 20:04 catalina-ant.jar -rwxr-x--- 1 wasadmin wasadmin 129895 Feb 2 20:04 catalina-ha.jar -rwxr-x--- 1 wasadmin wasadmin 1216210 Feb 2 20:04 catalina.jar -rwxr-x--- 1 wasadmin wasadmin 237317 Feb 2 20:04 catalina-tribes.jar -rwxr-x--- 1 wasadmin wasadmin 1563059 Feb 2 20:04 ecj-3.3.1.jar -rwxr-x--- 1 wasadmin wasadmin 33410 Feb 2 20:04 el-api.jar -rwxr-x--- 1 wasadmin wasadmin 112550 Feb 2 20:04 jasper-el.jar -rwxr-x--- 1 wasadmin wasadmin 526946 Feb 2 20:04 jasper.jar -rwxr-x--- 1 wasadmin wasadmin 76692 Feb 2 20:04 jsp-api.jar -rwxr-xr-- 1 wasadmin wasadmin 156 Apr 11 07:30 libtcnative-1.a -rwxr-xr-x 1 wasadmin wasadmin 893 Apr 11 07:30 libtcnative-1.la lrwxrwxrwx 1 wasadmin wasadmin 23 Apr 11 07:30 libtcnative-1.so -libtcnative-1.so.0.1.20 lrwxrwxrwx 1 wasadmin wasadmin 23 Apr 11 07:30 libtcnative-1.so.0 -libtcnative-1.so.0.1.20 -rwxr-xr-x 1 wasadmin wasadmin 874046 Apr 11 07:30 libtcnative-1.so.0.1.20 -rwxr-x--- 1 wasadmin wasadmin 1890499 Sep 11 2009 ojdbc5.jar drwxr-xr-x 2 wasadmin wasadmin4096 Apr 11 07:30 pkgconfig -rwxr-x--- 1 wasadmin wasadmin 88210 Feb 2 20:04 servlet-api.jar -rwxr-x--- 1 wasadmin wasadmin 764743 Feb 2 20:04 tomcat-coyote.jar -rwxr-x--- 1 wasadmin wasadmin 253526 Feb 2 20:04 tomcat-dbcp.jar -rwxr-x--- 1 wasadmin wasadmin 70034 Feb 2 20:04 tomcat-i18n-es.jar -rwxr-x--- 1 wasadmin wasadmin 51971 Feb 2 20:04 tomcat-i18n-fr.jar -rwxr-x--- 1 wasadmin wasadmin 55036 Feb 2 20:04 tomcat-i18n-ja.jar J. Fikker __ Od: Konstantin Kolinko knst...@gmail.com Komu: Tomcat Users List use...@tomcat.apache.org Datum: 11.04.2011 09:09 Předmět: Re: Problem with Apache Portable Runtime (APR) based Native library forTomcat 2011/4/11 Jaroslav Fikker fik...@atlas.cz: I installed APR library with these commands: ./configure --with-apr=/usr --prefix=/opt/tomcat_6_0 make make install I also create /opt/tomcat_6_0/bin/setenv.sh file with this content: LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$CATALINA_HOME/lib export LD_LIBRARY_PATH But when I start server with startup.sh script I can find next warning incatalina.out file (but Tomcat application server runs and works): Apr 11, 2011 8:44:15 AM org.apache.catalina.core.AprLifecycleListener init INFO: The APR based Apache Tomcat Native library which allows optimalperformance in production environments was not found on the java.library.path:/usr/lib/jvm/java-1.6.0-ibm-1.6.0.9.1/jre/lib/i38 6::/opt/tomcat_6_0/lib:/usr/lib Where could be a problem? Thank you very much for your help. What is the output of ls /opt/tomcat_6_0/lib ? Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Problem with Apache Portable Runtime (APR) based Native library for Tomcat
Hello everybody. I need help with installation of Apache Portable Runtime (APR) based Native library for Tomcat. I use Tomcat 6.0.32.0 on Red Hat Enterprise Linux Server release 5.6 (Tikanga). There is output from version.sh: Using CATALINA_BASE: /opt/tomcat_6_0/servers/ITCAMREP_TT01S01_CL01 Using CATALINA_HOME: /opt/tomcat_6_0 Using CATALINA_TMPDIR: /opt/tomcat_6_0/servers/ITCAMREP_TT01S01_CL01/temp Using JRE_HOME:/usr/lib/jvm/java-1.6.0-ibm Using CLASSPATH: /opt/tomcat_6_0/bin/bootstrap.jar Server version: Apache Tomcat/6.0.32 Server built: February 2 2011 2003 Server number: 6.0.32.0 OS Name:Linux OS Version: 2.6.18-238.5.1.el5 Architecture: x86 JVM Version:pxi3260sr9fp1-20110208_03 (SR9 FP1) JVM Vendor: IBM Corporation I installed APR library with these commands: ./configure --with-apr=/usr --prefix=/opt/tomcat_6_0 make make install I also create /opt/tomcat_6_0/bin/setenv.sh file with this content: LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$CATALINA_HOME/lib export LD_LIBRARY_PATH But when I start server with startup.sh script I can find next warning in catalina.out file (but Tomcat application server runs and works): Apr 11, 2011 8:44:15 AM 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/lib/jvm/java-1.6.0-ibm-1.6.0.9.1/jre/lib/i38 6::/opt/tomcat_6_0/lib:/usr/lib Where could be a problem? Thank you very much for your help. Best regards, J. Fikker. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Problem with Apache Portable Runtime (APR) based Native library for Tomcat
2011/4/11 Jaroslav Fikker fik...@atlas.cz: I installed APR library with these commands: ./configure --with-apr=/usr --prefix=/opt/tomcat_6_0 make make install I also create /opt/tomcat_6_0/bin/setenv.sh file with this content: LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$CATALINA_HOME/lib export LD_LIBRARY_PATH But when I start server with startup.sh script I can find next warning in catalina.out file (but Tomcat application server runs and works): Apr 11, 2011 8:44:15 AM 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/lib/jvm/java-1.6.0-ibm-1.6.0.9.1/jre/lib/i38 6::/opt/tomcat_6_0/lib:/usr/lib Where could be a problem? Thank you very much for your help. What is the output of ls /opt/tomcat_6_0/lib ? Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Problem with Apache Portable Runtime (APR) based Native library for Tomcat
Hello Konstantin, There is output of ls command: ls -la /opt/tomcat_6_0/lib/ total 9484 drwxr-x--- 3 wasadmin wasadmin4096 Apr 11 07:30 . drwxr-x--- 11 wasadmin wasadmin4096 Apr 11 07:30 .. -rwxr-x--- 1 wasadmin wasadmin5881 Sep 11 2009 AMTomcatValve.jar -rwxr-x--- 1 wasadmin wasadmin 15239 Feb 2 20:04 annotations-api.jar -rwxr-x--- 1 wasadmin wasadmin 53756 Feb 2 20:04 catalina-ant.jar -rwxr-x--- 1 wasadmin wasadmin 129895 Feb 2 20:04 catalina-ha.jar -rwxr-x--- 1 wasadmin wasadmin 1216210 Feb 2 20:04 catalina.jar -rwxr-x--- 1 wasadmin wasadmin 237317 Feb 2 20:04 catalina-tribes.jar -rwxr-x--- 1 wasadmin wasadmin 1563059 Feb 2 20:04 ecj-3.3.1.jar -rwxr-x--- 1 wasadmin wasadmin 33410 Feb 2 20:04 el-api.jar -rwxr-x--- 1 wasadmin wasadmin 112550 Feb 2 20:04 jasper-el.jar -rwxr-x--- 1 wasadmin wasadmin 526946 Feb 2 20:04 jasper.jar -rwxr-x--- 1 wasadmin wasadmin 76692 Feb 2 20:04 jsp-api.jar -rwxr-xr-- 1 wasadmin wasadmin 156 Apr 11 07:30 libtcnative-1.a -rwxr-xr-x 1 wasadmin wasadmin 893 Apr 11 07:30 libtcnative-1.la lrwxrwxrwx 1 wasadmin wasadmin 23 Apr 11 07:30 libtcnative-1.so - libtcnative-1.so.0.1.20 lrwxrwxrwx 1 wasadmin wasadmin 23 Apr 11 07:30 libtcnative-1.so.0 - libtcnative-1.so.0.1.20 -rwxr-xr-x 1 wasadmin wasadmin 874046 Apr 11 07:30 libtcnative-1.so.0.1.20 -rwxr-x--- 1 wasadmin wasadmin 1890499 Sep 11 2009 ojdbc5.jar drwxr-xr-x 2 wasadmin wasadmin4096 Apr 11 07:30 pkgconfig -rwxr-x--- 1 wasadmin wasadmin 88210 Feb 2 20:04 servlet-api.jar -rwxr-x--- 1 wasadmin wasadmin 764743 Feb 2 20:04 tomcat-coyote.jar -rwxr-x--- 1 wasadmin wasadmin 253526 Feb 2 20:04 tomcat-dbcp.jar -rwxr-x--- 1 wasadmin wasadmin 70034 Feb 2 20:04 tomcat-i18n-es.jar -rwxr-x--- 1 wasadmin wasadmin 51971 Feb 2 20:04 tomcat-i18n-fr.jar -rwxr-x--- 1 wasadmin wasadmin 55036 Feb 2 20:04 tomcat-i18n-ja.jar J. Fikker __ Od: Konstantin Kolinko knst.koli...@gmail.com Komu: Tomcat Users List users@tomcat.apache.org Datum: 11.04.2011 09:09 Předmět: Re: Problem with Apache Portable Runtime (APR) based Native library for Tomcat 2011/4/11 Jaroslav Fikker fik...@atlas.cz: I installed APR library with these commands: ./configure --with-apr=/usr --prefix=/opt/tomcat_6_0 make make install I also create /opt/tomcat_6_0/bin/setenv.sh file with this content: LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$CATALINA_HOME/lib export LD_LIBRARY_PATH But when I start server with startup.sh script I can find next warning in catalina.out file (but Tomcat application server runs and works): Apr 11, 2011 8:44:15 AM 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/lib/jvm/java-1.6.0-ibm-1.6.0.9.1/jre/lib/i38 6::/opt/tomcat_6_0/lib:/usr/lib Where could be a problem? Thank you very much for your help. What is the output of ls /opt/tomcat_6_0/lib ? Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org