Open saragluna opened 1 year ago
/cc @Sanne, @barreiro, @gsmet
@agoncal I'm wondering if you could have a look at this one?
@saragluna I cannot reproduce the bug. I can use the app in dev mode (I am using the latest 2.15.3 version though).
@saragluna Tell me what you do exactly ? You just add the azure-identity-providers-jdbc-postgresql
dependency to the pom.xml
(leaving the existing quarkus-jdbc-postgresql
dependency) and execute mvn quarkus:dev
and you get the exception ?
Hi @agoncal, this is the sample I ran https://github.com/Azure-Samples/Passwordless-Connections-for-Java-Apps/tree/main/Quarkus. I specify the auth plugin in the JDBC URL for the driver to load the authentication plugin.
Hey @saragluna I was trying to reproduce this issue with no success. Could you please provide a reproducer (just a simple Quarkus app where the issue is visible) or maybe confirm that this is no longer an issue with the latest Quarkus release? Thanks!
Hi @marko-bekhta, I will try to run it again.
Thanks!
Describe the bug
I'm running this sample hibernate-orm-panache-quickstart, but with a self-provided authentication plugin from azure-identity-providers-jdbc-postgresql.
The application can run correctly when use the
prod
profile, but whendev
is being used, it will throw aNoClassDefFoundException
Expected behavior
No exception thrown when running locally.
Actual behavior
The application throws
NoClassDefFoundException
.How to Reproduce?
Add the following dependency to the pom.xml file
Output of
uname -a
orver
Darwin 22.1.0 Darwin Kernel Version 22.1.0: Mon Aug 15 20:06:40 PDT 2022; root:xnu-8792.40.29.161.2~1/RELEASE_ARM64_T8103 arm64
Output of
java -version
openjdk version "11.0.15" 2022-04-19 LTS OpenJDK Runtime Environment Zulu11.56+19-CA (build 11.0.15+10-LTS) OpenJDK 64-Bit Server VM Zulu11.56+19-CA (build 11.0.15+10-LTS, mixed mode)
GraalVM version (if different from Java)
openjdk version "11.0.14" 2022-01-18 OpenJDK Runtime Environment GraalVM CE 22.0.0.2 (build 11.0.14+9-jvmci-22.0-b05) OpenJDK 64-Bit Server VM GraalVM CE 22.0.0.2 (build 11.0.14+9-jvmci-22.0-b05, mixed mode, sharing)
Quarkus version or git rev
2.12.1.Final
Build tool (ie. output of
mvnw --version
orgradlew --version
)Apache Maven 3.8.6 (84538c9988a25aec085021c365c560670ad80f63)
Additional information
Specifying
parentFirstArtifact
using this method https://quarkus.io/guides/class-loading-reference#parent-first-dependencies won't work. I ended up adding something like thisSince there're so many transitive dependencies, I have to add them one by one.