Using XidWrapper can cause problems with the Oracle JDBC drivers, which apparently compare XIDs by reference equality rather than the equals() method. As a work-around, <wrap-xaresource>false</wrap-xaresource> can be used, but better would be to only use the XID wrappers when needed.
verified on EAP 6.4.0.DR5