Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-18885

Unable to look up deployed datasource when name differs from runtime-name

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 31.0.0.Final
    • 30.0.1.Final
    • JCA
    • None
    • Hide

      Deploy an application with a datasource (*-ds.xml file), e.g. kitchensink from quickstarts: name=kitchensink, runtime-name=kitchensink.war

      [standalone@localhost:9990 /] /deployment=kitchensink/subsystem=datasources:read-resource(include-runtime)
      {
          "outcome" => "success",
          "result" => {
              "data-source" => {"java:jboss/datasources/KitchensinkQuickstartDS" => undefined},
              "xa-data-source" => undefined
          }
      }
      
      [standalone@localhost:9990 /] /deployment=kitchensink/subsystem=datasources:read-resource(include-runtime,recursive)
      {
          "outcome" => "failed",
          "rolled-back" => true,
          "failure-description" => "WFLYJCA0065: No DataSource exists at address [
          (\"deployment\" => \"kitchensink\"),
          (\"subsystem\" => \"datasources\"),
          (\"data-source\" => \"java:jboss/datasources/KitchensinkQuickstartDS\")
      ]"
      }
      
      Show
      Deploy an application with a datasource (*-ds.xml file), e.g. kitchensink from quickstarts: name=kitchensink, runtime-name=kitchensink.war [standalone@localhost:9990 /] /deployment=kitchensink/subsystem=datasources:read-resource(include-runtime) { "outcome" => "success", "result" => { "data-source" => {"java:jboss/datasources/KitchensinkQuickstartDS" => undefined}, "xa-data-source" => undefined } } [standalone@localhost:9990 /] /deployment=kitchensink/subsystem=datasources:read-resource(include-runtime,recursive) { "outcome" => "failed", "rolled-back" => true, "failure-description" => "WFLYJCA0065: No DataSource exists at address [ (\"deployment\" => \"kitchensink\"), (\"subsystem\" => \"datasources\"), (\"data-source\" => \"java:jboss/datasources/KitchensinkQuickstartDS\") ]" }
    • ---
    • ---

    Description

      In a deployment where name and runtime-name are different it's not possible to get the details of a datasource using CLI.

      Attachments

        Activity

          People

            mpetrov@redhat.com Michal Petrov
            mpetrov@redhat.com Michal Petrov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: