From 04a45c5134781275cebfc62331e6440d2fa52f9f Mon Sep 17 00:00:00 2001 From: Artem Bilan Date: Wed, 30 Mar 2022 14:46:42 -0400 Subject: [PATCH] Fix JAXB_PRESENT variable for the proper class The `BaseHttpInboundEndpoint` has a `JAXB_PRESENT` variable to check before including `Jaxb2RootElementHttpMessageConverter` which has to do that against `jakarta.xml.bind.Binder` class from Jakarta EE --- .../integration/http/inbound/BaseHttpInboundEndpoint.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-integration-http/src/main/java/org/springframework/integration/http/inbound/BaseHttpInboundEndpoint.java b/spring-integration-http/src/main/java/org/springframework/integration/http/inbound/BaseHttpInboundEndpoint.java index 1498f9bcab..3812e8ce18 100644 --- a/spring-integration-http/src/main/java/org/springframework/integration/http/inbound/BaseHttpInboundEndpoint.java +++ b/spring-integration-http/src/main/java/org/springframework/integration/http/inbound/BaseHttpInboundEndpoint.java @@ -1,5 +1,5 @@ /* - * Copyright 2017-2021 the original author or authors. + * Copyright 2017-2022 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -57,7 +57,7 @@ import org.springframework.validation.Validator; */ public class BaseHttpInboundEndpoint extends MessagingGatewaySupport implements OrderlyShutdownCapable { - protected static final boolean JAXB_PRESENT = ClassUtils.isPresent("javax.xml.bind.Binder", null); + protected static final boolean JAXB_PRESENT = ClassUtils.isPresent("jakarta.xml.bind.Binder", null); protected static final boolean ROME_TOOLS_PRESENT = ClassUtils.isPresent("com.rometools.rome.feed.atom.Feed", null);