[
https://issues.apache.org/jira/browse/CAMEL-17545?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17482512#comment-17482512
]
Freeman Yue Fang commented on CAMEL-17545:
------------------------------------------
Thanks [~Federico Mariani], that's it!
The version from spring-boot is managed to use, we may not be able to upgrade
elasticsearch version in camel due to the [license
restriction|https://www.elastic.co/pricing/faq/licensing]. I think we can
explicitly add elasticsearch dependency in camel-elasticsearch-rest-starter so
we can ensure the expected elasticsearch version is used.
Freeman
> camel elasticsearch rest on spring boot - class not found error
> ---------------------------------------------------------------
>
> Key: CAMEL-17545
> URL: https://issues.apache.org/jira/browse/CAMEL-17545
> Project: Camel
> Issue Type: Bug
> Components: camel-elasticsearch-rest, camel-spring-boot
> Affects Versions: 3.14.0
> Reporter: Federico Mariani
> Assignee: Freeman Yue Fang
> Priority: Minor
>
> When using {*}spring-boot-dependencies:2.6.1{*},
> _camel-spring-boot-dependencies:3.14.0_ and the dependency
> _camel-elasticsearch-rest-starter_ I got the following error
> _Caused by: java.lang.ClassNotFoundException:
> org.elasticsearch.common.CheckedConsumer_
> I think that camel and spring boot use different elasticsearch versions,
> moreover if I use *spring-boot-dependencies:2.5.9* the component works as
> expected.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)