You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Performing AOT processing of a logback configuration xml with variables as the class name throws a java.lang.ClassNotFoundException in org.springframework.boot.logging.logback.SpringBootJoranConfigurator.
wilkinsona
changed the title
AOT issue processing logback variables for class names
ClassNotFoundException during AOT processing of Logback XML that references a variable when defining a component's class
Feb 22, 2023
Performing AOT processing of a logback configuration xml with variables as the class name throws a
java.lang.ClassNotFoundException
inorg.springframework.boot.logging.logback.SpringBootJoranConfigurator
.I have created a reproducer at https://github.com/justin-tay/spring-boot-logback-issue which demonstrates the issue.
Running
mvnw spring-boot:run
shows that it runs normally and logback substitutes the variable for the class name.Running
mvnw spring-boot:process-aot
shows the exception.In logback the relevant code performing the substitution is
https://github.com/qos-ch/logback/blob/bba7a908c87a4a483860f6d49695ec2348c56e49/logback-core/src/main/java/ch/qos/logback/core/model/processor/ImplicitModelHandler.java#L126
I think that in Spring Boot the following should also likewise add code to perform the substitution
spring-boot/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/logging/logback/SpringBootJoranConfigurator.java
Line 260 in 7d69731
The text was updated successfully, but these errors were encountered: