Apr 9, 2018

Fixed: Glassfish: Cause: Class name is wrong or classpath is not set for : com.mysql.jdbc.jdbc2.optional.MysqlDataSource Error Code: 0

You need to put MySQL driver JAR to go such as glassfish/domains/[domainname]/lib/ext or glassfish/domains/[domainname]/lib
and restart glassfish.