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
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: Ted Neward [mailto:[EMAIL PROTECTED]]
> Gesendet am: Mittwoch, 3. Juli 2002 22:51
> An: '[EMAIL PROTECTED]'
> Betreff: RE: Problems logging with Log4j
>
> You *might* need to programmatically set the configuration
> options within
> your webapp, and reach through the webapp's ClassLoader
> (this.getClass().getClassLoader().getResourceAsStream(...) returns an
> InputStream) to do it. Stting Log4j configuration TOMCAT_OPTS
> may do it for
> the server as a whole, which may not flow down to the individual
> webapps--this is an area I'm not familiar with, so I'm just
> hypothesizing
> here. Caveat emptor.
>
> Ted Neward
> Architect, UCDavis Account & Financial Services
> http://www.javageeks.com
> http://www.clrgeeks.com
>
> -----Original Message-----
> From: Stocker, Walter [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, July 03, 2002 06:46
> To: [EMAIL PROTECTED]
> Subject: Problems logging with Log4j
>
>
> Hello *,
>
> i've tried to setup logging with Log4j using Axis beta2 on
> Tomcat 3.3a with log4j 1.2.3. What i've done:
>
> - installing a log4j.properties file in the web-inf/classes
> directory. the file looks like:
> # Set root category priority to ERROR and its only
> appender to A1.
> # log4j.rootCategory=INFO, CONSOLE
> log4j.rootCategory=INFO, LOGFILE
> log4j.category.org.apache.axis=INFO, LOGFILE
>
> # CONSOLE is set to be a ConsoleAppender using a PatternLayout.
> # log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
> # log4j.appender.CONSOLE.Threshold=INFO
> # log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout
> # log4j.appender.CONSOLE.layout.ConversionPattern=- %m%n
>
> # LOGFILE is set to be a File appender using a PatternLayout.
> log4j.appender.LOGFILE=org.apache.log4j.FileAppender
>
> log4j.appender.LOGFILE.File=E:\jakarta-tomcat-3.3a\logs\axis.log
> log4j.appender.LOGFILE.Append=true
> log4j.appender.LOGFILE.Threshold=INFO
> log4j.appender.LOGFILE.layout=org.apache.log4j.PatternLayout
> log4j.appender.LOGFILE.layout.ConversionPattern=%-4r
> [%t] %-5p %c %x
> - %m%n
>
> - setting up the TOMCAT_OPTS environment variable:
>
> TOMCAT_OPTS=-Dlog4j.configuration=E:\jakarta-tomcat-3.3a\webap
> ps\axis\web-in
> f\classes\log4j.properties
>
> after starting the webserver and invoking a method of my
> soap-service, i get
> the following error on the console of tomcat:
> log4j:ERROR No appenders could be found for category
> (org.apache.axis.transport.
> http.AxisServlet).
> log4j:ERROR Please initialize the log4j system properly.
>
> i've searched through the mailing-list and found no solution
> to the problem.
> as
> anyone a idea or solution?
>
> cu
>
> Walter Stocker
>
>
> 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
>
>