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

camel-jasypt-starter - PropertiesParser cannot be redefined

    XMLWordPrintableJSON

Details

    • Unknown

    Description

      Whenever a bean like

      <bean
      class="org.apache.camel.component.jasypt.JasyptPropertiesParser" id="jasypt">
      <property name="password" value="${KEY}"/>
      <property name="algorithm" value="${ALG}"/>
      </bean> 

      is defined, Camel Srping Boot application does not start with the following error:

      Caused by: org.springframework.beans.factory.NoUniqueBeanDefinitionException: No qualifying bean of type 'org.apache.camel.component.properties.PropertiesParser' available: expected single matching bean but found 2: jasypt,encryptedPropertiesParser 

       

      -

       

      There is a workaround, that is, declaring the bean as primary="true".

      Attachments

        Issue Links

          Activity

            People

              Federico Mariani Federico Mariani
              Federico Mariani Federico Mariani
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: