Glassfish未加载com.mysql.jdbc.jdbc2.optional.MysqlXADataSource包。Cause: Class name is wrong or classpath is not set
for:com.mysql.jdbc.jdbc2.optional.MysqlXADataSource我已经将mysql-connector jar文件复制到Glassfish的lib目录
我从甲骨文的网站上拿了这个例子,但我无法实现它。它一直显示一个错误。我已经将MySQL5.1驱动程序jar添加到我的项目lib文件夹和我的构建路径中。我如何修复我的代码?链接- java.sql.SQLException: No suitable driver found for jdbc:JavaEE://localHost:3306/
at java.sql.DriverManager.getConnectionconnectionPr
bean with name 'dataSource' defined in class path resource [org/springframework/boot/autoconfigure/jdbcmethod 'dataSource' threw exception;
nested exception is org.springframework.boot.autoconfigure.jdbc.DataSourceProperties