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

add jdbc-driver : documentation incomplete or misleading

    XMLWordPrintable

Details

    Description

      I want to add a jdbc driver to a profile. The driver has been uploaded to /deployment
      [domain@localhost:9999 subsystem=datasources] pwd
      /profile=default/subsystem=datasources
      [domain@localhost:9999 subsystem=datasources] ./jdbc-driver=postgres9:add(driver-name=postgres9,deployment-name=postgresql-9.0-801.jdbc4.jar,driver-class-name=org.postgresql.Driver)
      {
      "outcome" => "failed",
      "failure-description" =>

      {"domain-failure-description" => "Operation handler failed: java.util.NoSuchElementException: No child 'driver-module-name' exists"}

      ,
      "rolled-back" => true
      }

      Documentation says:

      [domain@localhost:9999 jdbc-driver=h2] :read-operation-description(name=add)
      {
      "outcome" => "success",
      "result" => {
      "operation-name" => "add",
      "description" => "Adds a new JDBC driver service",
      "attributes" => {
      "driver-name" =>

      { "description" => "The symbolic name of this driver used to reference it in the register", "type" => STRING, "required" => true }

      ,
      "deployment-name" =>

      { "description" => "The name of the deployment unit from which the driver was loaded, if it was loaded from a deployment", "type" => STRING }

      ,
      "driver-module-name" =>

      { "description" => "The name of the module from which the driver was loaded, if it was loaded from the module path", "type" => STRING }

      ,
      "module-slot" =>

      { "description" => "The slot of the module from which the driver was loaded, if it was loaded from the module path", "type" => STRING }

      ,
      "driver-class-name" =>

      { "description" => "The fully qualified class name of the driver's implementation of java.sql.Driver", "type" => STRING }

      ,
      "driver-major-version" =>

      { "description" => "The driver's major version number", "type" => INT }

      ,
      "driver-minor-version" =>

      { "description" => "The driver's minor version number", "type" => INT }

      ,
      "jdbc-compliant" =>

      { "description" => "Whether or not the driver is JDBC compliant", "type" => BOOLEAN }

      }
      }
      }

      Here, only the driver-name is required.
      For driver-module-name it says "if loaded from module", which I read as "optional".
      Obviously from above error message, this is not optional

      Attachments

        Activity

          People

            jeff.zhang_jira Jeff Zhang (Inactive)
            pilhuhn Heiko Rupp
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: