tomcat-users mailing list archives

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

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
Web-inf\classes.
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="http://jakarta.apache.org/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"/>
        </layout>
    </appender>
    <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"/>
        </layout>
    </appender>
    <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"/>
        </layout>
    </appender>
<logger name="test.org.enhydra.barracuda" additivity="false"><level value="off"/><appender-ref
ref="JUnitAppender"/></logger>

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

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

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!
Igor
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message