From: Scott M S. <Sco...@di...> - 2001-05-25 18:10:48
|
Using what version of JBoss and have you made any changes to jboss.conf to enable the Log4jService? System.out and System.err are intercepted to route through either the legacy JMX based logging or the Log4jService console appender so when BasicConfigurator tries to setup System.out a loop is being established somewhere. Configuration should be done outside of EJBs via an mbean. You don't know whose toes your stepping on when trying to do the configuration from within an EJB. ----- Original Message ----- From: "Zhou Cai" <zc...@ob...> To: <jbo...@li...> Sent: Friday, May 25, 2001 10:20 AM Subject: RE: [JBoss-user] A message appears millions times in my JBoss startup window until I kill the window > Hi, > I checked my code thoroughly. I found that I used " > org.apache.log4j.BasicConfigurator.configure(); " before I call " > System.out.println("This is a test");" . If I delete " > org.apache.log4j.BasicConfigurator.configure(); ", everything is fine. > Is there some impact between Log4j and JBoss? > Thanks a lot. > > Zhou > |