I have installed glassfish server with netbeans. I have created a new JDBC Connection Pool and when I ping it I get error message "Ping Connection Pool failed for MyDatabae. Class name is wrong or classpath is not set for : com.mysql.jdbc.Driver Please check the server.log for more details."

Any suggestions?

Most likely you are missing JDBC driver, or you have duplicate (at least that was problem with Tomcat if you had JDBC driver in Tomcat lib folder and another in your project lib folder).

Without seing your project hard to advice otherwise...