[[+content_image]]
I
I
Igor Braduloff2019-09-06 08:37:14
Java
Igor Braduloff, 2019-09-06 08:37:14

Why error JBAS010441: Failed to load module for driver [org.mariadb]?

Good afternoon! After running the JBoss CLI and registering the MariaDB driver:

[[email protected]:9999 /] /subsystem=datasources/jdbc-driver=org.mariadb.jdbc.Driver:add(driver-name=org.mariadb.jdbc.Driver,
driver-module-name=org.mariadb,driver-xa-datasource-class-name=org.mariadb.jdbc.MySQLDataSource)

Throws error
{
"outcome" => "failed",
"failure-description" => "JBAS010441: Failed to load module for driver [org.mariadb]",
"rolled-back" => true
}
My file module.xml( /opt/jboss/modules/org/mariadb/main)
<?xml version="1.0" encoding="UTF-8"?>
<module xmlns="urn:jboss:module:1.0" name="org.mariadb">
  <resources>
  		<resources-root path="mariadb-java-client-1.1.7.jar"/>
 	</resources>
  <dependencies>
    <module name="javax.api"/>
    <module name="javax.transaction.api"/>
  </dependencies>
</module>

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question