[JBTM-1171] Log sql exception for one phase resources
https://issues.jboss.org/browse/JBTM-1758