Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 20044 invoked from network); 6 Oct 2008 12:58:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Oct 2008 12:58:17 -0000 Received: (qmail 41879 invoked by uid 500); 6 Oct 2008 12:58:04 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 41848 invoked by uid 500); 6 Oct 2008 12:58:04 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 41835 invoked by uid 99); 6 Oct 2008 12:58:04 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Oct 2008 05:58:04 -0700 X-ASF-Spam-Status: No, hits=2.1 required=10.0 tests=DNS_FROM_SECURITYSAGE,HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [206.190.38.254] (HELO web50909.mail.re2.yahoo.com) (206.190.38.254) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 06 Oct 2008 12:57:01 +0000 Received: (qmail 18715 invoked by uid 60001); 6 Oct 2008 12:56:35 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type:Message-ID; b=O64qP7gpGvat5af+KoiVl6Da5HU3Qu274rNCXwlYYRSwKeg7zumP4380EOABQUk5RU6X6lANcHbfam5wLhlnCkZPY4/LYRIgRLGonIzn8neq/hr3Hl5EKfDgu/MSaYtOrfN05W0lSGf30sj6LkCs7yA+uh2TtiBHt8Js9HnmTPI=; X-YMail-OSG: Xrwtn4YVM1kinwZYT7O4XrlqhCHnllZJMDdEd_9SJ6vEKZFaxJAAOG6YwYX8_j9Qv0zfvlB10nV3mbeRB4WmZsWCxzwJCnxmtSk6zKM8LqjT7vBRCJ2mTyACaexNG9c1.M8NA5xL7MnNK2_L1sEZsToXsXNyPIMSIvWwv3s44g8O7YgBNQ-- Received: from [68.73.75.198] by web50909.mail.re2.yahoo.com via HTTP; Mon, 06 Oct 2008 05:56:34 PDT X-Mailer: YahooMailRC/1096.40 YahooMailWebService/0.7.218.2 Date: Mon, 6 Oct 2008 05:56:34 -0700 (PDT) From: John Ozarchuk Subject: Re: Native library issue on RHEL5 To: Tomcat Users List MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-2107066957-1223297794=:17694" Message-ID: <178330.17694.qm@web50909.mail.re2.yahoo.com> X-Virus-Checked: Checked by ClamAV on apache.org --0-2107066957-1223297794=:17694 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable I set the LD_LIBRARY_PATH variable in my shell and starting Tomcat up is st= ill not seeing the native libraries. =0A=0AThanks=0A=0AJohn=0A=0A=0A=0A---= -- Original Message ----=0AFrom: Rainer Jung =0ATo= : Tomcat Users List =0ASent: Friday, October 3, 20= 08 8:37:57 AM=0ASubject: Re: Native library issue on RHEL5=0A=0AJohn Ozarch= uk schrieb:=0A> Here is the output of ldd libtcnative-1.so=0A> =0A> libssl.= so.6 =3D> /lib64/libssl.so.6 (0x00002aaaaace1000)=0A> libcrypto.so.6 =3D= > /lib64/libcrypto.so.6 (0x00002aaaaaf2a000)=0A> libapr-1.so.0 =3D> /usr= /lib64/libapr-1.so.0 (0x00002aaaab272000)=0A> libpthread.so.0 =3D> /lib6= 4/libpthread.so.0 (0x00002aaaab49a000)=0A> libdl.so.2 =3D> /lib64/libdl.= so.2 (0x00002aaaab6b4000)=0A> libc.so.6 =3D> /lib64/libc.so.6 (0x00002aa= aab8b8000)=0A> libgssapi_krb5.so.2 =3D> /usr/lib64/libgssapi_krb5.so.2 (= 0x00002aaaabc09000)=0A> libkrb5.so.3 =3D> /usr/lib64/libkrb5.so.3 (0x000= 02aaaabe37000)=0A> libcom_err.so.2 =3D> /lib64/libcom_err.so.2 (0x00002a= aaac0c9000)=0A> libk5crypto.so.3 =3D> /usr/lib64/libk5crypto.so.3 (0x000= 02aaaac2cc000)=0A> libz.so.1 =3D> /usr/lib64/libz.so.1 (0x00002aaaac4f10= 00)=0A> libuuid.so.1 =3D> /lib64/libuuid.so.1 (0x00002aaaac705000)=0A> = libcrypt.so.1 =3D> /lib64/libcrypt.so.1 (0x00002aaaac909000)=0A> /lib= 64/ld-linux-x86-64.so.2 (0x0000555555554000)=0A> libkrb5support.so.0 =3D= > /usr/lib64/libkrb5support.so.0 (0x00002aaaacb3d000)=0A> libkeyutils.so= .1 =3D> /lib64/libkeyutils.so.1 (0x00002aaaacd45000)=0A> libresolv.so.2 = =3D> /lib64/libresolv.so.2 (0x00002aaaacf48000)=0A> libselinux.so.1 =3D>= /lib64/libselinux.so.1 (0x00002aaaad15d000)=0A> libsepol.so.1 =3D> /lib= 64/libsepol.so.1 (0x00002aaaad376000)=0A> =0A> =0A> I'm not sure how I woul= d go about making sure the APR libraries are there?=0A=0AOK, so apr libs ar= e in /usr/lib64, which should be in the lib search=0Apath by default.=0A=0A= Could you please check, if adding /usr/local/apr/lib to your=0ALD_LIBRARY_P= ATH shel environment variable in addition to java.lib.path=0Ahelps?=0A=0ARe= gards,=0A=0ARainer=0A=0A> ----- Original Message ----=0A> From: Rainer Jung= =0A> To: Tomcat Users List =0A> Sent: Thursday, October 2, 2008 3:27:02 PM=0A> Subject: Re: Native = library issue on RHEL5=0A> =0A> John Ozarchuk schrieb:=0A>> Hello,=0A>> = =0A>> I am running Apache-tomcat 6.0.1.14 =0A>> on Redhat Enterprise 5.2, a= nd I am having trouble getting Catalina.sh to use the Apache Tomcat Native = Library. I have run configure, make, and make install on =0A>> the Native = (tomcat-native-1.1.10-src) and it has installed libraries in =0A>> /usr/loc= al/apr/lib:=0A>> =0A>> [root@jdotest ~]# ll =0A>> /usr/local/apr/lib=0A>> = total =0A>> 2360=0A>> -rw-r--r-- 1 root root 1518062 Oct =0A>> 2 11:21 lib= tcnative-1.a=0A>> -rwxr-xr-x 1 root root 893 Oct =0A>> 2 11:21 libtcna= tive-1.la=0A>> lrwxrwxrwx 1 root root 23 Oct =0A>> 2 11:21 libtcnativ= e-1.so -> libtcnative-1.so =0A>> .0.1.10=0A>> lrwxrwxrwx 1 roo= t root 23 Oct =0A>> 2 11:21 libtcnative-1.so.0 -> libtcnative-1. = =0A>> so.0.1.10=0A>> -rwxr-xr-x 1 root root 853799 Oct =0A>> 2 1= 1:21 libtcnative-1.so.0.1.10=0A>> drwxr-xr-x 2 root root 4096 Oct =0A>>= 2 11:21 pkgconfig=0A>> =0A>> I have added this path to =0A>> $CATALINA_HO= ME/Catalina.sh:=0A>> =0A>> JAVA_OPTS=3D"-Djava.library.path=3D/usr/local/a= pr/lib/"=0A>> =0A>> When I run =93Catalina.sh start=94 to =0A>> startup th= e Tomcat server, it still is not detecting these libraries, per =0A>> Catal= ina.out:=0A>> =0A>> INFO: The Apache Tomcat Native =0A>> library which all= ows optimal performance in production environments was not =0A>> found on t= he java.library.path: /usr/local/apr/lib/=0A>> Oct 2, 2008 12:59:40 PM org.= apache.coyote.http11.Http11Protocol init=0A>> INFO: Initializing Coyote HTT= P/1.1 =0A>> on http-8080=0A>> Oct 2, 2008 12:59:40 PM =0A>> org.apache.cata= lina.startup.Catalina load=0A>> INFO: Initialization processed in =0A>> 529= ms=0A>> =0A>> Am I missing something here? Any =0A>> help is greatly ap= preciated. Thank you.=0A> =0A> libtcnative needs he apr libraries too. Use= "ldd=0A> /usr/local/apr/lib/libtcnative-1.so" to check, whether the apr li= braries=0A> can be found and where they are. You might need to add their pa= th to the=0A> java.library.path too.=0A> =0A> BTW: Consider updating to Tom= cat 6.0.18 and tcnative 1.1.15.=0A> =0A> Regards,=0A> =0A> Rainer=0AGesch= =E4ftsf=FChrer: Dr. Thomas H=F6fer, Rainer Jung, Sven Maurmann=0A=0A-------= --------------------------------------------------------------=0ATo start a= new topic, e-mail: users@tomcat.apache.org=0ATo unsubscribe, e-mail: users= -unsubscribe@tomcat.apache.org=0AFor additional commands, e-mail: users-hel= p@tomcat.apache.org=0A=0A=0A --0-2107066957-1223297794=:17694--