Camel Jasypt Encryption support in Spring Boot.

Solution Verified - Updated -

Issue

  • Using camel-jasypt-starter dependency 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

Environment

  • Fuse Integration Services (FIS) 2.0

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.