RE: Logging via log4j and war file question

2003-06-23 Thread Shapira, Yoav
Howdy, >But, as general practice, try avoiding getRealPath... to get java.io.File, >use getServletContext().getResourceAsStream instead. You mean, of course to get an InputStream, not a file ;) That InputStream is not guaranteed, and in fact not likely, to be a FileInputStream. Yoav Shapira

Re: Logging via log4j and war file question

2003-06-23 Thread Jim Lynch
Thanks for all the replies. Finally something about this project that I can really appreciate. The soloution is to do NOTHING! I love it. 8) Thanks, Jim. Jim Lynch wrote: > > I recently switch from doing "install", "remove" deployments via a build > directory to "deploy", "undeploy" via a wa

RE: Logging via log4j and war file question

2003-06-23 Thread Phillip Qin
ECTED] Sent: June 23, 2003 12:01 PM To: tomcat Subject: Logging via log4j and war file question I recently switch from doing "install", "remove" deployments via a build directory to "deploy", "undeploy" via a war file. Unfortuantely my logging has stop

RE: Logging via log4j and war file question

2003-06-23 Thread Shapira, Yoav
nal Message- >From: Jim Lynch [mailto:[EMAIL PROTECTED] >Sent: Monday, June 23, 2003 12:01 PM >To: tomcat >Subject: Logging via log4j and war file question > >I recently switch from doing "install", "remove" deployments via a build >directory to "depl

Re: Logging via log4j and war file question

2003-06-23 Thread Tim Funk
Somedays, I think I'm going senile. Ignore my second sentence. -Tim Tim Funk wrote: If log4j is nowhere else other than your war file - log4j.properties should automajically be used. Otherwise - you can use a ServletContextListener -Tim Jim Lynch wrote: I recently switch from doing "install"

Re: Logging via log4j and war file question

2003-06-23 Thread Jason Bainbridge
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(

Re: Logging via log4j and war file question

2003-06-23 Thread Tim Funk
If log4j is nowhere else other than your war file - log4j.properties should automajically be used. Otherwise - you can use a ServletContextListener -Tim Jim Lynch wrote: I recently switch from doing "install", "remove" deployments via a build directory to "deploy", "undeploy" via a war file. U

Logging via log4j and war file question

2003-06-23 Thread Jim Lynch
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-INF/classe