Hello Brian,
you were right. I forgot that the classpath for tomcat has to
be set in the tomcat startup script (tomcat.bat on my machine).
But now i ran into another problem. The log4j.properties file
isn't read anymore! I put it in axis.jar, in the classes directory,
in the lib directory, used the TOMCAT_OPTS environment variable...
where is the problem? is there an order in the CLASSPATH for the
log4j, commons-logging and axis libraries?
thanx for your help
Walter
Dipl. Inform. (FH) Walter Stocker
T-Systems International GmbH
Software Developer
System Integration
Address: Memmelsdorfer Str. 209a, 96052 Bamberg
Phone: +49 (09 51) 40 97 - 1 46
Fax: +49 (09 51) 40 97 - 2 00
E-Mail: mailto:[EMAIL PROTECTED]
Internet: http://www.t-systems.com
> -----Urspr�ngliche Nachricht-----
> Von: Brian Ewins [mailto:[EMAIL PROTECTED]]
> Gesendet am: Donnerstag, 4. Juli 2002 11:24
> An: [EMAIL PROTECTED]
> Betreff: Re: Solution: Problems logging with Log4j
>
> Stocker, Walter wrote:
> > Hello *,
> >
> > after two days of research i found a suitable solution. It seems,
> > there are several problems with the commons-logging and
> log4j integration.
> > The only way to solve my problem, was to replace the
> log4j.properties file
> > in axis.jar. All the other tips from the community failed.
> Sorry, folks! :-(
> >
> > BTW The RollingFileAppender is not working with
> commons-logging and log4j.
> > I got a ClassNotFoundException on the console of tomcat.
> >
> > cu
>
> Walter, sorry I missed your earlier email. I had a similar issue and
> resolved it by removing the log4j.properties from axis.jar. I
> found it
> odd that it was there in the first place - I don't want a third party
> library controlling where the logs go on my server!
>
> As for the second problem - you've almost certainly got
> log4j-core.jar
> in your classpath, not log4j.jar. log4j-core is about half
> the size and
> doesnt include RollingFileAppender.
>
> Hope this helps
> Baz
>