Closed olavgg closed 4 months ago
When I try to run a Spring Boot project with Asset Pipeline I get the following error
java.lang.IllegalStateException: Unable to load cache item .... Caused by: java.lang.NoClassDefFoundError: org/apache/log4j/Logger at asset.pipeline.springboot.AssetPipelineService.<clinit>(AssetPipelineService.groovy)
It seems like log4j is required, but my project is configured with logback. If I add Log4j 1.x dependency it works fine,
I usually add log4j-over-slf4j as dependency to resolve this issue:
log4j-over-slf4j
e.g. implementation 'org.slf4j:log4j-over-slf4j:2.0.4'
implementation 'org.slf4j:log4j-over-slf4j:2.0.4'
4.5.1 switched to slf4j in all spots
When I try to run a Spring Boot project with Asset Pipeline I get the following error
It seems like log4j is required, but my project is configured with logback. If I add Log4j 1.x dependency it works fine,