1 min read
-
Install the database driver as a module
-
Create the directory on WildFly home directory:
C:\Servers\wildfly-18.0.1.Final\wildfly-18.0.1.Final\modules\com\mariadb\main
-
Copy the database driver: mariadb-java-client-2.4.1 into specified directory
-
Create the file module.xml in the same directory with the following XML content:
<module xmlns="urn:jboss:module:1.3" name="com.mariadb"> <resources> <resource-root path="mariadb-java-client-2.4.1.jar"/> </resources> <dependencies> <module name="javax.api"/> <module name="javax.transaction.api"/> </dependencies> </module>
-
Start WildFly in bin directory as standalone.bat for Windows
-
Access to WildFly web console and go to the following configuration path: Configuration - Subsystems - Datasources and drivers - JDBC drivers
-
Enter the following information for MariaDB driver:
Driver name: mariadb
Driver Module Name: com.mariadb
Driver Class Name: org.mariadb.jdbc.Driver
-