I am using Jboss EAP 7.2 and trying to add a new XA Datasource. I am using db2jcc4.jar and db2jcc_license_cisuz.jar in com.ibm.db2 folder in jboss/modules/.
{"WFLYCTL0062: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-1" => {"WFLYCTL0080: Failed services" => {"org.wildfly.data-source.ds_km_repos_xa" => "WFLYJCA0033: Error during the deployment of ds_km_repos_xa Caused by: org.jboss.jca.deployers.common.DeployException: WFLYJCA0030: unable to deploy Caused by: org.jboss.as.controller.OperationFailedException: WFLYJCA0114: Failed to load datasource class: COM.ibm.db2.jdbc.DB2XADataSource [ "WFLYJCA0114: Failed to load datasource class: COM.ibm.db2.jdbc.DB2XADataSource" ] Caused by: java.lang.ClassNotFoundException: COM.ibm.db2.jdbc.DB2XADataSource from [Module "com.ibm.db2" from local module loader @475530b9 (finder: local module finder @1d057a39 (roots: /dnb/opt/jboss/modules,/dnb/opt/jboss/modules/system/layers/base))]"}}}}}}}}}}
Please try with a correct class name:
com.ibm.db2.jcc.DB2XADataSource
Your error message shows an incorrect class name.