tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Igor Smirnov" <>
Subject Webapps Log4j config problem
Date Wed, 23 Jun 2004 11:03:23 GMT

I am having a problem with BarracudaDiscRack application that load withing Tomcat.
I;m useing Enhydra, jonas 4.1, Tomcat 5.
I have all the necessary files(lof4j, barracuda etc) jars in Web-inf/lib and the classes in
In the main BarracudaDiscRack folder, I have the log4j.xml that contains the following lines:

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
<log4j:configuration xmlns:log4j="" debug="false" threshold="debug">
    <appender name="A1" class="org.apache.log4j.ConsoleAppender">
        <layout class="org.apache.log4j.PatternLayout">
            <param name="ConversionPattern" value="%-4r [%t] %-5p %c %x - %m%n"/>
    <appender name="A2" class="org.apache.log4j.FileAppender">
        <param name="File" value="C:/IgorEnhydra6.0-1/work/webapps/Enhydra/BarracudaDiscRack/WEB-INF/main.log"
        <param name="Append" value="false" />
        <layout class="org.apache.log4j.PatternLayout">
            <param name="ConversionPattern" value="%-4r [%t] %-5p %c %x - %m%n"/>
    <appender name="JUnitAppender" class="org.apache.log4j.FileAppender">
        <param name="File" value="C:/IgorEnhydra6.0-1/work/webapps/Enhydra/BarracudaDiscRack/WEB-INF/test.log"
        <param name="Append" value="true" />
        <layout class="org.apache.log4j.PatternLayout">
            <param name="ConversionPattern" value="%-4r [%t] %-5p %c %x - %m%n"/>
<logger name="" additivity="false"><level value="off"/><appender-ref

    <!-- standard debuggers which should stay on -->
    <logger name="org.enhydra.barracuda.plankton.Classes"><appender-ref ref="A1"/></logger>
    <logger name=""><level
value="warn"/><appender-ref ref="A1"/></logger>
    <!-- other debuggers (testing/debugging purposes) -->
    <logger name="org.enhydra.barracuda.core.event.ApplicationGateway"><appender-ref

    <!-- Note: This root logger will be inherited by all loggers unless you use additivity="false".
        <level value="warn"/>
        <appender-ref ref="A1"/>
        <!--<appender-ref ref="A3"/>-->
 <!--<appender-ref ref="A4"/>-->

Now, when the application is loaded I get an error:
log4j:WARN No appenders could be found for logger (root).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN No appenders could be found for logger (org.apache.catalina.session.ManagerBase)
log4j:WARN Please initialize the log4j system properly.

The servers starts, but no logging is performed.

What might be going wrong. I had no similiar problem withing jonas 3x ant Tomcat 4x.
Thank you!
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message