tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fred basset <>
Subject how to configure log4j path to work both in Tomcat and from the CLI?
Date Tue, 02 Mar 2010 22:10:15 GMT
Hi All,

I use log4j, I'm trying to configure it so that log4j uses a non
hardcoded path, and it resolves the path both when running under
tomcat and running my unit tests from the CLI with ant.

Here's the relevant line from


This works fine when I'm running my app. under Tomcat, but when I try
to run my unit tests from ant, log4j tries to log to /logs/myapp.log
(i.e. resolves ${catalina.home} to nothing).
The CATALINA_HOME environment variable is set correctly.

Thanks if anyone can help me on this.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message