Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-8609

Camel Jasypt Encryption support in Spring Boot.

    XMLWordPrintable

Details

    • % %

    Description

      Using camel-jasypt-starter to encrypt properties in Spring boot with camel spring xml it result with the following exception:

      17:32:33.264 [main] WARN  o.s.boot.SpringApplication - Error handling failed (Error creating bean with name 'camel': Invocation of init method failed; nested exception is java.lang.IllegalStateException: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@11758f2a has not been refreshed yet)
      17:32:33.317 [main] ERROR o.s.b.d.LoggingFailureAnalysisReporter - 
      
      ***************************
      APPLICATION FAILED TO START
      ***************************
      
      Description:
      
      Parameter 1 of method properties in org.apache.camel.spring.boot.CamelAutoConfiguration required a single bean, but 2 were found:
      	- jasypt: defined in class path resource [spring/camel-context.xml]
      	- propertiesParser: defined by method 'propertiesParser' in class path resource [org/apache/camel/spring/boot/CamelAutoConfiguration.class]
      
      Action:
      
      Consider marking one of the beans as @Primary, updating the consumer to accept multiple beans, or using @Qualifier to identify the bean that should be consumed
      

      Attachments

        Activity

          People

            acosenti Andrea Cosentino
            rhn-support-aboucham Abel Bouchama
            Lukas Lowinger Lukas Lowinger
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: