I am running GlassFish Server Open Source Edition 3.1.2.2 (build 5) with MySql
I have created a JDBC Connection Pool using NetBeans.
Googled this problem I f
Right, you lack mysql lib find and download mysql-connector-java-5.x.x-bin.jar copy to E:\Projects\glassfish3.1.1\glassfish\lib
then restart server and enjoy !!!
You've placed the jdbc jar in domain folder, try putting it in the Glassfish server folder.
C:\Program Files\glassfish-3.1.2.2\glassfish\lib
The data source factory has moved to a different package in Connector/J 8.0. It can now be found inside com.mysql.cj.jdbc.MysqlDataSource
So you need to change Datasource Classname as mentioned above.
You can put yor mysql connector jar at this place. It works for me E:\servers\glassfish4\glassfish\domains\domain1\lib