-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The method I did, which did not use an XML configuration file, did not require editing pom.xml at all. The snippit I gave was the only change - -- in addition to moving the log4j.properties file to a new location -- which existed prior to redeploying on a host.
Patrick Berry wrote: > > > On Thu, Apr 1, 2010 at 12:28 PM, Marvin Addison > <[email protected] <mailto:[email protected]>> wrote: > > > I would like to place the config file log4j.properties outside the war > > file > > You'll want something like the following in your web.xml: > > <context-param> > <param-name>log4jConfigLocation</param-name> > <param-value>file://${cas.home}/log4j.xml</param-value> > </context-param> > > where cas.home is a property that points to the full path of our CAS > application home directory. > > M > > > Assuming that you're using the maven overlay method, you also need to > have to exclude WEB-INF/classes/log4j.xml in your pom.xml, right? I'm > doing this, but it gives these errors on the console: > > INFO: Deploying web application archive cas.war > log4j:WARN No appenders could be found for logger > (org.apache.commons.digester.Digester.sax). > log4j:WARN Please initialize the log4j system properly. > > I assume that these can be safely ignored because it does pick up my > log4j.xml outside of the container and uses those settings? > > > > -- > You are currently subscribed to [email protected] as: > [email protected] > To unsubscribe, change settings or access archives, see > http://www.ja-sig.org/wiki/display/JSG/cas-user > - -- Jeff Chapin, Assistant Systems/Applications Administrator ITS-IS, University of Northern Iowa Phone: 319-273-3162 Email: [email protected] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/ iEYEARECAAYFAku7i84ACgkQQiaEUfQoY7TMcgCdE5SQ6ycIX9Acj2zs3d5ICNMh OgEAnAj2qnM6wJN/yxEYuvLzMoHBzi8r =N329 -----END PGP SIGNATURE----- -- You are currently subscribed to [email protected] as: [email protected] To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/cas-user
