[jboss-jira] [JBoss JIRA] (AS7-3583) CLI: data-source add command argument jndi-name not mandatory

Dominik Pospisil (JIRA) jira-events at lists.jboss.org
Thu Feb 2 10:47:48 EST 2012


Dominik Pospisil created AS7-3583:
-------------------------------------

             Summary: CLI: data-source add command argument jndi-name not mandatory
                 Key: AS7-3583
                 URL: https://issues.jboss.org/browse/AS7-3583
             Project: Application Server 7
          Issue Type: Bug
          Components: CLI
    Affects Versions: 7.1.0.Final
            Reporter: Dominik Pospisil
            Assignee: Alexey Loubyansky


The data-source add command argument "jndi-name" is not mandatory. The CLI allows exection of data-source add command without specifying jndi name. Enabling such data-source fails.


[standalone at localhost:9999 /] data-source add --name=TestDS2 --driver-name=h2 --connection-url=jdbc:h2:mem:test;DB_CLOSE_DELAY=-1
[standalone at localhost:9999 /] data-source enable --name=TestDS2                                                                  
JBAS010436: Failed to create DataSource instance for [{
    "operation" => "enable",
    "address" => [
        ("subsystem" => "datasources"),
        ("data-source" => "TestDS2")
    ],
    "persistent" => undefined
}]
 reason: IJ010068: Missing required attribute jndi-name in org.jboss.as.connector.subsystems.datasources.ModifiableDataSource


--
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