Assume you have TC7 installed and configured.1. put a any jar to your separate local path, such as /home/foo/lib/food.jar2. edit $CATALINA_HOME/conf/catalina.properties to apend "${foo.bar}/lib/food.jar" to common.loader property3, setenv JAVA_OPTS -Dfoo.bar=/home/foo4. start TC7, then stop TC7, you will see the warning complaining it could not find $CATALINA_HOME/bin/${foo.bar}/lib/food.jar not found. Of course, if in a deployed app where using any classes in food.jar is not available for sure.
> Date: Tue, 10 May 2011 16:31:13 -0400 > From: ch...@christopherschultz.net > To: users@tomcat.apache.org > Subject: Re: tomcat 7: common.loader property in catalina.properties does not > take ANT style variable > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Konstantin, > > On 5/10/2011 3:05 AM, Konstantin Kolinko wrote: > > IIRC, catalina.properties file does not support substitution for > > anything, besides those two specific properties, "catalina.home" and > > "catalina.base". > > The documentation suggests otherwise: > > http://tomcat.apache.org/tomcat-7.0-doc/config/index.html > > " > Tomcat configuration files are formatted as schemaless XML; elements and > attributes are case-sensitive. Apache Ant-style variable substitution is > supported; a system property with the name propname may be used in a > configuration file using the syntax ${propname}. All system properties > are available including those set using the -D syntax, those > automatically made available by the JVM and those configured in the > $CATALINA_BASE/conf/catalina.properties file. > " > > Yongqin, can you provide a simple example that we can try to reproduce? > > - -chris > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.10 (MingW32) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ > > iEYEARECAAYFAk3JoJAACgkQ9CaO5/Lv0PD4RACgv7crIJszHl0xeOsEARLACrL0 > Lv0AnRRQKjfHkdfkpigZXHtmnFqk+80+ > =Ijtl > -----END PGP SIGNATURE----- > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org >