Unable to Connect to JDBC Connection Pool from Glassfish

前端 未结 4 1116
情书的邮戳
情书的邮戳 2020-12-30 04:25

I am running GlassFish Server Open Source Edition 3.1.2.2 (build 5) with MySql

I have created a JDBC Connection Pool using NetBeans.

Googled this problem I f

相关标签:
4条回答
  • 2020-12-30 05:04

    Right, you lack mysql lib find and download mysql-connector-java-5.x.x-bin.jar copy to E:\Projects\glassfish3.1.1\glassfish\lib then restart server and enjoy !!!

    0 讨论(0)
  • 2020-12-30 05:16

    You've placed the jdbc jar in domain folder, try putting it in the Glassfish server folder.
    C:\Program Files\glassfish-3.1.2.2\glassfish\lib

    0 讨论(0)
  • 2020-12-30 05:23

    The data source factory has moved to a different package in Connector/J 8.0. It can now be found inside com.mysql.cj.jdbc.MysqlDataSource

    So you need to change Datasource Classname as mentioned above.

    0 讨论(0)
  • 2020-12-30 05:30

    You can put yor mysql connector jar at this place. It works for me E:\servers\glassfish4\glassfish\domains\domain1\lib

    0 讨论(0)
提交回复
热议问题