IJ000904 / IJ000905 warnings and no recovery attempted when using a security domain with an XA datasource in JBoss EAP 7.1
Environment
- Red Hat JBoss Enterprise Application Platform (EAP) 7.1
- IronJacamar 1.4
Issue
If a security domain rather than a username / password is used for an XA datasource in EAP 7.1, recovery is not attempted and warnings are logged:
... WARN [org.jboss.jca.core.tx.jbossts.XAResourceRecoveryImpl] (Periodic Recovery) IJ000904: No security domain defined for crash recovery: <DATASOURCE_JNDI>
... WARN [org.jboss.jca.core.tx.jbossts.XAResourceRecoveryImpl] (Periodic Recovery) IJ000905: Subject for crash recovery was null: <DATASOURCE_JNDI>
Resolution
This issue1 is resolved in This content is not included.EAP 7.1 cumulative patch (CP) 4 and later releases.
The issue may worked around by adding an explicit recovery configuration with a recover-credential reference to the datasource:
<xa-datasource ...>
...
<security>
<security-domain>my-security-domain</security-domain>
</security>
<recovery>
<recover-credential>
<security-domain>my-security-domain</security-domain>
</recover-credential>
</recovery>
</xa-datasource>
Root Cause
- This is a known defect (Content from issues.jboss.org is not included.JBJCA-1376) in JBoss EAP 7.1.
Components
Category
Tags
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.