If the folders didn't exist, create it by yourself.ģ.
Using any kind of text editor, create file inside your Wildfly path, WILDFLY_HOME\modules\system\layers\base\com\mysql\main, and this is the XML file contents of it:
#Mysql jdbc driver for spark download
Download MySQL connector from Maven centralĭownload : mysql-connector-java-8.0.17.jarĪnd then put the file under WILDFLY_HOME\modules\system\layers\base\com\mysql\main Now create /] /subsystem=datasources/jdbc-driver=mysql/:add(driver-module-name=,driver-name=mysql,jdbc-compliant=false,driver-class-name=)ġ. (Specially when we do a copy & paste in such /] module add -name= -dependencies=javax.api, /] :reloadĪfter running above command you should see the module.xml generated in the following location: "wildfly-8.2.1.Final/modules/com/mysql/driver/main/module.xml" This is because when we use some text editors, they might append some hidden chars to our files. Try creating the Module itself using the jboss-cli.sh command rather than manually writing the module.xml file.