-
Notifications
You must be signed in to change notification settings - Fork 40.8k
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
LaunchedClassLoader issue Illegal character in opaque part when log4j2.xml (or any file) is in a jar file #38827
Comments
This may well be a duplicate of #38660. @funnelspider are you able to give the latest |
tried it right now and with version 3.2.1-SNAPSHOT i still get the same error WARN StatusLogger Error accessing jar:nested:/C:/Program Files (x86)/my_app/app.jar/!BOOT-INF/classes/!/log4j2.xml due to Illegal character in opaque part at index 22: jar:nested:/C:/Program Files (x86)/my_app/app.jar/!BOOT-INF/classes/!/log4j2.xml, ignoring. |
@funnelspider Thanks for trying the SNAPSHOT. Do you have a sample project you can share that replicates the problem. Either a GitHub project or a zip file. |
I couldn't reproduce the issue with a new spring boot project so I started checking what is wrong in my project Forcing the correct 3.2.1-SNAPSHOT plugin seems to do the trick So it is indeed fixed in the 3.2.1-SNAPSHOT build. When will this be released ? |
Thanks for trying the snapshot and letting us know it fixed your problem. You can see the scheduled dates for releases on the GitHub milestones page and on the Spring release calendar. |
I have a spring boot application which is started via
It uses log4j2 as a logging framework
Recently I updated to java 21 (from java 17) and to spring boot 3.1.5 / 3.2.0 from spring boot 2.7.4
With the old java and spring boot 2.7.4 log4j find the log4j2.xml with no issues
With the new spring boot 3.1.5 it fails
Far as I can tell the old spring boot was using the
LaunchedUrlClassLoader
while the new one is usingLaunchedClassLoader
This in turn uses a wrong format for the URL (spaces not converted to %20?)
The text was updated successfully, but these errors were encountered: