Can't use mysql driver with Wildfly 9.0.2 however It seems like it's loaded correctly
I'm trying to switch to wildfly from glassfish but I'm getting a hard time to set up a connection to mysql db. I have placed the .jar and module.xml under /wildfly-9.0.2.Final/modules/system/layers/base/com/mysql/driver/main.
And here comes the fun part, when I run ./standalnole.sh there is no error at all. It says mysql driver stared, but on the Management Interface under datasources - detected drivers I don't see it, just the original h2 driver.
[0m13:22:59,551 INFO [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-3) WFLYJCA0018: Started Driver service with driver-name = mysql
I installed a postgresql-driver and module using the commandline interface. It ended up in .../wildfly-9.0.2.Final/modules/org/postgresql/main/ . Thats a different place than you have used, but I do not know if that's the problem here.
Your xml look ok to me, but the driver jar and module.xml file is perhaps not in the correct place. Try to use cli to install it. Here is how I installed my driver and created datasource for it: