I want to configure glassfish with my db. I create jdbc ressource like this:
- jndi name: jdbc/MysqlDataSource
- pool name : MysqlConnPoll
And i create my connection pool like this:
- Pool Name: MysqlConnPoll
- Ressource type: java.sql.driver
- Driver classname: com.mysql.jdbc.driver
in Additional Properties
- databaseName: name_db
- user: root
- password: ****
- url: jdbc:mysql://localhost:3306/name_db
- Port: 3306
- ServerName: localhost
I add mysql-connecter-java and com.mysql.jdbc in "glassfish4/glassfish/domains/domain1/lib/ext"
And when i ping my connection with the site glassfish, i have this message
Ping Connection Pool failed for MySqlConnPoll. Class name is wrong or classpath is not set for : com.mysql.jdbc.Driver Please check the server.log for more details.
Why i have this message ? i forgot something ?
thanks