You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Jesper Duelund Isaksen (Jira)" <ji...@apache.org> on 2021/01/29 09:09:00 UTC
[jira] [Created] (CAMEL-16109) camel-hystrix-starter auto-config
fails with multiple "servletRegistrationBean"
Jesper Duelund Isaksen created CAMEL-16109:
----------------------------------------------
Summary: camel-hystrix-starter auto-config fails with multiple "servletRegistrationBean"
Key: CAMEL-16109
URL: https://issues.apache.org/jira/browse/CAMEL-16109
Project: Camel
Issue Type: Bug
Components: camel-spring-boot-starters
Affects Versions: 3.7.1
Reporter: Jesper Duelund Isaksen
A servlet based Spring Boot application using Apache Camel to expose REST endpoints fails with the following error:
{noformat}
The bean 'servletRegistrationBean', defined in class path resource [org/apache/camel/component/servlet/springboot/ServletMappingAutoConfiguration.class], could not be registered. A bean with that name has already been defined in class path resource [org/apache/camel/component/hystrix/springboot/HystrixMappingAutoConfiguration.class] and overriding is disabled.{noformat}
Reproducer can be found here: [sys-jdi/hystrix-starter-issue (github.com)|https://github.com/sys-jdi/hystrix-starter-issue]
To reproduce, start the application using
{code:java}
mvn spring-boot:run
{code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)