You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by fm...@apache.org on 2026/07/15 08:42:14 UTC
(camel-spring-boot) branch camel-spring-boot-4.18.x updated: CAMEL-24057: check actually-used classes in @ConditionalOnClass for access log configurations
This is an automated email from the ASF dual-hosted git repository.
Croway pushed a commit to branch camel-spring-boot-4.18.x
in repository https://gitbox.apache.org/repos/asf/camel-spring-boot.git
The following commit(s) were added to refs/heads/camel-spring-boot-4.18.x by this push:
new 016aaa24762 CAMEL-24057: check actually-used classes in @ConditionalOnClass for access log configurations
016aaa24762 is described below
commit 016aaa247624b6242dfcf4dcec9181202463efe8
Author: Croway <fe...@gmail.com>
AuthorDate: Tue Jul 14 10:55:34 2026 +0200
CAMEL-24057: check actually-used classes in @ConditionalOnClass for access log configurations
---
.../springboot/customizer/UndertowAccessLogConfiguration.java | 6 +++++-
.../actuate/accesslog/ManagementAccessLogConfiguration.java | 11 +++++++++--
2 files changed, 14 insertions(+), 3 deletions(-)
diff --git a/components-starter/camel-platform-http-starter/src/main/java/org/apache/camel/component/platform/http/springboot/customizer/UndertowAccessLogConfiguration.java b/components-starter/camel-platform-http-starter/src/main/java/org/apache/camel/component/platform/http/springboot/customizer/UndertowAccessLogConfiguration.java
index 33f0bca01b9..01070e8665a 100644
--- a/components-starter/camel-platform-http-starter/src/main/java/org/apache/camel/component/platform/http/springboot/customizer/UndertowAccessLogConfiguration.java
+++ b/components-starter/camel-platform-http-starter/src/main/java/org/apache/camel/component/platform/http/springboot/customizer/UndertowAccessLogConfiguration.java
@@ -35,7 +35,11 @@ import io.undertow.server.handlers.accesslog.JBossLoggingAccessLogReceiver;
*/
@Configuration(proxyBeanMethods = false)
@EnableConfigurationProperties(UndertowAccessLogProperties.class)
-@ConditionalOnClass(name = "io.undertow.Undertow")
+@ConditionalOnClass(name = {
+ "io.undertow.Undertow",
+ "io.undertow.server.handlers.accesslog.AccessLogHandler",
+ "io.undertow.server.handlers.accesslog.JBossLoggingAccessLogReceiver"
+})
@ConditionalOnProperties( {
@ConditionalOnProperty(name = "server.undertow.accesslog.enabled", havingValue = "false"),
@ConditionalOnProperty(name = "camel.component.platform-http.server.undertow.accesslog.use-camel-logging", havingValue = "true"),
diff --git a/core/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/actuate/accesslog/ManagementAccessLogConfiguration.java b/core/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/actuate/accesslog/ManagementAccessLogConfiguration.java
index dd3b9ee1702..bca4ddeecb6 100644
--- a/core/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/actuate/accesslog/ManagementAccessLogConfiguration.java
+++ b/core/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/actuate/accesslog/ManagementAccessLogConfiguration.java
@@ -48,7 +48,11 @@ public class ManagementAccessLogConfiguration {
* Undertow-specific configuration.
*/
@Configuration(proxyBeanMethods = false)
- @ConditionalOnClass(name = "io.undertow.Undertow")
+ @ConditionalOnClass(name = {
+ "io.undertow.Undertow",
+ "io.undertow.server.handlers.accesslog.AccessLogHandler",
+ "io.undertow.server.handlers.accesslog.JBossLoggingAccessLogReceiver"
+ })
static class UndertowAccessLogCustomizerConfiguration {
/**
@@ -78,7 +82,10 @@ public class ManagementAccessLogConfiguration {
* Tomcat-specific configuration to disable access logging in the management context.
*/
@Configuration(proxyBeanMethods = false)
- @ConditionalOnClass(name = "org.apache.catalina.startup.Tomcat")
+ @ConditionalOnClass(name = {
+ "org.apache.catalina.startup.Tomcat",
+ "org.apache.catalina.valves.AccessLogValve"
+ })
@ConditionalOnProperty(name = "management.server.accesslog.enabled", havingValue = "false")
static class TomcatAccessLogCustomizerConfiguration {