On Thu, Apr 1, 2010 at 12:28 PM, Marvin Addison <[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