-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Josh,

On 7/16/15 8:58 AM, Baird, Josh wrote:
> Yes, I suspect this is due to RHEL's re-package.
> 
> $CATALINA_HOME = /usr/share/tomcat6 $CATALINA_BASE =
> /srv/tomcat/myapp
> 
> $CATALINA_HOME/conf/catalina.properties does exist and contains
> the proper common.loader line.

Is /etc/tomcat6 a symlink to /usr/share/tomcat6? Or is
/etc/tomcat6/catalina.properties a symlink to
/usr/share/tomcat6/config/catalina.properties?

> However, unless I manually copy 
> $CATALINA_HOME/conf/catalina.properties into $CATALINA_BASE/conf, 
> classes are not being loaded from $CATALINA_BASE/lib, presumably
> because common.loader is incorrect due to the lack of 
> $CATALINA_BASE/conf/catalina.properties.

Hmm... I've never used CATALINA_BASE/conf/catalina.properties, so I
always assumed that CATALINA_HOME/conf/catalina.properties would be
used as a fall-back, but that's not the case. (I've been using Tomcat
for a long time and even I never noticed this behavior.)

Looking at the Tomcat 6 source code (and in Tomcat 8, so nothing has
changed for a while), the CatalinaProperties class loads its
properties from CATALINA_BASE and, failing that, uses the ClassLoader
to load org/apache/catalina/startup/catalina.properties from wherever
it might be in the class path. That turns out to be inside of
catalina.jar, so maybe whatever is on the filesystem isn't doing
anything at all for you (unless you copy the file into
CATALINA_BASE/conf, of course).

> I verified this by sticking "common.loader: <%= 
> System.getProperty("common.loader") %>" in a test JSP page  and 
> invoking it with and without catalina.properties in 
> $CATALINA_BASE/conf.
> 
> I have a ticket open with RHEL and they will hopefully be able to 
> tell me the expected behavior here, since it obviously differs from
> a 'stock' Tomcat6 installation.

I'd be surprised if RHEL is changing the packaging of Tomcat's JAR
files -- meaning modifying the stock catalina.properties that's in
catalina.jar -- but it's certainly possible.

Check to see what's in there; it will probably shed some light.

- -chris
-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - http://gpgtools.org

iQIcBAEBCAAGBQJVp8FxAAoJEBzwKT+lPKRY+XYP/RzvOBPVys6y5Yextv7Om9bX
QyHw45FpQkht2h61YjDarZHzfO801A2QoW6ixDsD6uRpxSHL4RhyzlnK+1U+fSMj
PU1O+XEzS96/8D3ACYR2JyES1PUr4rBsn+2m0vOYh8Vcd1g6gpfqyo+la92UNmXE
i/6O0UhLPt7ICAFvyq0LRo8V9VTSlLyu/bmAc8rIA2vGFH/+sng2amaej7fY1QCC
tIgWoxYqF80nqSAIOYNrSz3j0B53GOuRVxkhgDo7+WvnWoccOFPFYtw087Xx+Me6
8i2ZrNELnUN45cLBE3xvQI0XEb4AgdNPnTfoxrXK3qR7cyNMU3PdDwBYjSOI+Kne
/WOfioY4EA1dM1Mts0ln6Q5OLC/ANiFLsFlRjNciIuW8X1Ub0mmP7ykBQdNIgz5k
2RPVwXMD8PG3CFhvs4imryXQOcqf4OMum37FjmTeedJDWxXAdNADSqFZfj5BdEf6
hq+kVUtsz3eq/vk0LIP21u/VVFRP6IOaHfoKbXX6i3GwLy0n1anshrmi+z9MGgqU
Po5DMcPro5iTb2rlR8BpGWvII7EbS64d+Hg83M4tcYBIt6XVM1DkqdvqiLvG9r4F
iTQO+yFI6ABvwWp7dLU1kYUTnwhvw4/cfAb/14HbmKumkTW4oOGvFBYoll8uRsqi
X9Fen5Yh5AReOYmmbaNp
=MWro
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to