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

module with non existent dependency fails to load with no message

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Minor Minor
    • 14.0.0.Beta2
    • None
    • Server
    • None

      module with non existent dependency fails to load with no message

      If a user configures a custom module for a datasource and misspells one of the dependencies, then it will fail to load the module but does not indicate why. As the module is defined, but one of its dependencies does not exist, it would be good if it logged why the module failed to load.

      Can reproduce by editing: modules/system/layers/base/com/h2database/h2/main/module.xml

      Change
      <module name="javax.transaction.api"/>
      to
      <module name="jaxax.transaction.api"/>

      14:01:58,896 ERROR [org.jboss.as.controller.management-operation] (ServerService Thread Pool -- 33) WFLYCTL0013: Operation ("add") failed - address: ([
          ("subsystem" => "datasources"),
          ("jdbc-driver" => "h2")
      ]) - failure description: "WFLYJCA0041: Failed to load module for driver [com.h2database.h2]"
      

            spyrkob Bartosz Spyrko-Smietanko
            spyrkob Bartosz Spyrko-Smietanko
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: