Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-16109

camel-hystrix-starter auto-config fails with multiple "servletRegistrationBean"

    XMLWordPrintableJSON

Details

    • Unknown

    Description

      A servlet based Spring Boot application using Apache Camel to expose REST endpoints fails with the following error:

      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.

      Reproducer can be found here: sys-jdi/hystrix-starter-issue (github.com)

      To reproduce, start the application using 

      mvn spring-boot:run
      

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            sys-jdi Jesper Duelund Isaksen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: