"WFLYJCA0114: Failed to load datasource class: ..." referencing unused class in JBoss EAP

Solution Verified - Updated -

Issue

  • Encountering a datasource add/deployment failure indicating a missing driver

    ... "WFLYCTL0412: Required services that are not installed:" => [
        "jboss.jdbc-driver.oracle",
        "jboss.jdbc-driver.oracle"
    ],
    "WFLYCTL0180: Services with missing/unavailable dependencies" => [
        "org.wildfly.data-source.MyDS is missing [jboss.jdbc-driver.oracle]",
        "jboss.driver-demander.java:/jdbc/MyDS is missing [jboss.jdbc-driver.oracle]",
        "org.wildfly.data-source.MyDS is missing [jboss.jdbc-driver.oracle]"
    ]
    
  • Earlier in the server.log the following error was found

    ... ERROR [org.jboss.as.controller.management-operation] ... WFLYCTL0013: Operation ("add") failed - address: ([
        ("subsystem" => "datasources"),
        ("jdbc-driver" => "oracle")
    ]) - failure description: "WFLYJCA0114: Failed to load datasource class: oracle.jdbc.OracleDriver"
    
  • oracle.jdbc.OracleDriver was specified as an xa-datasource-class but no XA pool has been defined so the class should not be used.
  • The same configuration worked in older EAP releases (prior to JBoss EAP 7.2).

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP) 7.2 (and later)

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content