Console Halt
div_gcet Feb 11, 2009 3:17 AMHi
I am working on JBoss 4.2.2. I have made a custom log4j file.And its content is:
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE log4j:configuration SYSTEM "log4j.dtd"> <log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/" debug="true" > <appender name="ROLLING" class="org.apache.log4j.DailyRollingFileAppender"> <param name="File" value="${log4j.log.dir}/jbossatwork.log"/> <param name="Append" value="false"/> <layout class="org.apache.log4j.PatternLayout"> <param name="ConversionPattern" value="%d %-5p [%c] - %m%n"/> </layout> <filter class="com.propco.tools.mergemanager.profiles.Domfilter"/> </appender> <category name="com.propco"> <priority value="DEBUG"/> <appender-ref ref="ROLLING"/> </category> <category name="org.apache"> <priority value="WARN"/> </category> <root> <priority value="WARN"/> <appender-ref ref="ROLLING"/> </root> </log4j:configuration>
And it configuewd at LoginCheck Class.The point where it is configured is
public class LoginCheck { static { ClassLoader classLoader = Thread.currentThread().getContextClassLoader(); URL url =classLoader.getResource("djboss-log4j.xml"); System.out.println(url+" <<<<<<<<<<<<urll>>>>>>>>"); DOMConfigurator.configure(url); }
Now the problem is as JBoss configures my log4j xml file it stop processing on consol side.No sysout are coming on consile while i have
not made any extra entry for consol appender in my custom log4j file. The content of consol is:
2009-02-11 13:38:07,265 INFO [STDOUT] Propco EJB Created 2009-02-11 13:38:08,312 INFO [STDOUT] jar:file:/C:/jboss1/server/default/tmp/deploy/tmp57705propcooffice-ejb.jar!/djboss-log4j.xml <<<<<<<<<<<<urll>>>>>>>> 2009-02-11 13:38:08,343 INFO [STDOUT] hi123 2009-02-11 13:38:08,343 INFO [STDOUT] getting domains for 192.168.5.78 2009-02-11 13:38:08,359 DEBUG [org.jboss.resource.connectionmanager.IdleRemover] internalRegisterPool: registering pool with interval 900000 old interval: 9223372036854775807 2009-02-11 13:38:08,359 DEBUG [org.jboss.resource.connectionmanager.IdleRemover] internalRegisterPool: about to notify thread: old next: 1234340138359, new next: 1234340138359 2009-02-11 13:38:10,046 INFO [STDOUT] div4 2009-02-11 13:38:10,062 INFO [STDOUT] div4 2009-02-11 13:38:10,062 INFO [STDOUT] Client monika (192.168.5.78) matched with clientid local 2009-02-11 13:38:10,062 INFO [STDOUT] JNDI Lookup=mysql-propcosystem 2009-02-11 13:38:10,062 DEBUG [org.jboss.resource.connectionmanager.IdleRemover] internalRegisterPool: registering pool with interval 900000 old interval: 450000 2009-02-11 13:38:11,687 DEBUG [com.arjuna.ats.arjuna.logging.arjLogger] Periodic recovery - second pass <Wed, 11 Feb 2009 13:38:11> 2009-02-11 13:38:11,687 DEBUG [com.arjuna.ats.arjuna.logging.arjLogger] AtomicActionRecoveryModule: Second pass 2009-02-11 13:38:11,687 DEBUG [com.arjuna.ats.txoj.logging.txojLoggerI18N] [com.arjuna.ats.internal.txoj.recovery.TORecoveryModule_6] - TORecoveryModule - second pass 2009-02-11 13:38:11,687 DEBUG [com.arjuna.ats.jta.logging.loggerI18N] [com.arjuna.ats.internal.jta.recovery.info.secondpass] Local XARecoveryModule - second pass 2009-02-11 13:38:11,765 INFO [STDOUT] div4 2009-02-11 13:38:11,765 INFO [STDOUT] div4 2009-02-11 13:38:11,765 INFO [STDOUT] div4 2009-02-11 13:38:11,765 INFO [STDOUT] Client m (192.168.5.78) matched with clientid local 2009-02-11 13:38:11,765 INFO [STDOUT] div4 2009-02-11 13:38:11,765 INFO [STDOUT] div4 2009-02-11 13:38:11,765 INFO [STDOUT] div4 2009-02-11 13:38:11,765 INFO [STDOUT] div4 2009-02-11 13:38:11,765 INFO [STDOUT] Client sans (192.168.5.78) matched with clientid local 2009-02-11 13:38:11,765 INFO [STDOUT] div4 2009-02-11 13:38:11,765 INFO [STDOUT] div4 2009-02-11 13:38:11,765 INFO [STDOUT] div4 2009-02-11 13:38:11,765 INFO [STDOUT] div4 2009-02-11 13:38:11,765 INFO [STDOUT] Client Training1 (192.168.5.78) matched with clientid local 2009-02-11 13:38:11,765 INFO [STDOUT] div4 2009-02-11 13:38:11,765 INFO [STDOUT] div4 2009-02-11 13:38:11,765 INFO [STDOUT] div4 2009-02-11 13:38:11,765 INFO [STDOUT] Client User (192.168.5.78) matched with clientid local 2009-02-11 13:38:11,765 INFO [STDOUT] div4 2009-02-11 13:38:11,765 INFO [STDOUT] div4 2009-02-11 13:38:11,765 INFO [STDOUT] div4 2009-02-11 13:38:11,765 INFO [STDOUT] Client Divya (192.168.5.78) matched with clientid newtraining 2009-02-11 13:38:11,765 INFO [STDOUT] JNDI Lookup=mysql-propcosystem-newtraining 2009-02-11 13:38:11,765 DEBUG [org.jboss.resource.connectionmanager.IdleRemover] internalRegisterPool: registering pool with interval 900000 old interval: 450000 2009-02-11 13:38:13,625 INFO [STDOUT] div4 2009-02-11 13:38:13,625 INFO [STDOUT] div4 2009-02-11 13:38:13,625 INFO [STDOUT] div4 2009-02-11 13:38:13,625 INFO [STDOUT] div4 2009-02-11 13:38:13,625 INFO [STDOUT] div4 2009-02-11 13:38:13,625 INFO [STDOUT] div4 2009-02-11 13:38:13,625 INFO [STDOUT] 4 2009-02-11 13:38:13,625 INFO [STDOUT] Avinashhhhhhhhh238 2009-02-11 13:38:13,625 INFO [STDOUT] Avinashhhhhhhhh233 2009-02-11 13:38:13,625 INFO [STDOUT] Avinashhhhhhhhh235 2009-02-11 13:38:13,625 INFO [STDOUT] Avinashhhhhhhhh1
Here the last sysout(Avinashhhhhhhhh1) coming is in the constructor of Domfilter class.After that no sysout is coming.May be the reason is JBoss only configure one log4j file.If is it so then why sysout are not coming in my log files as info.
Can anyone help me here.
Thanks And Regards
Divya Garg