GlassFish 未加载连接器
我正在使用 GlassFish 3,但我似乎无法让它识别 MySql 连接器。管理控制台总是说:
Ping 连接池 --- 是 失败的。 Ping 失败异常 - 类 名称错误或未设置类路径 为了 : com.mysql.jdbc.jdbc2.可选.MysqlDataSource 请检查 server.log 了解更多信息 详细信息。
但是,即使出现错误,JPA 也可以连接。唯一的缺点是我遇到了调整池大小异常(空)。我什至将连接器放置在以下文件夹中:
- %GLASSFISH%/lib
- %GLASSFISH%/domains/domain1/lib
- %GLASSFISH%/domains/domain1/lib/ext
我还尝试了 http://old.nabble.com/MySql-connector-problems,-Class-name-is-wrong-or-classpath-td21833176.html 但是设置类路径是(在V3)。
有什么想法吗? :(
编辑:
Nvm ...我通过将连接器放入来修复它
eclipse/plugins/oracle.eclipse.runtime.glassfish_3.1.0.0/glassfish3/glassfish/lib
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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论