When deploying Spring Boot version 2.6.3 as a war with Wildfly 26, I get the following error on startup:
Failed to define class io.micrometer.core.instrument.binder.jersey.server.MetricsApplicationEventListener in Module "deployment.custom-config-server-1.0-SNAPSHOT.war" from Service Module Loader: java.lang.NoClassDefFoundError: Failed to link io/micrometer/core/instrument/binder/jersey/server/MetricsApplicationEventListener (Module "xxx" from Service Module Loader): org/glassfish/jersey/server/monitoring/ApplicationEventListener
and Micrometer / Actuator is not deployed properly.
Spring Cloud 2021.0.0 Spring Boot 2.6.3
Refer to this SO for more details: https://stackoverflow.com/questions/70762804/spring-actuator-changes-upgrading-from-spring-boot-2-4-3-to-2-6-2/70911878#70911878
Comment From: wilkinsona
Thanks for the report but please don't duplicate an existing Stack Overflow question. There are people over there already trying to help and opening an issue here as well creates the risk of wasting their time. If the Q&A on Stack Overflow shows that there's something in Boot that we need to fix we can re-open this issue and take another look.
Comment From: harlean
java.lang.NoClassDefFoundError: Failed to link io/micrometer/core/instrument/binder/jersey/server/MetricsApplicationEventListener spring boot 2.6.6 spring 5.3.18 jdk 1.8 Wildfly 14.0.0