[jboss-jira] [JBoss JIRA] (WFLY-5219) Datasource transformer for EAP6.2

Kabir Khan (JIRA) issues at jboss.org
Thu Aug 27 08:37:44 EDT 2015


    [ https://issues.jboss.org/browse/WFLY-5219?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13102524#comment-13102524 ] 

Kabir Khan commented on WFLY-5219:
----------------------------------

The xsd and the actual model version are independent. The model version is 1.2.0, see https://github.com/jbossas/jboss-eap/blob/EAP_6.2.0.GA/connector/src/main/java/org/jboss/as/connector/subsystems/datasources/DataSourcesExtension.java#L139


> 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/org/jboss/as/connector/subsystems/datasources/DataSourcesSubsystemRootDefinition.java#L98
> 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