[jboss-jira] [JBoss JIRA] (WFLY-5219) Datasource transformer for EAP6.2 work with wrong model version.

Hynek Švábek (JIRA) issues at jboss.org
Thu Aug 27 04:15:52 EDT 2015


Hynek Švábek created WFLY-5219:
----------------------------------

             Summary: Datasource transformer for EAP6.2 work with wrong model version.
                 Key: WFLY-5219
                 URL: https://issues.jboss.org/browse/WFLY-5219
             Project: WildFly
          Issue Type: Bug
          Components: JCA, Domain Management
            Reporter: Hynek Švábek
            Assignee: Jesper Pedersen
            Priority: Blocker


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)

{code}
https://github.com/wildfly/wildfly/blob/master/connector/src/main/java/org/jboss/as/connector/subsystems/datasources/DataSourcesSubsystemRootDefinition.java#L98
{code}

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}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)



More information about the jboss-jira mailing list