Also, Make sure the service type in your login-config.xml file matches the transaction type in your "-ds.xml" file. EX:
if your "-ds.xml" entry tooks like:
<xa-datasource>
<jndi-name>SomeDS</jndi-name>
<security-domain>SomeDomain</security-domain>
</xa-datasource>
Then the service type in the login-config.xml for the corresponding domain should look like :
<module-option name = "managedConnectionFactoryName">jboss.jca:name=SomeDS,service=XATxCM</module-option>
But,
if your "-ds.xml" entry tooks like:
<local-tx-datasource>
<jndi-name>SomeDS</jndi-name>
<security-domain>SomeDomain</security-domain>
</local-tx-datasource>
Then the service type in the login-config.xml for the corresponding domain should look like :
<module-option name = "managedConnectionFactoryName">jboss.jca:name=SomeDS,service=LocalTxCM</module-option>