DefaultConfigurationFactory not found in Quarkus 2.7.1.Final native application with quarkus-spring-security #23621
Labels
area/security
area/spring
Issues relating to the Spring integration
kind/bug
Something isn't working
Milestone
Describe the bug
I have a project which is on Quarkus 1.11.5.Final and uses quarkus-spring-web and quarkus-spring-security. When I tried upgrading the application to Quarkus 2.7.1.Final, it works in JVM mode but fails in native mode.
To reproduce, download the bug reproducer project.
{"message": "HELLO WORLD!"}
{"message": "HELLO [email protected]!"}
Now build using the native image:
Expected behavior
The application should work in native mode the same as JVM mode.
Actual behavior
The exception in ServiceLoader.java points to the ConfigurationFactory class not being registered for reflection in native mode, which is why DefaultConfigurationFactory could not be found.
How to Reproduce?
Reproducer: https://github.com/bkzoller/quarkus-quickstarts/tree/bug/quarkus-spring-web/spring-web-quickstart
See description above for the steps to reproduce the bug.
Output of
uname -a
orver
Darwin Brians-MBP.fios-router.home 21.2.0 Darwin Kernel Version 21.2.0: Sun Nov 28 20:28:54 PST 2021; root:xnu-8019.61.5~1/RELEASE_X86_64 x86_64
Output of
java -version
OpenJDK 64-Bit Server VM Temurin-11.0.14+9 (build 11.0.14+9, mixed mode)
GraalVM version (if different from Java)
22.0.0.2 or 21.3.1
Quarkus version or git rev
2.7.1.Final, 2.6.3.Final and main branch
Build tool (ie. output of
mvnw --version
orgradlew --version
)Apache Maven 3.8.4 (9b656c72d54e5bacbed989b64718c159fe39b537) Maven home: /usr/local/Cellar/maven/3.8.4/libexec Java version: 11.0.14, vendor: Eclipse Adoptium, runtime: /Library/Java/JavaVirtualMachines/temurin-11.jdk/Contents/Home Default locale: en_US, platform encoding: UTF-8 OS name: "mac os x", version: "12.1", arch: "x86_64", family: "mac"
Additional information
No response
The text was updated successfully, but these errors were encountered: