Thanks for you r help guys, ive managed to fix the
problem:)

which now leads me to another question; is there a way
to log the error messages that are generated when
there  is  problem with the tomcat server eg there is
something wrong with the .java class and an error 500
message is spat back at the user. 
Is this something that log4j can take care of or is it
better handled by modifying the tomcat settings?

thanks!
Jason

--- William Jaynes <[EMAIL PROTECTED]> wrote: > The
javadocs and the code indicate that
> PropertyConfigurator.configure(String) expects
> String to be the path to
> a file. So this method doesn't use the class loader.
> It's looking for a
> filepath, so as Anuj said, using just
> "log4j.properties", the file would
> have to be in the directory where the VM started up.
> 
> A full filepath name should find the file. Jason,
> maybe you've got file
> separator problems? A '\' instead of a '/'. Idunno.
> 
> Will
> 
> 
> ----- Original Message -----
> From: "Dominique JOCAL" <[EMAIL PROTECTED]>
> To: "LOG4J Users Mailing List"
> <[EMAIL PROTECTED]>
> Sent: Monday, May 07, 2001 8:15 AM
> Subject: Re: tomcat and log4j
> 
> 
> > Isn't it simply based on the "resource loading"
> mechanism ? (i.e. the
> file
> > has to be available in a "root" package in the
> classpath)
> >
> > Dominique JOCAL
> > Consultant - OCTO Technology
> > mailto:[EMAIL PROTECTED]
> > tel:+33 6 22 66 09 70
> > http://www.octo.com
> > ----- Original Message -----
> > From: "Anuj Agrawal" <[EMAIL PROTECTED]>
> > To: "LOG4J Users Mailing List"
> <[EMAIL PROTECTED]>
> > Sent: Monday, May 07, 2001 2:05 PM
> > Subject: Re: tomcat and log4j
> >
> >
> > > jason teh wrote:
> > >
> > > >
> PropertyConfigurator.configure("log4j.properties");
> > >
> > > If you are using the above line in your code,
> then it is assuming
> that the
> > log4j.properties file is in the directory that the
> VM was started - in
> > tomcat's case, it is either the bin directory (if
> you are
> > > starting it from command line) or the root
> directory (if you are
> starting
> > it as a service).
> > >
> > > It is strange that putting in the full path
> still doesn't do it -
> you
> > might want to try out Winfried's suggestion.
> > >
> > > Anuj.
> > >
> > >
> >
> >
>
---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > > For additional commands, e-mail:
> [EMAIL PROTECTED]
> > >
> > >
> >
> >
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, e-mail:
> [EMAIL PROTECTED]
> >
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


_____________________________________________________________________________
http://store.yahoo.com.au - Yahoo! Store
- It's time you had your business online!

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to