[jboss-jira] [JBoss JIRA] (AS7-2797) CLI: "xa-data-source add" is adding non-xa datasource

Dominik Pospisil (Created) (JIRA) jira-events at lists.jboss.org
Fri Nov 25 11:13:40 EST 2011


CLI: "xa-data-source add"  is adding non-xa datasource
------------------------------------------------------

                 Key: AS7-2797
                 URL: https://issues.jboss.org/browse/AS7-2797
             Project: Application Server 7
          Issue Type: Bug
          Components: CLI, Domain Management
    Affects Versions: 7.1.0.Beta1
            Reporter: Dominik Pospisil
            Assignee: Alexey Loubyansky


Seems that xa-data-source add command does not work correctly.

Command 
xa-data-source add --jndi-name=java:jboss/datasources/TestXADS --driver-name=h2 --pool-name=TestXADS
finishes OK, and xa-data-source is registered in model. However, server fails to restart since non-xa datasource is added to standalone.cfg instead of xa:

                <datasource jndi-name="java:jboss/datasources/TestXADS" pool-name="TestXADS">
                    <driver>
                        h2
                    </driver>
                </datasource>



Steps to reproduce:
1) start standalone server
1) CLI: xa-data-source add --jndi-name=java:jboss/datasources/TestXADS --driver-name=h2 --pool-name=TestXADS
2) stop server
3) start server

Server fails with:
16:13:03,175 ERROR [org.jboss.as.controller] Operation ("add") failed - address: ([
    ("subsystem" => "datasources"),
    ("data-source" => "java:jboss/datasources/TestXADS")
]) - failure description: "JBAS014746: connection-url may not be null"



--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list