Connecting a MySQL database to Glassfish classpath is not set or classname is wrong

后端 未结 5 1374
情深已故
情深已故 2020-12-28 14:47

I\'m swapping out a derby database for a MySQL one. I had everything working before but after what I thought was the proper configuration I\'m getting the error:

Cau

5条回答
  •  抹茶落季
    2020-12-28 15:34

    I've also added the MySQL driver .jars to the library of glassfish in both projects.

    It was apparently not done right. The JAR has to go in /glassfish/domains/[domainname]/lib/ext folder of the Glassfish installation where [domainname] usually defaults to domain1. You can and should not configure it from the Eclipse side on.

提交回复
热议问题