Driver "missing" failure after updating MySQL driver to more recent version

Solution Verified - Updated -

Issue

  • MySQL driver deployed as a jar deployment
  • Datasource defined using MySQL 5.1.29 driver with the following driver reference

    <datasource jndi-name="java:jboss/datasources/mysql" pool-name="MySQL" enabled="true">
        ...
        <driver>mysql-connector-java-5.1.29-bin.jar</driver>
        ...
    </datasource>
    
  • The deployed driver jar (in <JBOSS_HOME>/standalone/deployments) was replaced with a more recent version (e.g. mysql-connector-java-5.1.44-bin.jar) and the driver reference was updated

    <driver>mysql-connector-java-5.1.44-bin.jar</driver>
    
  • Restart fails with errors like the below

    ... ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("add") failed - address: ([
        ("subsystem" => "datasources"),
        ("data-source" => "MySQL")
    ]) - failure description: {
        "WFLYCTL0412: Required services that are not installed:" => ["jboss.jdbc-driver.mysql-connector-java-5_1_44-bin_jar"],
        "WFLYCTL0180: Services with missing/unavailable dependencies" => [
            "org.wildfly.data-source.MySQL is missing [jboss.jdbc-driver.mysql-connector-java-5_1_44-bin_jar]",
            "jboss.driver-demander.java:jboss/datasources/mysql is missing [jboss.jdbc-driver.mysql-connector-java-5_1_44-bin_jar]"
        ]
    }
    ... ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("add") failed - address: ([
        ("subsystem" => "datasources"),
        ("data-source" => "MySQL")
    ]) - failure description: {
        "WFLYCTL0412: Required services that are not installed:" => [
            "jboss.jdbc-driver.mysql-connector-java-5_1_44-bin_jar",
            "jboss.jdbc-driver.mysql-connector-java-5_1_44-bin_jar"
        ],
        "WFLYCTL0180: Services with missing/unavailable dependencies" => [
            "org.wildfly.data-source.MySQL is missing [jboss.jdbc-driver.mysql-connector-java-5_1_44-bin_jar]",
            "jboss.driver-demander.java:jboss/datasources/mysql is missing [jboss.jdbc-driver.mysql-connector-java-5_1_44-bin_jar]",
            "org.wildfly.data-source.MySQL is missing [jboss.jdbc-driver.mysql-connector-java-5_1_44-bin_jar]"
        ]
    }
    

Environment

  • Red Hat JBoss Enteprise Application Platform (EAP) 7
  • MySQL

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In