Not calling "DomConfigurator.configure()"?  That certainly a viable thing to
try.
Thanks for the suggestion.

Mitchell Kim

----- Original Message -----
From: "David Jencks" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 12, 2002 9:35 PM
Subject: Re: [JBoss-user] Doesn't anyone have this problem?


> Are you calling DomConfigurator.configure?? If so what happens if you
don't
> call it?
>
> log4j logging from beans, mbeans, and everything I've tried works fine for
> me if I just leave log4j.xml alone.
>
> david jencks
>
> On 2002.06.12 21:24:47 -0400 Mitchell Kim wrote:
> > I don't remeber that I have configured log4j console appender twice.  I
> > am using the log4j.xml file in the "D:\jboss-3.0.0\server\default\conf"
> > directory which is the one that comes with JBoss distribution.  I am
> > using that config file for DOMConfigurator.configure() method.  Am I
> > doing something really wrong?  It works fine with WebLogic.  I guess
> > that's not relavent since WebLogic doesn't use log4j.  Then, my question
> > is what would be the best way to do loggin in JBoss 3.0?  I have been
> > using this in previous JBoss version and it worked fine...
> > What am I doing wrong?
> >
> > The log4j.xml file that I am using (that comes with JBoss) is below...
> >
> > <?xml version="1.0" encoding="UTF-8"?>
> > <!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
> >
> > <!--
=====================================================================
> > -->
> > <!--
> >  -->
> > <!--  Log4j Configuration
> >  -->
> > <!--
> >  -->
> > <!--
=====================================================================
> > -->
> >
> > <!-- $Id: log4j.xml,v 1.5.2.2 2002/05/23 05:55:43 starksm Exp $ -->
> >
> > <!--
> >    | For more configuration infromation and examples see the Jakarta
> > Log4j
> >    | owebsite: http://jakarta.apache.org/log4j
> >  -->
> >
> > <log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/";
> > debug="false">
> >
> >   <!-- ================================= -->
> >   <!-- Preserve messages in a local file -->
> >   <!-- ================================= -->
> >
> >   <!-- A time/date based rolling appender -->
> >   <appender name="FILE"
class="org.jboss.logging.appender.DailyRollingFileAppender">
> >     <param name="File" value="${jboss.server.home.dir}/log/server.log"/>
> >     <param name="Append" value="false"/>
> >
> >     <!-- Rollover at midnight each day -->
> >     <param name="DatePattern" value="'.'yyyy-MM-dd"/>
> >
> >     <!-- Rollover at the top of each hour
> >     <param name="DatePattern" value="'.'yyyy-MM-dd-HH"/>
> >     -->
> >
> >     <layout class="org.apache.log4j.PatternLayout">
> >       <!-- The default pattern: Date Priority [Category] Message\n -->
> >       <param name="ConversionPattern" value="%d %-5p [%c] %m%n"/>
> >
> >       <!-- The full pattern: Date MS Priority [Category] (Thread:NDC)
> > Message\n
> >       <param name="ConversionPattern" value="%d %-5r %-5p [%c] (%t:%x)
> > %m%n"/>
> >        -->
> >     </layout>
> >   </appender>
> >
> >   <!-- A size based file rolling appender
> >   <appender name="FILE"
class="org.jboss.logging.appender.RollingFileAppender">
> >     <param name="File" value="${jboss.server.home.dir}/log/server.log"/>
> >     <param name="Append" value="false"/>
> >     <param name="MaxFileSize" value="500KB"/>
> >     <param name="MaxBackupIndex" value="1"/>
> >
> >     <layout class="org.apache.log4j.PatternLayout">
> >       <param name="ConversionPattern" value="%d %-5p [%c] %m%n"/>
> >     </layout>
> >   </appender>
> >   -->
> >
> >   <!-- ============================== -->
> >   <!-- Append messages to the console -->
> >   <!-- ============================== -->
> >
> >   <appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender">
> >     <param name="Threshold" value="INFO"/>
> >     <param name="Target" value="System.out"/>
> >
> >     <layout class="org.apache.log4j.PatternLayout">
> >       <!-- The default pattern: Date Priority [Category] Message\n -->
> >       <param name="ConversionPattern" value="%d{ABSOLUTE} %-5p [%c{1}]
> > %m%n"/>
> >     </layout>
> >   </appender>
> >
> >
> >   <!-- ====================== -->
> >   <!-- More Appender examples -->
> >   <!-- ====================== -->
> >
> >   <!-- Buffer events and log them asynchronously
> >   <appender name="ASYNC" class="org.apache.log4j.AsyncAppender">
> >     <appender-ref ref="FILE"/>
> >     <appender-ref ref="CONSOLE"/>
> >     <appender-ref ref="SMTP"/>
> >   </appender>
> >   -->
> >
> >   <!-- EMail events to an administrator
> >   <appender name="SMTP" class="org.apache.log4j.net.SMTPAppender">
> >     <param name="Threshold" value="ERROR"/>
> >     <param name="To" value="[EMAIL PROTECTED]"/>
> >     <param name="From" value="[EMAIL PROTECTED]"/>
> >     <param name="Subject" value="JBoss Sever Errors"/>
> >     <param name="SMTPHost" value="localhost"/>
> >     <param name="BufferSize" value="10"/>
> >     <layout class="org.apache.log4j.PatternLayout">
> >       <param name="ConversionPattern" value="[%d{ABSOLUTE},%c{1}]
%m%n"/>
> >     </layout>
> >   </appender>
> >   -->
> >
> >   <!-- Syslog events
> >   <appender name="SYSLOG" class="org.apache.log4j.net.SyslogAppender">
> >     <param name="Facility" value="LOCAL7"/>
> >     <param name="FacilityPrinting" value="true"/>
> >     <param name="SyslogHost" value="localhost"/>
> >   </appender>
> >   -->
> >
> >   <!-- Log events to JMS (requires a topic to be created)
> >   <appender name="JMS" class="org.apache.log4j.net.JMSAppender">
> >     <param name="Threshold" value="ERROR"/>
> >     <param name="TopicConnectionFactoryBindingName"
> > value="java:/ConnectionFactory"/>
> >     <param name="TopicBindingName" value="topic/MyErrorsTopic"/>
> >   </appender>
> >   -->
> >
> >   <!-- ================ -->
> >   <!-- Limit categories -->
> >   <!-- ================ -->
> >
> >   <!-- Limit JBoss categories to INFO
> >   <category name="org.jboss">
> >     <priority value="INFO"/>
> >   </category>
> >   -->
> >
> >   <!-- Increase the priority threshold for the DefaultDS category
> >   <category name="DefaultDS">
> >     <priority value="FATAL"/>
> >   </category>
> >   -->
> >
> >   <!-- Decrease the priority threshold for the org.jboss.varia category
> >   <category name="org.jboss.varia">
> >     <priority value="DEBUG"/>
> >   </category>
> >   -->
> >
> >   <!--
> >      | An example of enabling the custom TRACE level priority that is
> > used
> >      | by the JBoss internals to diagnose low level details. This
example
> >      | turns on TRACE level msgs for the org.jboss.ejb.plugins package
> > and its
> >      | subpackages. This will produce A LOT of logging output.
> >        If you use replace the log4j 1.2 jar with a 1.1.3 jar you will
> > need to
> >        change this from XLevel to XPriority.
> >   <category name="org.jboss.system">
> >     <priority value="TRACE" class="org.jboss.logging.XLevel"/>
> >   </category>
> >   <category name="org.jboss.ejb.plugins">
> >     <priority value="TRACE" class="org.jboss.logging.XLevel"/>
> >   </category>
> >   -->
> >
> >   <!-- ======================= -->
> >   <!-- Setup the Root category -->
> >   <!-- ======================= -->
> >
> >   <root>
> >     <appender-ref ref="CONSOLE"/>
> >     <appender-ref ref="FILE"/>
> >   </root>
> >
> > </log4j:configuration>
> >
> >   ----- Original Message -----
> >   From: Dmitri Colebatch
> >   To: [EMAIL PROTECTED]
> >   Sent: Wednesday, June 12, 2002 9:12 PM
> >   Subject: Re: [JBoss-user] Doesn't anyone have this problem?
> >
> >
> >   I have seen that before - I think it occurs when you configure log4j
> > console appenders twice - try removing the console appender from your
> > log4j config.
> >
> >   hth
> >   dim
> >     ----- Original Message -----
> >     From: Mitchell Kim
> >     To: [EMAIL PROTECTED]
> >     Sent: Thursday, June 13, 2002 10:20 AM
> >     Subject: [JBoss-user] Doesn't anyone have this problem?
> >
> >
> >     I posted this message before...  but nobody is responding...  I
can't
> > believe I am the only who are having this issue...
> >     Can any one help me?  Why am I getting that error?
> >
> >     ........................................
> >
> >     I am using log4j for logging in one of my servlets.  It was working
> > as intended until I upgraded to JBoss 3.0.0 with integrated Jetty.  I am
> > seeing following error message on the console output.
> >
> >     ERROR: invalid console appender config detected, console stream is
> > looping
> >
> >     Does anyone know what's going on?
> >     I am using the the log4j.xml file in the
> > D:\jboss-3.0.0\server\default\conf directory for
> >         DOMConfigurator.configure(configDir + "/log4j.xml");
> >     method.
> >
> >     Can anyone tell me what I am doing wrong?
> >
> >     Thanks in advance.
> >
> >     ================================
> >     Mitchell Kim (kimion.com)
> >     Software Developer
> >     [EMAIL PROTECTED]
> >     http://www.kimion.com
> >
> > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
> > <HTML><HEAD>
> > <META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
> > <META content="MSHTML 6.00.2716.2200" name=GENERATOR>
> > <STYLE></STYLE>
> > </HEAD>
> > <BODY bgColor=#ffffff>
> > <DIV><FONT face=Arial size=2>I don't remeber that I have configured
log4j
> >
> > console appender twice.&nbsp; I am using the log4j.xml file in the
> > "D:\jboss-3.0.0\server\default\conf" directory which is the one that
> > comes with
> > JBoss distribution.&nbsp; I am using that config file for </FONT><FONT
> > face=Arial size=2>DOMConfigurator.configure() method.&nbsp; Am I doing
> > something
> > really wrong?&nbsp; It works fine with WebLogic.&nbsp; I guess that's
not
> >
> > relavent since WebLogic doesn't use log4j.&nbsp; Then, my question is
> > what would
> > be the best way to do loggin in JBoss 3.0?&nbsp; I have been using this
> > in
> > previous JBoss version and it worked fine...&nbsp; </FONT></DIV>
> > <DIV><FONT face=Arial size=2>What am I doing wrong?</FONT></DIV>
> > <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
> > <DIV><FONT face=Arial size=2>The log4j.xml file that I am using (that
> > comes with
> > JBoss) is below...</FONT></DIV>
> > <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
> > <DIV><FONT face=Arial size=2>&lt;?xml version="1.0"
> > encoding="UTF-8"?&gt;<BR>&lt;!DOCTYPE log4j:configuration SYSTEM
> > "log4j.dtd"&gt;</FONT></DIV>
> > <DIV>&nbsp;</DIV>
> > <DIV><FONT face=Arial size=2>&lt;!--
> > =====================================================================
>
> --&gt;<BR>&lt;!--&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
> >
> > --&gt;<BR>&lt;!--&nbsp; Log4j
> >
Configuration&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb
sp;
> >
>
> --&gt;<BR>&lt;!--&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
> >
> > --&gt;<BR>&lt;!--
> > =====================================================================
> > --&gt;</FONT></DIV>
> > <DIV>&nbsp;</DIV>
> > <DIV><FONT face=Arial size=2>&lt;!-- $Id: log4j.xml,v 1.5.2.2 2002/05/23
> > 05:55:43 starksm Exp $ --&gt;</FONT></DIV>
> > <DIV>&nbsp;</DIV>
> > <DIV><FONT face=Arial size=2>&lt;!--<BR>&nbsp;&nbsp; | For more
> > configuration
> > infromation and examples see the Jakarta Log4j<BR>&nbsp;&nbsp; |
> > owebsite: <A
> >
href="http://jakarta.apache.org/log4j";>http://jakarta.apache.org/log4j</A><B
R>&nbsp;--&gt;</FONT></DIV>
> > <DIV>&nbsp;</DIV>
> > <DIV><FONT face=Arial size=2>&lt;log4j:configuration xmlns:log4j="<A
> >
href="http://jakarta.apache.org/log4j/";>http://jakarta.apache.org/log4j/</A>
"
> >
> > debug="false"&gt;</FONT></DIV>
> > <DIV>&nbsp;</DIV>
> > <DIV><FONT face=Arial size=2>&nbsp; &lt;!--
> > =================================
> > --&gt;<BR>&nbsp; &lt;!-- Preserve messages in a local file
> > --&gt;<BR>&nbsp;
> > &lt;!-- ================================= --&gt;</FONT></DIV>
> > <DIV>&nbsp;</DIV>
> > <DIV><FONT face=Arial size=2>&nbsp; &lt;!-- A time/date based rolling
> > appender
> > --&gt;<BR>&nbsp; &lt;appender name="FILE"
> >
class="org.jboss.logging.appender.DailyRollingFileAppender"&gt;<BR>&nbsp;&nb
sp;&nbsp;
> >
> > &lt;param name="File"
> >
value="${jboss.server.home.dir}/log/server.log"/&gt;<BR>&nbsp;&nbsp;&nbsp;
> >
> > &lt;param name="Append" value="false"/&gt;</FONT></DIV>
> > <DIV>&nbsp;</DIV>
> > <DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp; &lt;!-- Rollover at
> > midnight
> > each day --&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;param name="DatePattern"
> > value="'.'yyyy-MM-dd"/&gt;</FONT></DIV>
> > <DIV>&nbsp;</DIV>
> > <DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp; &lt;!-- Rollover at the
> > top of
> > each hour<BR>&nbsp;&nbsp;&nbsp; &lt;param name="DatePattern"
> > value="'.'yyyy-MM-dd-HH"/&gt;<BR>&nbsp;&nbsp;&nbsp; --&gt;</FONT></DIV>
> > <DIV>&nbsp;</DIV>
> > <DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp; &lt;layout
> >
class="org.apache.log4j.PatternLayout"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
> >
> > &lt;!-- The default pattern: Date Priority [Category] Message\n
> > --&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param
> > name="ConversionPattern"
> > value="%d %-5p [%c] %m%n"/&gt;</FONT></DIV>
> > <DIV>&nbsp;</DIV>
> > <DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!-- The
> > full
> > pattern: Date MS Priority [Category] (Thread:NDC)
> > Message\n<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param
> > name="ConversionPattern"
> > value="%d %-5r %-5p [%c] (%t:%x)
> > %m%n"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
> > --&gt;<BR>&nbsp;&nbsp;&nbsp;
> > &lt;/layout&gt;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;
> > &lt;/appender&gt;</FONT></DIV>
> > <DIV>&nbsp;</DIV>
> > <DIV><FONT face=Arial size=2>&nbsp; &lt;!-- A size based file rolling
> > appender<BR>&nbsp; &lt;appender name="FILE"
> >
class="org.jboss.logging.appender.RollingFileAppender"&gt;<BR>&nbsp;&nbsp;&n
bsp;
> >
> > &lt;param name="File"
> >
value="${jboss.server.home.dir}/log/server.log"/&gt;<BR>&nbsp;&nbsp;&nbsp;
> >
> > &lt;param name="Append" value="false"/&gt;<BR>&nbsp;&nbsp;&nbsp;
> > &lt;param
> > name="MaxFileSize" value="500KB"/&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;param
> > name="MaxBackupIndex" value="1"/&gt;</FONT></DIV>
> > <DIV>&nbsp;</DIV>
> > <DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp; &lt;layout
> >
class="org.apache.log4j.PatternLayout"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
> >
> > &lt;param name="ConversionPattern" value="%d %-5p [%c]
> > %m%n"/&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;/layout&gt;&nbsp;&nbsp;&nbsp;&nbsp;
> > <BR>&nbsp; &lt;/appender&gt;<BR>&nbsp; --&gt;</FONT></DIV>
> > <DIV>&nbsp;</DIV>
> > <DIV><FONT face=Arial size=2>&nbsp; &lt;!--
> > ==============================
> > --&gt;<BR>&nbsp; &lt;!-- Append messages to the console --&gt;<BR>&nbsp;
> > &lt;!--
> > ============================== --&gt;</FONT></DIV>
> > <DIV>&nbsp;</DIV>
> > <DIV><FONT face=Arial size=2>&nbsp; &lt;appender name="CONSOLE"
> > class="org.apache.log4j.ConsoleAppender"&gt;<BR>&nbsp;&nbsp;&nbsp;
> > &lt;param
> > name="Threshold" value="INFO"/&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;param
> > name="Target"
> > value="System.out"/&gt;</FONT></DIV>
> > <DIV>&nbsp;</DIV>
> > <DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp; &lt;layout
> >
class="org.apache.log4j.PatternLayout"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
> >
> > &lt;!-- The default pattern: Date Priority [Category] Message\n
> > --&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param
> > name="ConversionPattern"
> > value="%d{ABSOLUTE} %-5p [%c{1}] %m%n"/&gt;<BR>&nbsp;&nbsp;&nbsp;
> > &lt;/layout&gt;<BR>&nbsp; &lt;/appender&gt;</FONT></DIV>
> > <DIV>&nbsp;</DIV><FONT face=Arial size=2>
> > <DIV><BR>&nbsp; &lt;!-- ====================== --&gt;<BR>&nbsp; &lt;!--
> > More
> > Appender examples --&gt;<BR>&nbsp; &lt;!-- ======================
> > --&gt;</DIV>
> > <DIV>&nbsp;</DIV>
> > <DIV>&nbsp; &lt;!-- Buffer events and log them asynchronously<BR>&nbsp;
> > &lt;appender name="ASYNC"
> > class="org.apache.log4j.AsyncAppender"&gt;<BR>&nbsp;&nbsp;&nbsp;
> > &lt;appender-ref ref="FILE"/&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;appender-ref
> > ref="CONSOLE"/&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;appender-ref
> > ref="SMTP"/&gt;<BR>&nbsp; &lt;/appender&gt;<BR>&nbsp; --&gt;</DIV>
> > <DIV>&nbsp;</DIV>
> > <DIV>&nbsp; &lt;!-- EMail events to an administrator<BR>&nbsp;
> > &lt;appender
> > name="SMTP"
class="org.apache.log4j.net.SMTPAppender"&gt;<BR>&nbsp;&nbsp;&nbsp;
> >
> > &lt;param name="Threshold" value="ERROR"/&gt;<BR>&nbsp;&nbsp;&nbsp;
> > &lt;param
> > name="To" value="<A
> >
href='mailto:[EMAIL PROTECTED]"/'>[EMAIL PROTECTED]"/</A>&gt;<BR
>&nbsp;&nbsp;&nbsp;
> >
> > &lt;param name="From" value="<A
> >
href='mailto:[EMAIL PROTECTED]"/'>[EMAIL PROTECTED]"/</A>&gt;<
BR>&nbsp;&nbsp;&nbsp;
> >
> > &lt;param name="Subject" value="JBoss Sever
> > Errors"/&gt;<BR>&nbsp;&nbsp;&nbsp;
> > &lt;param name="SMTPHost" value="localhost"/&gt;<BR>&nbsp;&nbsp;&nbsp;
> > &lt;param
> > name="BufferSize" value="10"/&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;layout
> >
class="org.apache.log4j.PatternLayout"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
> >
> > &lt;param name="ConversionPattern" value="[%d{ABSOLUTE},%c{1}]
> > %m%n"/&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;/layout&gt;<BR>&nbsp;
> > &lt;/appender&gt;<BR>&nbsp; --&gt;</DIV>
> > <DIV>&nbsp;</DIV>
> > <DIV>&nbsp; &lt;!-- Syslog events<BR>&nbsp; &lt;appender name="SYSLOG"
> > class="org.apache.log4j.net.SyslogAppender"&gt;<BR>&nbsp;&nbsp;&nbsp;
> > &lt;param
> > name="Facility" value="LOCAL7"/&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;param
> > name="FacilityPrinting" value="true"/&gt;<BR>&nbsp;&nbsp;&nbsp;
&lt;param
> >
> > name="SyslogHost" value="localhost"/&gt;<BR>&nbsp;
> > &lt;/appender&gt;<BR>&nbsp;
> > --&gt;</DIV>
> > <DIV>&nbsp;</DIV>
> > <DIV>&nbsp; &lt;!-- Log events to JMS (requires a topic to be
> > created)<BR>&nbsp;
> > &lt;appender name="JMS"
> > class="org.apache.log4j.net.JMSAppender"&gt;<BR>&nbsp;&nbsp;&nbsp;
> > &lt;param
> > name="Threshold" value="ERROR"/&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;param
> > name="TopicConnectionFactoryBindingName"
> > value="java:/ConnectionFactory"/&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;param
> > name="TopicBindingName" value="topic/MyErrorsTopic"/&gt;<BR>&nbsp;
> > &lt;/appender&gt;<BR>&nbsp; --&gt;</DIV>
> > <DIV>&nbsp;</DIV>
> > <DIV>&nbsp; &lt;!-- ================ --&gt;<BR>&nbsp; &lt;!-- Limit
> > categories
> > --&gt;<BR>&nbsp; &lt;!-- ================ --&gt;</DIV>
> > <DIV>&nbsp;</DIV>
> > <DIV>&nbsp; &lt;!-- Limit JBoss categories to INFO<BR>&nbsp;
&lt;category
> >
> > name="org.jboss"&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;priority
> > value="INFO"/&gt;<BR>&nbsp; &lt;/category&gt;<BR>&nbsp; --&gt;</DIV>
> > <DIV>&nbsp;</DIV>
> > <DIV>&nbsp; &lt;!-- Increase the priority threshold for the DefaultDS
> > category<BR>&nbsp; &lt;category
name="DefaultDS"&gt;<BR>&nbsp;&nbsp;&nbsp;
> >
> > &lt;priority value="FATAL"/&gt;<BR>&nbsp; &lt;/category&gt;<BR>&nbsp;
> > --&gt;</DIV>
> > <DIV>&nbsp;</DIV>
> > <DIV>&nbsp; &lt;!-- Decrease the priority threshold for the
> > org.jboss.varia
> > category<BR>&nbsp; &lt;category
name="org.jboss.varia"&gt;<BR>&nbsp;&nbsp;&nbsp;
> >
> > &lt;priority value="DEBUG"/&gt;<BR>&nbsp; &lt;/category&gt;<BR>&nbsp;
> > --&gt;</DIV>
> > <DIV>&nbsp;</DIV>
> > <DIV>&nbsp; &lt;!--<BR>&nbsp;&nbsp;&nbsp;&nbsp; | An example of enabling
> > the
> > custom TRACE level priority that is used<BR>&nbsp;&nbsp;&nbsp;&nbsp; |
by
> > the
> > JBoss internals to diagnose low level details. This
> > example<BR>&nbsp;&nbsp;&nbsp;&nbsp; | turns on TRACE level msgs for the
> > org.jboss.ejb.plugins package and its<BR>&nbsp;&nbsp;&nbsp;&nbsp; |
> > subpackages.
> > This will produce A LOT of logging
> > output.<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If you use replace the
> > log4j 1.2
> > jar with a 1.1.3 jar you will need
to<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
> >
> > change this from XLevel to XPriority.<BR>&nbsp; &lt;category
> > name="org.jboss.system"&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;priority
> > value="TRACE"
> > class="org.jboss.logging.XLevel"/&gt;<BR>&nbsp;
> > &lt;/category&gt;<BR>&nbsp;
> > &lt;category name="org.jboss.ejb.plugins"&gt;<BR>&nbsp;&nbsp;&nbsp;
> > &lt;priority
> > value="TRACE" class="org.jboss.logging.XLevel"/&gt;<BR>&nbsp;
> > &lt;/category&gt;<BR>&nbsp; --&gt;</DIV>
> > <DIV>&nbsp;</DIV>
> > <DIV>&nbsp; &lt;!-- ======================= --&gt;<BR>&nbsp; &lt;!--
> > Setup the
> > Root category --&gt;<BR>&nbsp; &lt;!-- =======================
> > --&gt;</DIV>
> > <DIV>&nbsp;</DIV>
> > <DIV>&nbsp; &lt;root&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;appender-ref
> > ref="CONSOLE"/&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;appender-ref
> > ref="FILE"/&gt;<BR>&nbsp; &lt;/root&gt;<BR>&nbsp;
> > <BR>&lt;/log4j:configuration&gt;<BR></FONT></DIV>
> > <BLOCKQUOTE dir=ltr
> > style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px;
> > BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
> >   <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
> >   <DIV
> >   style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color:
> > black"><B>From:</B>
> >   <A [EMAIL PROTECTED] href="mailto:[EMAIL PROTECTED]";>Dmitri
> >   Colebatch</A> </DIV>
> >   <DIV style="FONT: 10pt arial"><B>To:</B> <A
> >   [EMAIL PROTECTED]
> >
href="mailto:[EMAIL PROTECTED]";>[EMAIL PROTECTED]
net</A>
> >
> >   </DIV>
> >   <DIV style="FONT: 10pt arial"><B>Sent:</B> Wednesday, June 12, 2002
> > 9:12
> >   PM</DIV>
> >   <DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [JBoss-user] Doesn't
> > anyone
> >   have this problem?</DIV>
> >   <DIV><BR></DIV>
> >   <DIV><FONT face="Courier New" size=2>I have seen that before - I think
> > it
> >   occurs when you configure log4j console appenders twice - try removing
> > the
> >   console appender from your log4j config.</FONT></DIV>
> >   <DIV><FONT face="Courier New" size=2></FONT>&nbsp;</DIV>
> >   <DIV><FONT face="Courier New" size=2>hth</FONT></DIV>
> >   <DIV><FONT face="Courier New" size=2>dim</FONT></DIV>
> >   <BLOCKQUOTE dir=ltr
> >   style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px;
> > BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
> >     <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
> >     <DIV
> >     style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color:
> > black"><B>From:</B>
> >     <A [EMAIL PROTECTED] href="mailto:[EMAIL PROTECTED]";>Mitchell
> > Kim</A>
> >     </DIV>
> >     <DIV style="FONT: 10pt arial"><B>To:</B> <A
> >     [EMAIL PROTECTED]
> >
href="mailto:[EMAIL PROTECTED]";>[EMAIL PROTECTED]
net</A>
> >
> >     </DIV>
> >     <DIV style="FONT: 10pt arial"><B>Sent:</B> Thursday, June 13, 2002
> > 10:20
> >     AM</DIV>
> >     <DIV style="FONT: 10pt arial"><B>Subject:</B> [JBoss-user] Doesn't
> > anyone
> >     have this problem?</DIV>
> >     <DIV><BR></DIV>
> >     <DIV>
> >     <DIV><FONT face=Arial size=2>I posted this message before...&nbsp;
> > but
> >     nobody is responding...&nbsp; I can't believe I am the only who are
> > having
> >     this issue...</FONT></DIV>
> >     <DIV><FONT face=Arial size=2>Can any one help me?&nbsp; Why am I
> > getting
> >     that error?</FONT></DIV>
> >     <DIV>&nbsp;</DIV>
> >     <DIV><FONT face=Arial
> >     size=2>........................................</FONT></DIV>
> >     <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
> >     <DIV><FONT face=Arial size=2>I am using log4j for logging in one of
> > my
> >     servlets.&nbsp; It was working as intended until I upgraded to JBoss
> > 3.0.0
> >     with integrated Jetty.&nbsp; I am seeing following error message on
> > the
> >     console output.</FONT></DIV>
> >     <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
> >     <DIV><FONT face=Arial size=2>ERROR: invalid console appender config
> >     detected, console stream is looping</FONT></DIV>
> >     <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
> >     <DIV><FONT face=Arial size=2>Does anyone know what's going
> > on?</FONT></DIV>
> >     <DIV><FONT face=Arial size=2>I am using the the log4j.xml file in
the
> >
> >     D:\jboss-3.0.0\server\default\conf directory for </FONT></DIV>
> >     <DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp;
> >     DOMConfigurator.configure(configDir + "/log4j.xml");</FONT></DIV>
> >     <DIV><FONT face=Arial size=2>method.</FONT></DIV>
> >     <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
> >     <DIV><FONT face=Arial size=2>Can anyone tell me what I am doing
> >     wrong?</FONT></DIV>
> >     <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
> >     <DIV><FONT face=Arial size=2>Thanks in advance.</FONT></DIV>
> >     <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV></DIV>
> >     <DIV><FONT face=Arial
size=2>================================<BR>Mitchell
> >
> >     Kim (kimion.com)<BR>Software Developer<BR><A
> >     href="mailto:[EMAIL PROTECTED]";>[EMAIL PROTECTED]</A><BR><A
> >
href="http://www.kimion.com";>http://www.kimion.com</A></FONT></DIV></BLOCKQU
OTE></BLOCKQUOTE></BODY></HTML>
> >
>
> _______________________________________________________________
>
> Sponsored by:
> ThinkGeek at http://www.ThinkGeek.com/
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user


_______________________________________________________________

Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to