Skip to content

Aws fix - Removing Logback

Susie Lin requested to merge aws-fix into az/vl-spring6-upgrade

Running the spring application resulted in following error:

Caused by: java.lang.IllegalArgumentException: LoggerFactory is not a Logback LoggerContext but Logback is on the classpath. Either remove Logback or the competing implementation (class org.slf4j.helpers.NOPLoggerFactory loaded from jar:nested:/app.jar/!BOOT-INF/lib/slf4j-api-2.0.13.jar!/). If you are using WebLogic you will need to add 'org.slf4j' to prefer-application-packages in WEB-INF/weblogic.xml: org.slf4j.helpers.NOPLoggerFactory

The logback dependency was removed explicitly

A slf4j-simple library was adding to be used as logging instead

An annotation was added to the AwsSecurityConfig file, as the liveness probe check for the pod was failing due to issues with calling the health check endpoint.

Edited by Susie Lin

Merge request reports

Loading