java - Error when configuring MariaDB driver on Wildfly server -
i trying configure mariadb datasource on wildfly. seems should simple operation, can't seem datasource module load properly. have added maria-java-client-1.1.8.jar archive , module.xml file wildfly-8.2.0.final/modules/com/mariadb/main directory. module.xml file follows:
<module xmlns:"urn:jboss:module:1.1" name="com.mariadb"> <resources> <resource-root path="mariadb-java-client-1.1.8.jar"/> </resources> <dependencies> <module name="javax.api"/> <module name="javax.transaction.api"/> </dependencies> </module> i have added driver entry standalone.xml file follows:
<subsystem xmlns="urn:jboss:domain:datasources:2.0"> <datasources> <datasource jndi-name="java:jboss/datasources/exampleds" pool-name="exampleds" enabled="true" use-java-context="true"> <connection-url>jdbc:h2:mem:test;db_close_delay=-1;db_close_on_exit=false</connection-url> <driver>h2</driver> <security> <user-name>sa</user-name> <password>sa</password> </security> </datasource> <drivers> <driver name="h2" module="com.h2database.h2"> <xa-datasource-class>org.h2.jdbcx.jdbcdatasource</xa-datasource-class> </driver> <driver name="mariadb" module="com.mariadb"/> </drivers> </datasources> </subsystem> note have included driver entry now. add datasource entry after module load properly.
now when startup server following error:
14:14:46,570 error [org.jboss.as.controller.management-operation] (serverservice thread pool -- 26) jbas014613: operation ("add") failed - address: ([ ("subsystem" => "datasources"), ("jdbc-driver" => "mariadb") ]) - failure description: "jbas010441: failed load module driver [com.mariadb]" according have read, proper way configure driver, not working me. know doing wrong?
thanks in advance help!
the first line of module.xml has typo (you use colon instead of equals in xmlns=...):
your version: <module xmlns:"urn:jboss:module:1.1" name="com.mariadb">
correct version: <module xmlns="urn:jboss:module:1.3" name="com.mariadb">
Comments
Post a Comment