I have an app that has mysql-connector.jar as dependency, running on Wildfly 9.0.2. When I deploy the app, Wildfly discovers the mysql-connector and deploys silently two jdbc drivers, named "app.war_com.mysql.jdbc.Driver_5_1" and "app.war_com.mysql.fabric.jdbc.FabricMySQLDriver_5_1". I want to turn off this silent driver deployment. Is there any possibility to do this? I already have a mysql driver installed and want to avoid any redundant driver duplication. Right now I clean up the driver list manually.
Quite simply, don't package mysql jdbc driver jar in your deployment which you shouldn't in any case.
If you are using maven set <scope>provided</scope> for jdbc driver dep.