Repository navigation
|
Hi, I've been trying to move my old Java EE project to use Jakarta 10 and I've got a bit confused with JDBC compatibility. I'm running Glassfish 7.0.24 and I'm trying to use mysql-connector-j-9.5.0 from MySQL but I get an error saying the class can't be found when I try to ping it from Glassfish JDBC Pools page. I'm also not sure what the location of the driver should be, I've read it maybe GLASSFISH_HOME/glassfish/bin or it could be in the domains/lib folder and another one I forget. Anyway I'd like to know what version JDBC connector I should use and also where to put the JAR. Thanks, |
Replies: 1 comment 7 replies
|
Hello, JDBC drivers are typically installed into GlassFish by the You also should use All the best, |
Hi, @izomezzo. This means that your driver is correctly installed in GlassFish but probably not correctly configured to connect to your database. Either it tries to connect to an incorrect host or port, or there's a firewall between your GlassFish server and the database. Hard to say.
I can offer a free consultancy call to quickly go through your setup if that works for you - feel free to book a call with our engineers at OmniFish: https://omnifish.ee/contact-us