Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,11 @@
*/
@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"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,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 {

// TODO reintroduce once spring-boot-starter-undertow will be available
Expand Down Expand Up @@ -78,7 +82,10 @@ static class UndertowAccessLogCustomizerConfiguration {
* 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 {

Expand Down
Loading