From c7edc6385686a06ded49ee1e1018b3c5c4157a54 Mon Sep 17 00:00:00 2001 From: Chao Wang Date: Mon, 30 Oct 2023 11:11:48 +0800 Subject: [PATCH] [WFLY-18703] Correct misleading error message for XA DataSource class --- .../as/connector/subsystems/datasources/JdbcDriverAdd.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }