Return-Path: X-Original-To: apmail-tomcat-users-archive@www.apache.org Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4584818E60 for ; Thu, 16 Jul 2015 13:48:55 +0000 (UTC) Received: (qmail 20377 invoked by uid 500); 16 Jul 2015 13:48:51 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 20319 invoked by uid 500); 16 Jul 2015 13:48:51 -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 20308 invoked by uid 99); 16 Jul 2015 13:48:51 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Jul 2015 13:48:51 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 515AC1A7179 for ; Thu, 16 Jul 2015 13:48:51 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.801 X-Spam-Level: * X-Spam-Status: No, score=1.801 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id GueB0Vefz-VW for ; Thu, 16 Jul 2015 13:48:38 +0000 (UTC) Received: from vms173021pub.verizon.net (vms173021pub.verizon.net [206.46.173.21]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTPS id 5207F20DD0 for ; Thu, 16 Jul 2015 13:48:38 +0000 (UTC) Received: from Christophers-MacBook-Pro.local ([98.213.217.75]) by vms173021.mailsrvcs.net (Oracle Communications Messaging Server 7.0.5.32.0 64bit (built Jul 16 2014)) with ESMTPA id <0NRL00GMM2CFPR10@vms173021.mailsrvcs.net> for users@tomcat.apache.org; Thu, 16 Jul 2015 08:48:15 -0500 (CDT) X-CMAE-Score: 0 X-CMAE-Analysis: v=2.1 cv=EdU1O6SC c=1 sm=1 tr=0 a=3tMq/n+FvoH7rmQ1UKd0qw==:117 a=-57I09spAAAA:8 a=oR5dmqMzAAAA:8 a=tHvJy1wsfNMA:10 a=-9mUelKeXuEA:10 a=IkcTkHD0fZMA:10 a=zOBTXjUuO1YA:10 a=tdLhvmj9AAAA:8 a=pGLkceISAAAA:8 a=mV9VRH-2AAAA:8 a=j4nzMFrpAAAA:8 a=nxh9eJjBmFby3AkvKQAA:9 a=QEXdDO2ut3YA:10 Message-id: <55A7B61E.7010306@christopherschultz.net> Date: Thu, 16 Jul 2015 08:48:14 -0500 From: Christopher Schultz User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-version: 1.0 To: Tomcat Users List Subject: Re: CATALINA_BASE/lib on tomcat6 (RHEL6) References: In-reply-to: Content-type: text/plain; charset=utf-8 Content-transfer-encoding: 8bit -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Josh, On 7/16/15 8:13 AM, Baird, Josh wrote: > Do you know if this is expected behavior for Tomcat6? No, it's not. But RHEL re-packages Tomcat and does weird things to it. > Should I have to specify 'common.loader' in a separate > $CATALINA_BASE/conf/catalina.properties file? What is the value of $CATALINA_HOME? CATALINA_BASE? Tomcat will look in CATALINA_BASE/conf and CATALINA_HOME/conf for catalina.properties. If CATALINA_HOME is set to /etc/tomcat6, then Tomcat is going to try to look in /etc/tomcat6/conf. Does that exist? If not, then you'll have to copy catalina.properties into your CATALINA_BASE/conf. I'm not sure how RHEL expects you to do things, and I'm not familiar enough with the layout to comment on why it does or does not work. If you want to know why it doesn't work on RHEL, you'll have to ask the RHEL packagers... the stock Tomcat distribution works without any problems. - -chris >> -----Original Message----- From: Baird, Josh >> [mailto:jbaird@follett.com] Sent: Wednesday, July 15, 2015 4:07 >> PM To: Tomcat Users List Subject: RE: CATALINA_BASE/lib on >> tomcat6 (RHEL6) >> >> Hi, >> >> Thanks for the tip! It turns out that the 'stock' >> catalina.properties (in /etc/tomcat6/catalina.properties) was not >> getting invoked for the CATALINA_BASE instance. I copied >> /etc/tomcat6/catalina.properties to >> $CATALINA_BASE/conf/catalina.properties, and now common.loader >> is including $CATALINA_BASE/lib: >> >> common.loader: >> ${catalina.base}/lib,${catalina.base}/lib/*.jar,${catalina.home}/lib, ${catalina. >> >> home}/lib/*.jar >> >> This differs from Tomcat7 which I have also been testing. >> >> Thanks, >> >> Josh >> >>> -----Original Message----- From: Konstantin Kolinko >>> [mailto:knst.kolinko@gmail.com] Sent: Wednesday, July 15, 2015 >>> 3:43 PM To: Tomcat Users List Subject: Re: CATALINA_BASE/lib on >>> tomcat6 (RHEL6) >>> >>> 2015-07-15 20:44 GMT+03:00 Baird, Josh : >>>> Hi, >>>> >>>> I am running RHEL6's distribution of Tomcat (tomcat6-6.0.24- >> 80.el6.x86_64). >>> I'm trying to provision multiple Tomcat instances on the same >>> server. The 'RUNNING' [1] doc states that JAR libraries should >>> be loaded from both $CATALINA_HOME/lib and $CATALINA_BASE/lib >>> (with BASE being preferred). However, in our testing, only >>> JARs from $CATALINA_HOME/lib (/usr/share/tomcat6/lib on RHEL6) >>> are being loaded. JARs in $CATALINA_BASE/lib are not being >>> loaded at all. >>>> >>>> CATALINA_HOME and CATALINA_BASE are set properly in the >>>> script that >>> starts Tomcat. I have also verified that my >>> catalina.properties file specifies both: >>>> >>>> common.loader=${catalina.base}/lib,${catalina.base}/lib/*.jar,${cat a >>>> >>>> li na.home}/lib,${catalina.home}/lib/*.jar >>>> >>>> Does anyone have any ideas on why JARs in $CATALINA_BASE/lib >>>> are not >>> being loaded? >>>> >>>> [1] https://tomcat.apache.org/tomcat-6.0-doc/RUNNING.txt >>> >>> >>> The online documentation is for the current version of Tomcat. >>> For Tomcat 6 that is 6.0.44. >>> >>> Maybe that is not your configuration file. Maybe your jar file >>> is not >> readable. >>> >>> Note that all values from catalina.properties file are exposed >>> as system properties. You may try the following JSP page to >>> display the values: >>> >>> [[[ <%@page contentType="text/plain;charset=UTF-8" %> >>> common.loader: <%= System.getProperty("common.loader") %> >>> catalina.home: <%= System.getProperty("catalina.home") %> >>> catalina.base: <%= System.getProperty("catalina.base") %> ]]] >>> >>> Best regards, Konstantin Kolinko >>> >>> -------------------------------------------------------------------- - - >>> >>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org >>> For additional commands, e-mail: users-help@tomcat.apache.org > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org > For additional commands, e-mail: users-help@tomcat.apache.org > -----BEGIN PGP SIGNATURE----- Comment: GPGTools - http://gpgtools.org iQIcBAEBCAAGBQJVp7YeAAoJEBzwKT+lPKRYAnIP/2FEKmBUKnrW3j3ACVRh9rqT xM+rhdVexTpLloJtOnaB6EpOgEVhozxGmpgGl3K0gp+oFPmrAyyGu3RPWKYXyW0J Pf9hGv0BXxAwJfTUC7jVbFLc5SKcUoOJoQj4c59D3he6qlYdOW3Jl+STWV66y6Iu DXIpbEtYXsMrIf32sS3RpxzXpufZsqXnNYGd3/GidCKrC93sk2D7oFppEgcCNNrG kJv7keRmzZwI7YywX8eICkyYc1GLdbWJ6DXraaEd/xhPBGMS2rvsasqtTo3yplQO cT+Xi/VsDQuFLK/ScN+49i1+QONUf/jQ4id3jvcZ+Yz0HJCUMv4JdwIjFzPWtZCv P5oh4DC+xpow5i9dQgHfEAzD8zBeQp093iYNRYnU2Mn+1rLVJh8F02kh8nSOsG+Z 32bGuDR90TgtfRSYbKWMpRdLWIbuB7d9a0kddM989VGE5kWHhPDRL8ykdcvHPJyw V2+gj3NHGRnVumtMD8y66KFFvwsw4YexEIm8qZ/fO9xj9OIY0NIYJJ50bta80abV 07EHg0/tVw7rboZ3grNTa8Nz90xSbAvMK8luD6FovzYsmT+lg85qrmpMlto3CyVd ZSZbIDoXZpxDmfMDkGcIZn4IFcUakEIhuoy2JaT0nLFSjV50Z+CpKhmfQBO9NUoq UEWwCPMakZu3qhPMSnyN =TESw -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org