[
https://issues.jboss.org/browse/AS7-3583?page=com.atlassian.jira.plugin.s...
]
Alexey Loubyansky updated AS7-3583:
-----------------------------------
Assignee: Stefano Maestri (was: Alexey Loubyansky)
Component/s: Domain Management
Stefano, I will look into making sure required properties (those that are required in the
model description) are set before sending the request.
But this means the add operation is executed successfully, which shouldn't happen.
Could you check, please? Thanks.
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, Domain Management
Affects Versions: 7.1.0.Final
Reporter: Dominik Pospisil
Assignee: Stefano Maestri
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@localhost:9999 /] data-source add --name=TestDS2 --driver-name=h2
--connection-url=jdbc:h2:mem:test;DB_CLOSE_DELAY=-1
[standalone@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