diff --git a/connector/src/main/java/org/jboss/as/connector/subsystems/datasources/JdbcDriverAdd.java b/connector/src/main/java/org/jboss/as/connector/subsystems/datasources/JdbcDriverAdd.java index 097079866220..9b5967278c2e 100644 --- a/connector/src/main/java/org/jboss/as/connector/subsystems/datasources/JdbcDriverAdd.java +++ b/connector/src/main/java/org/jboss/as/connector/subsystems/datasources/JdbcDriverAdd.java @@ -108,7 +108,7 @@ protected void performRuntime(OperationContext context, ModelNode operation, Mod } catch (ClassNotFoundException e) { throw SUBSYSTEM_DATASOURCES_LOGGER.failedToLoadDataSourceClass(xaDataSourceClassName, e); } catch (ClassCastException e) { - throw SUBSYSTEM_DATASOURCES_LOGGER.notAValidDataSourceClass(dataSourceClassName, DataSource.class.getName()); + throw SUBSYSTEM_DATASOURCES_LOGGER.notAValidDataSourceClass(xaDataSourceClassName, XADataSource.class.getName()); } checkDSCls(dsCls, XADataSource.class); }