GlassFish not loading connector

前提是你 提交于 2019-12-07 18:28:02

问题


I'm using GlassFish 3 and I can't seem to get it to recognize the MySql connector. The admin console always says:

Ping Connection Pool for --- is Failed. Ping failed Exception - Class name is wrong or classpath is not set for : com.mysql.jdbc.jdbc2.optional.MysqlDataSource Please check the server.log for more details.

However, JPA can connect even with the error. The only downside is that I get resize pool exceptions (null). I've even placed the connector in the following folders:

  • %GLASSFISH%/lib
  • %GLASSFISH%/domains/domain1/lib
  • %GLASSFISH%/domains/domain1/lib/ext

I also tried the solution at http://old.nabble.com/MySql-connector-problems,-Class-name-is-wrong-or-classpath-td21833176.html however setting class path is (unsupported in V3).

Any ideas? :(

EDIT:

Nvm... I fixed it by dropping the connector in

eclipse/plugins/oracle.eclipse.runtime.glassfish_3.1.0.0/glassfish3/glassfish/lib

来源:https://stackoverflow.com/questions/6243559/glassfish-not-loading-connector

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!