Skip to content

CAMEL-24057: check actually-used classes in @ConditionalOnClass for access log configurations [4.18.x]#1851

Open
Croway wants to merge 1 commit into
apache:camel-spring-boot-4.18.xfrom
Croway:fix/CAMEL-24057-4.18.x
Open

CAMEL-24057: check actually-used classes in @ConditionalOnClass for access log configurations [4.18.x]#1851
Croway wants to merge 1 commit into
apache:camel-spring-boot-4.18.xfrom
Croway:fix/CAMEL-24057-4.18.x

Conversation

@Croway

@Croway Croway commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

Summary

Claude Code on behalf of Federico Mariani

Backport of #1850 to camel-spring-boot-4.18.x.

@ConditionalOnClass(name = "io.undertow.Undertow") only checks for the top-level Undertow class, but the access log configurations use internal classes from io.undertow.server.handlers.accesslog.*. On JBoss EAP, the top-level class is visible (JBoss is built on Undertow) but the modular classloader doesn't export all internal packages, causing ClassNotFoundException.

This is a live bug on 4.18.x where the Undertow code is fully active (unlike main where it's commented out).

  • Updated ManagementAccessLogConfiguration.UndertowAccessLogCustomizerConfiguration to also check for AccessLogHandler and JBossLoggingAccessLogReceiver
  • Updated ManagementAccessLogConfiguration.TomcatAccessLogCustomizerConfiguration to also check for AccessLogValve (defensive consistency)
  • Updated UndertowAccessLogConfiguration to also check for AccessLogHandler and JBossLoggingAccessLogReceiver

Test plan

  • CI passes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants