title: org/springframework/boot/bind/RelaxedPropertyResolver not found
body: <p>I am trying to connect Apache Artemis with Apache Camel in Spring Boot project.</p>
  <p>I am getting problem when I am upgrading my spring boot version from 1.5.9.RELEASE to 2.2.2.RELEASE. Below is my POM and Java files which I am using:</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
          &lt;project xmlns=&quot;http://maven.apache.org/POM/4.0.0&quot; xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;
              xsi:schemaLocation=&quot;http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd&quot;&gt;
              &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
          
              &lt;groupId&gt;com.learncamel&lt;/groupId&gt;
              &lt;artifactId&gt;activemq-learncamel-spring-boot&lt;/artifactId&gt;
              &lt;version&gt;1.0.0-SNAPSHOT&lt;/version&gt;
              &lt;packaging&gt;jar&lt;/packaging&gt;
          
              &lt;name&gt;learncamel-spring-boot&lt;/name&gt;
              &lt;description&gt;Demo project for Spring Boot&lt;/description&gt;
          
              &lt;parent&gt;
                  &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
                  &lt;artifactId&gt;spring-boot-starter-parent&lt;/artifactId&gt;
                  &lt;version&gt;1.5.9.RELEASE&lt;/version&gt;
                  &lt;relativePath/&gt; &lt;!-- lookup parent from repository --&gt;
              &lt;/parent&gt;
          
              &lt;properties&gt;
                  &lt;project.build.sourceEncoding&gt;UTF-8&lt;/project.build.sourceEncoding&gt;
                  &lt;project.reporting.outputEncoding&gt;UTF-8&lt;/project.reporting.outputEncoding&gt;
                  &lt;java.version&gt;1.8&lt;/java.version&gt;
                  &lt;camel-version&gt;2.20.1&lt;/camel-version&gt;
              &lt;/properties&gt;
          
              &lt;dependencies&gt;
                  &lt;dependency&gt;
                      &lt;groupId&gt;org.apache.camel&lt;/groupId&gt;
                      &lt;artifactId&gt;camel-spring-boot-starter&lt;/artifactId&gt;
                      &lt;version&gt;2.20.1&lt;/version&gt;
                  &lt;/dependency&gt;
          
                  &lt;dependency&gt;
                      &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
                      &lt;artifactId&gt;spring-boot-starter-web&lt;/artifactId&gt;
                  &lt;/dependency&gt;
          
          
                  &lt;!--jdbc--&gt;
                  &lt;dependency&gt;
                      &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
                      &lt;artifactId&gt;spring-boot-starter-jdbc&lt;/artifactId&gt;
                      &lt;version&gt;1.5.9.RELEASE&lt;/version&gt;
                  &lt;/dependency&gt;
          
                  &lt;dependency&gt;
                      &lt;groupId&gt;org.apache.camel&lt;/groupId&gt;
                      &lt;artifactId&gt;camel-jdbc&lt;/artifactId&gt;
                      &lt;version&gt;${camel-version}&lt;/version&gt;
                  &lt;/dependency&gt;
          
          
                  &lt;dependency&gt;
                      &lt;groupId&gt;org.postgresql&lt;/groupId&gt;
                      &lt;artifactId&gt;postgresql&lt;/artifactId&gt;
                      &lt;version&gt;9.4.1212&lt;/version&gt;
                  &lt;/dependency&gt;
          
          
          
                  &lt;!-- Lombok --&gt;
                  &lt;dependency&gt;
                      &lt;groupId&gt;org.projectlombok&lt;/groupId&gt;
                      &lt;artifactId&gt;lombok&lt;/artifactId&gt;
                      &lt;version&gt;1.16.20&lt;/version&gt;
                      &lt;scope&gt;provided&lt;/scope&gt;
                  &lt;/dependency&gt;
          
                  &lt;!-- EMail--&gt;
                  &lt;dependency&gt;
                      &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
                      &lt;artifactId&gt;spring-boot-starter-mail&lt;/artifactId&gt;
                      &lt;version&gt;1.4.3.RELEASE&lt;/version&gt;
                  &lt;/dependency&gt;
          
          
                  &lt;!--activeMQ--&gt;
                  &lt;dependency&gt;
                      &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
                      &lt;artifactId&gt;spring-boot-starter-activemq&lt;/artifactId&gt;
                      &lt;exclusions&gt;
                          &lt;exclusion&gt;
                              &lt;groupId&gt;org.apache.activemq&lt;/groupId&gt;
                              &lt;artifactId&gt;activemq-broker&lt;/artifactId&gt;
                          &lt;/exclusion&gt;
                      &lt;/exclusions&gt;
                  &lt;/dependency&gt;
          
          
                  &lt;dependency&gt;
                      &lt;groupId&gt;org.apache.activemq&lt;/groupId&gt;
                      &lt;artifactId&gt;activemq-camel&lt;/artifactId&gt;
                      &lt;version&gt;5.15.3&lt;/version&gt;
                  &lt;/dependency&gt;
          
          
                  &lt;dependency&gt;
                      &lt;groupId&gt;org.apache.camel&lt;/groupId&gt;
                      &lt;artifactId&gt;camel-jms&lt;/artifactId&gt;
                      &lt;version&gt;2.20.1&lt;/version&gt;
                  &lt;/dependency&gt;
          
                  &lt;!--health Check--&gt;
                  &lt;dependency&gt;
                      &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
                      &lt;artifactId&gt;spring-boot-starter-actuator&lt;/artifactId&gt;
                  &lt;/dependency&gt;
          
                  &lt;dependency&gt;
                      &lt;groupId&gt;org.apache.camel&lt;/groupId&gt;
                      &lt;artifactId&gt;camel-http&lt;/artifactId&gt;
                      &lt;version&gt;2.20.1&lt;/version&gt;
                  &lt;/dependency&gt;
          
          
          
                  &lt;!--Test Dependencies--&gt;
                  &lt;!--Camel Spring Test--&gt;
                  &lt;dependency&gt;
                      &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
                      &lt;artifactId&gt;spring-boot-starter-test&lt;/artifactId&gt;
                      &lt;scope&gt;test&lt;/scope&gt;
                  &lt;/dependency&gt;
          
                  &lt;dependency&gt;
                      &lt;groupId&gt;org.apache.camel&lt;/groupId&gt;
                      &lt;artifactId&gt;camel-test-spring&lt;/artifactId&gt;
                      &lt;version&gt;2.20.1&lt;/version&gt;
                      &lt;scope&gt;test&lt;/scope&gt;
                  &lt;/dependency&gt;
          
                  &lt;!--Clean Up directory--&gt;
                  &lt;dependency&gt;
                      &lt;groupId&gt;org.apache.commons&lt;/groupId&gt;
                      &lt;artifactId&gt;commons-io&lt;/artifactId&gt;
                      &lt;version&gt;1.3.2&lt;/version&gt;
                  &lt;/dependency&gt;
          
          
              &lt;/dependencies&gt;
          
              &lt;build&gt;
                  &lt;plugins&gt;
                      &lt;plugin&gt;
                          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
                          &lt;artifactId&gt;spring-boot-maven-plugin&lt;/artifactId&gt;
                      &lt;/plugin&gt;
                  &lt;/plugins&gt;
              &lt;/build&gt;
          
          
          &lt;/project&gt;
      
  </code></pre>
  <p>When I am upgrading parent version to 2.2.2.RELEASE then it start giving below error:-</p>
  <pre><code>  Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
      21-06-2020 15:39:11.614 [main] ERROR o.s.boot.SpringApplication.reportFailure - Application run failed
      org.springframework.beans.factory.BeanDefinitionStoreException: Failed to process import candidates for configuration class [com.learncamel.ActiveMQCamelApplication]; nested exception is java.lang.IllegalStateException: Could not evaluate condition on org.apache.camel.spring.boot.security.CamelSSLAutoConfiguration due to org/springframework/boot/bind/RelaxedPropertyResolver not found. Make sure your own configuration does not rely on that class. This can also happen if you are @ComponentScanning a springframework package (e.g. if you put a @ComponentScan in the default package by mistake)
          at org.springframework.context.annotation.ConfigurationClassParser.processImports(ConfigurationClassParser.java:597)
          at org.springframework.context.annotation.ConfigurationClassParser.access$900(ConfigurationClassParser.java:109)
          at org.springframework.context.annotation.ConfigurationClassParser$DeferredImportSelectorGroupingHandler.lambda$processGroupImports$1(ConfigurationClassParser.java:805)
          at java.util.ArrayList.forEach(ArrayList.java:1257)
          at org.springframework.context.annotation.ConfigurationClassParser$DeferredImportSelectorGroupingHandler.processGroupImports(ConfigurationClassParser.java:801)
          at org.springframework.context.annotation.ConfigurationClassParser$DeferredImportSelectorHandler.process(ConfigurationClassParser.java:771)
          at org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:188)
          at org.springframework.context.annotation.ConfigurationClassPostProcessor.processConfigBeanDefinitions(ConfigurationClassPostProcessor.java:325)
          at org.springframework.context.annotation.ConfigurationClassPostProcessor.postProcessBeanDefinitionRegistry(ConfigurationClassPostProcessor.java:242)
          at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanDefinitionRegistryPostProcessors(PostProcessorRegistrationDelegate.java:275)
          at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:95)
          at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:706)
          at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:532)
          at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:141)
          at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:747)
          at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397)
          at org.springframework.boot.SpringApplication.run(SpringApplication.java:315)
          at org.springframework.boot.SpringApplication.run(SpringApplication.java:1226)
          at org.springframework.boot.SpringApplication.run(SpringApplication.java:1215)
          at com.learncamel.ActiveMQCamelApplication.main(ActiveMQCamelApplication.java:10)
      Caused by: java.lang.IllegalStateException: Could not evaluate condition on org.apache.camel.spring.boot.security.CamelSSLAutoConfiguration due to org/springframework/boot/bind/RelaxedPropertyResolver not found. Make sure your own configuration does not rely on that class. This can also happen if you are @ComponentScanning a springframework package (e.g. if you put a @ComponentScan in the default package by mistake)
          at org.springframework.boot.autoconfigure.condition.SpringBootCondition.matches(SpringBootCondition.java:54)
          at org.springframework.context.annotation.ConditionEvaluator.shouldSkip(ConditionEvaluator.java:108)
          at org.springframework.context.annotation.ConfigurationClassParser.processConfigurationClass(ConfigurationClassParser.java:221)
          at org.springframework.context.annotation.ConfigurationClassParser.processImports(ConfigurationClassParser.java:587)
          ... 19 common frames omitted
      Caused by: java.lang.NoClassDefFoundError: org/springframework/boot/bind/RelaxedPropertyResolver
          at org.apache.camel.spring.boot.security.CamelSSLAutoConfiguration$Condition.getMatchOutcome(CamelSSLAutoConfiguration.java:51)
          at org.springframework.boot.autoconfigure.condition.SpringBootCondition.matches(SpringBootCondition.java:47)
          ... 22 common frames omitted
      Caused by: java.lang.ClassNotFoundException: org.springframework.boot.bind.RelaxedPropertyResolver
          at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
          at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
          at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
          at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
          ... 24 common frames omitted
      
      Process finished with exit code 1
      
  </code></pre>
  <p>I am using below Java files:</p>
  <pre><code>package com.learncamel.config;
          
          import org.apache.activemq.camel.component.ActiveMQComponent;
          import org.springframework.context.annotation.Bean;
          import org.springframework.context.annotation.Configuration;
          
          import javax.jms.ConnectionFactory;
          
          @Configuration
          public class ActiveMQConfig {
          
              @Bean(name=&quot;activemq&quot;)
              public ActiveMQComponent createComponent(ConnectionFactory  factory){
          
                  ActiveMQComponent activeMQComponent = new ActiveMQComponent();
                  activeMQComponent.setConnectionFactory(factory);
                  return activeMQComponent;
          
              }
          }
  </code></pre>
  <p>Another Java file:</p>
  <pre><code>package com.learncamel.routes;
          
          import org.apache.camel.builder.RouteBuilder;
          import org.springframework.stereotype.Component;
          
          @Component
          public class ActiveMQRoute extends RouteBuilder{
          
          
              @Override
              public void configure() throws Exception {
          
          
                  from(&quot;{{fromRoute}}&quot;)
                              .log(&quot;Read Message from activemQ ${body}&quot;)
                          .to(&quot;{{toRoute}}&quot;);
          
                  }
          }
  </code></pre>