You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Alper Kopuz <al...@gmail.com> on 2018/12/25 08:13:40 UTC

Fwd: incompatible version of apache.camel with Spring.Boot v2.0

Hello Everyone


Anyone could englighten me which org.apache.*camel* version I should use
with the Spring boot version 2.0.0 .RELEASE.

When I used newer versions of apache.camel such like 2.21.0 , I come across
with RelaxedPropertyResolved error. I read the forums and I was told to
downgrade the version of Spring Boot which I cant. I have to use
sprint.boot.version 2.0.0 with a new apache.camel.version without making
changes at my java code ?

Do you think is it possible?

These are my dependecies for camel.version and spring.boot.version. Please
let me know if you need anything more.

         <dependency>
            <groupId>org.apache.camel</groupId>
            <artifactId>camel-bom</artifactId>
            <version>${camel.version}</version>
            <type>pom</type>
            <scope>import</scope>
            <version>2.21.0
         </dependency>
         <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-parent</artifactId>
            <version>${spring.boot.version}</version>
            <type>pom</type>
            <scope>import</scope>
            <version>2.21.0</version>
        </dependency>

Error :

at com.project.eventrouter.Application.main(Application.java:26)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)
org.springframework.boot.autoconfigure.condition.SpringBootCondition.matches(SpringBootCondition.java:55)
at org.springframework.context.annotation.ConditionEvaluator.shouldSkip(ConditionEvaluator.java:109)
at org.springframework.context.annotation.ConfigurationClassParser.processConfigurationClass(ConfigurationClassParser.java:217)
at org.springframework.context.annotation.ConfigurationClassParser.processImports(ConfigurationClassParser.java:606)...
13 common frames omitted



-- 
*   ALPER KOPUZ*
*Software Engineer  *


-- 
*   ALPER KOPUZ*
*Software Engineer  *

Re: incompatible version of apache.camel with Spring.Boot v2.0

Posted by Claus Ibsen <cl...@gmail.com>.
Hi

Camel 2.21.x or older is Spring Boot 1.5.x
Camel 2.22.x is Spring Boot 2.0.x only
Camel 2.23.x is Spring Boot 2.1.x (and potentially also Spring Boot 2.0.x)

On Tue, Dec 25, 2018 at 9:28 AM Alper Kopuz <al...@gmail.com> wrote:
>
> Hello Everyone
>
>
> Anyone could englighten me which org.apache.*camel* version I should use
> with the Spring boot version 2.0.0 .RELEASE.
>
> When I used newer versions of apache.camel such like 2.21.0 , I come across
> with RelaxedPropertyResolved error. I read the forums and I was told to
> downgrade the version of Spring Boot which I cant. I have to use
> sprint.boot.version 2.0.0 with a new apache.camel.version without making
> changes at my java code ?
>
> Do you think is it possible?
>
> These are my dependecies for camel.version and spring.boot.version. Please
> let me know if you need anything more.
>
>          <dependency>
>             <groupId>org.apache.camel</groupId>
>             <artifactId>camel-bom</artifactId>
>             <version>${camel.version}</version>
>             <type>pom</type>
>             <scope>import</scope>
>             <version>2.21.0
>          </dependency>
>          <dependency>
>             <groupId>org.springframework.boot</groupId>
>             <artifactId>spring-boot-starter-parent</artifactId>
>             <version>${spring.boot.version}</version>
>             <type>pom</type>
>             <scope>import</scope>
>             <version>2.21.0</version>
>         </dependency>
>
> Error :
>
> at com.project.eventrouter.Application.main(Application.java:26)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)
> org.springframework.boot.autoconfigure.condition.SpringBootCondition.matches(SpringBootCondition.java:55)
> at org.springframework.context.annotation.ConditionEvaluator.shouldSkip(ConditionEvaluator.java:109)
> at org.springframework.context.annotation.ConfigurationClassParser.processConfigurationClass(ConfigurationClassParser.java:217)
> at org.springframework.context.annotation.ConfigurationClassParser.processImports(ConfigurationClassParser.java:606)...
> 13 common frames omitted
>
>
>
> --
> *   ALPER KOPUZ*
> *Software Engineer  *
>
>
> --
> *   ALPER KOPUZ*
> *Software Engineer  *



-- 
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2

R: Fwd: incompatible version of apache.camel with Spring.Boot v

Posted by Andrea Cosentino <an...@yahoo.com.INVALID>.
The minimal camel version compatible con SB 2 is 2.22.0. 2.21 is based on Spring Boot 1.

Inviato da Yahoo Mail su Android 
 
  Il mar, 25 dic, 2018 alle 9:35, Alper Kopuz<al...@gmail.com> ha scritto:   Hello Everyone


Anyone could englighten me which org.apache.*camel* version I should use
with the Spring boot version 2.0.0 .RELEASE.

When I used newer versions of apache.camel such like 2.21.0 , I come across
with RelaxedPropertyResolved error. I read the forums and I was told to
downgrade the version of Spring Boot which I cant. I have to use
sprint.boot.version 2.0.0 with a new apache.camel.version without making
changes at my java code ?

Do you think is it possible?

These are my dependecies for camel.version and spring.boot.version. Please
let me know if you need anything more.

        <dependency>
            <groupId>org.apache.camel</groupId>
            <artifactId>camel-bom</artifactId>
            <version>${camel.version}</version>
            <type>pom</type>
            <scope>import</scope>
            <version>2.21.0
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-parent</artifactId>
            <version>${spring.boot.version}</version>
            <type>pom</type>
            <scope>import</scope>
            <version>2.21.0</version>
        </dependency>

Error :

at com.project.eventrouter.Application.main(Application.java:26)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)
org.springframework.boot.autoconfigure.condition.SpringBootCondition.matches(SpringBootCondition.java:55)
at org.springframework.context.annotation.ConditionEvaluator.shouldSkip(ConditionEvaluator.java:109)
at org.springframework.context.annotation.ConfigurationClassParser.processConfigurationClass(ConfigurationClassParser.java:217)
at org.springframework.context.annotation.ConfigurationClassParser.processImports(ConfigurationClassParser.java:606)...
13 common frames omitted



-- 
*  ALPER KOPUZ*
*Software Engineer  *


-- 
*  ALPER KOPUZ*
*Software Engineer  *