While deploying application on Jboss6/Oracle if following warning displays
"WARN [com.arjuna.ats.jta] ARJUNA-16027 Local XARecoveryModule.xaRecovery got XA exception XAException.XAER_RMERR: javax.transaction.xa.XAException"
to run following commands with sysdba Role
grant select on sys.dba_pending_transactions to gpmainuser;
grant select on sys.pending_trans$ to gpmainuser;
grant select on sys.dba_2pc_pending to gpmainuser;
grant execute on sys.dbms_system to gpmainuser;