当启动Jboss的时候会在控制台打出一下信息时:
ERROR: invalid console appender config detected, console stream is looping
解决办法:
找到Jboss下面的 \server\default\conf\jboss-service.xml文件
搜索“org.jboss.logging.Log4jService”
将存在此段的内容内添加一行
<attribute name="CatchSystemOut">false</attribute>即可
示例:
<mbean code="org.jboss.logging.Log4jService"
name="jboss.system:type=Log4jService,service=Logging"
xmbean-dd="resource:xmdesc/Log4jService-xmbean.xml">
<attribute name="ConfigurationURL">resource:jboss-log4j.xml</attribute>
<!-- Set the org.apache.log4j.helpers.LogLog.setQuiteMode. As of log4j1.2.8
this needs to be set to avoid a possible deadlock on exception at the
appender level. See bug#696819.
-->
<attribute name="CatchSystemOut">false</attribute> <!--(在此添加此句就可以解决这个ERROR)-->
<attribute name="Log4jQuietMode">true</attribute>
<!-- How frequently in seconds the ConfigurationURL is checked for changes -->
<attribute name="RefreshPeriod">60</attribute>
<!-- The value to assign to system property jboss.server.log.threshold
if it is not already set. This system property in turn controls
the logging threshold for the server.log file.
If the system property is already set when this service is created,
this value is ignored. -->
<attribute name="DefaultJBossServerLogThreshold">INFO</attribute>
</mbean>