简体   繁体   English

glassfish指定的库jar mysql-connector-java-5.1.23-bin.jar不存在

[英]glassfish specified library jar mysql-connector-java-5.1.23-bin.jar does not exist

I configured the JDBC Ressources in GlassFish and I pinged it and it was successful. 我在GlassFish配置了JDBC Ressources ,并对其执行ping操作,并成功完成了。 But when I try to deploy the EJB module I get this error: 但是,当我尝试部署EJB模块时,出现以下错误:

Grave:   Exception while deploying the app [BanqueEJBPersistence] : Specified library jar mysql-connector-java-5.1.23-bin.jar does not exist: C:\Program%20Files\NetBeans%208.0.2\ide\modules\ext\mysql-connector-java-5.1.23-bin.jar

I am working on NetBeans 8.0.2 and GlassFish 4.1. 我正在使用NetBeans 8.0.2和GlassFish 4.1。

I suggest putting your mysql jar at {Glass Fish Server Location}/glassfish/lib If it is already there, it might be a Netbeans thing. 我建议将您的mysql jar放在{Glass Fish Server Location}/glassfish/lib如果已经存在),可能是Netbeans的问题。 Directly add it through Netbeans using the add Connection wizard under Services -> Databases. 使用服务->数据库下的添加连接向导,通过Netbeans直接添加它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM