Closed khteh closed 4 years ago
I just tried your reproducer (#533) and after changing the vertx-jdbc-client
version to 3.9.1, the app started and the JDBC driver was found.
Closing this as there is no Vert.x issue. Please post further questions to the Vert.x user group (see https://vertx.io/community/).
Which command did you use? Using vertx
CLI (vertx run com.restapi.vertx.Launcher -cp target/*
) doesn't work but java
does.
I have fixed the version to 3.9.1 but vertx run com.restapi.vertx.Launcher -cp target/*
still bumps into the same exception:
Could not load driverClass com.mysql.cj.jdbc.Driver
java.lang.ClassNotFoundException: com.mysql.cj.jdbc.Driver
Questions
I have the following dependency in pom.xml:
My MySQL server is
8.0.20
. Running my Java Vert.x application from the command linevertx run com.restapi.vertx.Launcher -cp target/*
bumps into the following runtime exception:Version
Which version(s) did you encounter this bug ? 3.9.1
Context
Using JDBC in Java Vert.x application to access MySQL 8.0.20
Running the application with
java --add-opens java.base/jdk.internal.misc=ALL-UNNAMED -Dio.netty.tryReflectionSetAccessible=true -jar target/restapi-1.0-fat.jar
does not have this exception.