Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-55

bad error message for invalid <resource-root> path in module.xml

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • None
    • Management
    • None
    • Low

      What

      If you have a typo in your path for your module.xml for a JDBC driver, e.g.,

      <?xml version="1.0" encoding="UTF-8"?>
      <module xmlns="urn:jboss:module:1.0" name="com.mysql">
              <resources>
                  <resource-root path="DOES.NOT.EXIST.jar"/>
              </resources>
              <dependencies>
                  <module name="javax.api"/>
                  <module name="javax.transaction.api"/>
              </dependencies>
      </module>
      

      WF just says:

      16:22:26,770 ERROR [org.jboss.as.controller.management-operation] (ServerService Thread Pool -- 30) JBAS014613: Operation ("add") failed - address: ([
          ("subsystem" => "datasources"),
          ("jdbc-driver" => "com.mysql")
      

      Why

      This is not very informative, unfortunately. Maybe it's logged as level DEBUG instead of WARN? If someone points me to the name of the class that handles this kind of thing, I can submit a patch/pull request.

              bstansbe@redhat.com Brian Stansberry
              the_alchemist_jira The Alchemist (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: