-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Classpath resource not found when using Spring Boot and GraalVM #2945
Comments
Thanks you for your report. As the name Note that GraalVM requires a lot of metadata to decide which classes and resources to include. This metadata can be:
Remark: While the Log4j API does not requires any GraalVM metadata since the release of version |
@ppkarwasz Thank you for the response, I'll bring this up to the Spring Boot team. Appreciate the help! |
@brendenehlers, I have the impression that there is a bit of a confusion here. Allow me to clarify certain concepts. Log4j API and Log4j Core (the reference implementation of the Log4j API) are two different things. You can contrast them to SLF4J and Logback. Your application or its transitive dependencies might be using Log4j API as their choice of logging API. Though the backend, aka., the logging implementation, might be Log4j Core or Logback, or something else. The |
I am closing this, since it can not be fixed by Log4j. |
Description
When using Spring Boot, Log4j 2.24.0, and GraalVM, the application cannot start because it can't find classpath resource
log4j2.xml
.Error message:
java.io.FileNotFoundException: class path resource [org/springframework/boot/logging/log4j2/log4j2.xml] cannot be resolved to URL because it does not exist
Configuration
Version: 2.24.0
Operating system: MacOS/GraalVM
JDK: GraalVM 22
Logs
Reproduction
Here's a repo I created with a minimal example of the bug. Follow the steps in the README to reproduce the bug.
https://github.com/brendenehlers/log4j-graalvm-error
The text was updated successfully, but these errors were encountered: