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\webapps\axis\web-inf\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
                                                                     

Reply via email to