6 Replies Latest reply on Sep 10, 2018 4:34 AM by Wolfgang Mayer

    WildFly-14: java.lang.ClassNotFoundException: com.mysql.jdbc.jdbc2.optional.MysqlXADataSource

    Wolfgang Mayer Master

      When creating a XA Datasource for MySql I get an exception that com.mysql.jdbc.jdbc2.optional.MysqlXADataSource cannot be found.

      This is correct. Since version 8 the driver name is com.mysql.cj.jdbc.Driver and the xa-datasource-class is com.mysql.cj.jdbc.MysqlXADataSource instead.

      It looks like these entries are hard coded in WildFly and cannot be changed by configuration.