]
Hynek Švábek commented on WFLY-5219:
------------------------------------
Thanks for explanation. It is ok now.
Datasource transformer for EAP6.2
----------------------------------
Key: WFLY-5219
URL:
https://issues.jboss.org/browse/WFLY-5219
Project: WildFly
Issue Type: Bug
Components: Domain Management, JCA
Affects Versions: 10.0.0.Beta2
Reporter: Hynek Švábek
Assignee: Stefano Maestri
Priority: Blocker
Fix For: 10.0.0.CR1
Datasource transformer for EAP6.2 work with wrong model version.
EAP 6.2 doesn't contain datasource model version 1.2, right version is 1.1
(jboss-as-datasources_1_1.xsd)
https://github.com/wildfly/wildfly/blob/master/connector/src/main/java/or...
I execute this command over CLI
DomainController - EAP7 DR8
Slave - EAP 6.2
{code}
data-source add --profile=full-ha --jndi-name=java:jboss/datasources/TestDS
--name=java:jboss/datasources/TestDS --driver-name=h2
--connection-url=jdbc:h2:mem:test;DB_CLOSE_DELAY=-1
{code}
and get this output
{code}
Failed to execute line 'data-source add --profile=full-ha
--jndi-name=java:jboss/datasources/TestDS --name=java:jboss/datasources/TestDS
--driver-name=h2 --connection-url=jdbc:h2:mem:test;DB_CLOSE_DELAY=-1':
org.jboss.as.cli.CommandLineException: {"host-failure-descriptions" =>
{"slave" => "WFLYCTL0297: Transforming operation {
\"address\" => [
(\"profile\" => \"full-ha\"),
(\"subsystem\" => \"datasources\"),
(\"data-source\" => \"java:jboss/datasources/TestDS\")
],
\"operation\" => \"add\",
\"jndi-name\" => \"java:jboss/datasources/TestDS\",
\"driver-name\" => \"h2\",
\"connection-url\" => \"jdbc:h2:mem:test;DB_CLOSE_DELAY=-1\",
\"operation-headers\" => {
\"caller-type\" => \"user\",
\"access-mechanism\" => \"NATIVE\",
\"domain-uuid\" =>
\"1dc420b4-d16f-4d0b-9cc5-3709939cff7d\",
\"execute-for-coordinator\" => true,
\"domain-controller-lock-id\" => 131382573
}
} at resource [
(\"profile\" => \"full-ha\"),
(\"subsystem\" => \"datasources\"),
(\"data-source\" => \"java:jboss/datasources/TestDS\")
] to subsystem 'datasources' model version '1.2.0' -- attributes
[statistics-enabled] WFLYJCA0088: Attributes [statistics-enabled] rejected. Must be
true"}}
{code}