5 Aralık 2011 Pazartesi

Jboss Start-up Error : invalid console appender config detected, console stream is looping

If your application has its own log4j.properties, it may conflict with the one jboss uses. This will cause jboss to raise the following error:

"ERROR: invalid console appender config detected, console stream is looping."

To overcome this error   

  • Edit jboss-service.xml configuration file to include CatchSystemOut=false configuration. For example
<mbean code="org.jboss.logging.Log4jService" name="jboss.system:type=Log4jService,service=Logging">
<attribute name="ConfigurationURL">resource:log4j.xml</attribute>
<attribute name="CatchSystemOut">false</attribute>
<attribute name="Log4jQuietMode">true</attribute>
</mbean>


      or
  • Edit run.sh or run.conf (or run.bat on windows) to override JAVA_OPTS settings as 
 set JAVA_OPTS= %JAVA_OPTS% -Dorg.jboss.logging.Log4jService.catchSystemOut=false

Hiç yorum yok:

Yorum Gönder