Wildfly xa事务警告“未为崩溃恢复定义安全域" [英] Wildfly xa transaction warning "No security domain defined for crash recovery"

查看:108
本文介绍了Wildfly xa事务警告“未为崩溃恢复定义安全域"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个wildfly服务器8,并且在日志中定期收到这两个警告:

I have a wildfly server 8 and in the log I get periodicaly those two warnings :

2014-06-10 12:01:19,255 WARN  [org.jboss.jca.core.tx.jbossts.XAResourceRecoveryImpl] (Periodic Recovery) IJ000904: No security domain defined for crash recovery: java:jboss/datasources/sevicesDS
2014-06-10 12:01:19,256 WARN  [org.jboss.jca.core.tx.jbossts.XAResourceRecoveryImpl] (Periodic Recovery) IJ000905: Subject for crash recovery was null: java:jboss/datasources/sevicesDS

我的数据源配置:

 <xa-datasource jndi-name="java:jboss/datasources/sevicesDS" pool-name="sevicesDS" enabled="true" use-java-context="true">
                    <xa-datasource-property name="URL">
                        jdbc:mysql://my.server.local:3306/FOUR_PM__SERVICES?useUnicode=true&amp;characterEncoding=UTF-8
                    </xa-datasource-property>
                    <driver>mysql</driver>
                    <transaction-isolation>TRANSACTION_READ_COMMITTED</transaction-isolation>
                    <xa-pool>
                        <min-pool-size>1</min-pool-size>
                        <max-pool-size>10</max-pool-size>
                        <prefill>true</prefill>
                    </xa-pool>
                    <security>
                        <user-name>username</user-name>
                    </security>
                    <statement>
                        <prepared-statement-cache-size>10</prepared-statement-cache-size>
                        <share-prepared-statements>true</share-prepared-statements>
                    </statement>
                </xa-datasource>

推荐答案

我已经检查过了,这是Narayana中的错误.我为此提了个吉拉.您可以在这里检查: https://issues.jboss.org/browse/JBTM-2190

I've checked that and this is a bug in Narayana. I've raised a jira about that. You can check it here: https://issues.jboss.org/browse/JBTM-2190

不幸的是,警告"表示未针对该xa数据源运行恢复.解决方法是为连接定义密码,尽管您不需要连接密码即可连接数据库.然后将其添加到安全标签中.

Unfortunately the WARNING means that recovery is not run against that xa datasource. The workaround is to define password for connection despite you wouldn't need it for connecting to DB. And then add that in the security tag.

这篇关于Wildfly xa事务警告“未为崩溃恢复定义安全域"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆