-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Kumaravel,
On 12/18/2009 7:45 AM, jkv wrote:
> I was actually not specifing any path to open a file "text.txt" as i had it
> under
> WEB-INF/classes/test.txt, assuming my classes folder should be in classpath.
While your file was in the class path, y
Hello,
"This method takes a filename. Since you've not provided a path to the
file, here, where did you put your file to ensure that it gets properly
loaded?" -> I have my file here WEB-INF/classes/log4j.properties.
"What path are you using when you try to open the file? If you aren't
fully-spec
my
servlet init code a directly take a logger instance say
Logger.getlogger(Sample.class); the logging goes on fine.
Note: I have my log4j.jar inside WEB-INF/lib folder and not in tomcat's lib
folder.
Caldarale, Charles R wrote:
>
>> From: jkv [mailto:j.kumara...@gmail.com]
>&g
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Kumaravel,
On 12/16/2009 4:39 AM, jkv wrote:
> I am using tomcat 6.0 and created a log4j configuration folder under
> WEB-INF/classes/log4j.properties. I have my log4j.jar file in WEB-INF/lib
> folder. I created a simple servlet where in the init meth
> From: jkv [mailto:j.kumara...@gmail.com]
> Subject: RE: FileNotFoundException in Tomcat6.0
>
> But the problem starts only if you try to configure using a
> PropertyConfigurator having the same file there and use the
> above statement then you get FNFExe because the classpath
Thanks Charles for the reply..,
I got the answer myself after a long time... Actually its like this
IF you have a default log file for log4j configuration that is
"log4j.configuration" under WEB-INF/classes folder and did not use this
statement
PropertyConfigurator.configure("log4j.properties");
> From: jkv [mailto:j.kumara...@gmail.com]
> Subject: FileNotFoundException in Tomcat6.0
>
> I created a simple servlet where in the init method I have the
> following line
>
> PropertyConfigurator.configure("log4j.properties");
>
> but this is throwing FileNotFoundException??
Let's see the sta