Hi,
I am trying to configure log4j with soap & tomcat. I have placed the
log4j.xml file in the webapps directory of my soap installation
C:\soap-2.1\webapps.
I have tomcat installed in C:\jakarta-tomcat-3.2.1. I finished the
deployment etc. And the
service works fine and gives me actual results. However i keep getting an
error to
check the log4j configuration.
log4j:ERROR No appenders could be found for category
(samples.test.UserCheckSamp
le).
log4j:ERROR Please initialize the log4j system properly.
The following is the contents of my log4j.xml files.
##########################################
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
<appender name="A1" class="org.apache.log4j.FileAppender">
<param name="File" value="A1.log" />
<param name="Append" value="false" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%t %-5p %c{2} -
%m%n"/>
</layout>
</appender>
<appender name="STDOUT" class="org.apache.log4j.FileAppender">
<param name="File" value="System.out" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern"
value="%d %-5p [%t] %C{2} (%F:%L) - %m%n"/>
</layout>
</appender>
<category name="samples.test">
<priority value="debug" />
<appender-ref ref="A1" />
</category>
<root>
<priority value ="debug" />
<appender-ref ref="STDOUT" />
</root>
</log4j:configuration>
##########################################
Ram