Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/google-app-engine/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何避免在JBoss中打印此警告消息_Jboss - Fatal编程技术网

如何避免在JBoss中打印此警告消息

如何避免在JBoss中打印此警告消息,jboss,Jboss,我的日志被JBoss7中下面的日志消息搞砸了。你能告诉我如何停止这个日志消息吗 2018-02-28 13:37:13,618 WARN [com.arjuna.ats.arjuna] (default-threads - 48) ARJUNA012141: Multiple last resources have been added to the current transaction. This is transactionally unsafe and should not be re

我的日志被JBoss7中下面的日志消息搞砸了。你能告诉我如何停止这个日志消息吗

2018-02-28 13:37:13,618 WARN  [com.arjuna.ats.arjuna] (default-threads - 48) ARJUNA012141: Multiple last resources have been added to the current transaction. This is transactionally unsafe and should not be relied upon. Current resource is LastResourceRecord(XAOnePhaseResource(LocalXAResourceImpl@5d70439b[connectionListener=653eac5d connectionManager=7f6856e8 warned=false currentXid=null productName=MySQL productVersion=10.2.13-MariaDB-log jndiName=java:/jdbc/db_jndi]))

在standalone.xml文件的logging部分中,在相应的handler元素下添加如下内容:

<filter>
        <not>
            <match pattern="ARJUNA012141"/>
        </not>
</filter>

当然,您应该使用JBossCLI实用程序添加这些行。您知道对日志记录的更改不需要重新启动服务器,但会在定义的刷新间隔内进行吗