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
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
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
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
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"
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(
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
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