Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-3583

CLI: data-source add command argument jndi-name not mandatory

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • None
    • 7.1.0.Final
    • CLI, Domain Management
    • None

      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

            smaestri@redhat.com Stefano Maestri
            dpospisil Dominik Pospisil (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: