Konstantin,

Do you know if this is expected behavior for Tomcat6?  Should I have to specify 
'common.loader' in a separate $CATALINA_BASE/conf/catalina.properties file?

Thanks,

Josh

> -----Original Message-----
> From: Baird, Josh [mailto:jba...@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.koli...@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 <jba...@follett.com>:
> > > 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,${cata
> > > 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-unsubscr...@tomcat.apache.org
> > For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to