tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jason Bainbridge <>
Subject Re: Logging via log4j and war file question
Date Mon, 23 Jun 2003 16:10:01 GMT
On Tue, 24 Jun 2003 00:01, Jim Lynch wrote:
> I recently switch from doing "install", "remove" deployments via a build
> directory to "deploy", "undeploy" via a war file.  Unfortuantely my
> logging has stopped working.  I've traced it to the following statement:
> PropertyConfigurator.configure(getServletContext().getRealPath("/")+"/WEB-I

From a previous post (I'd include a link but I searched my local mailbox as 
the archives are notoriously hard to search):

Properties logProp = new Properties();

So you want getResourceAsStream instead seeing how the file is contained 
within a WAR file. :)

Jason Bainbridge

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

View raw message