[
https://issues.apache.org/jira/browse/CAMEL-16954?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17417223#comment-17417223
]
Karen Lease edited comment on CAMEL-16954 at 9/18/21, 9:53 PM:
---------------------------------------------------------------
[~davsclaus] I did have a look at it. If I upgrade the pom versions of the
springframework cloud artifacts to 3.0.x then there are compile errors in some
of the camel spring-boot cloud classes because they reference some classes like
ConsulServer & ZookeeperServer which are no longer present in the Spring jars.
In fact, the 3.0.x versions of Spring cloud removed dependencies on several
spring-cloud-netflix components such as Ribbon and related classes.
I'm not familiar with those components to decide if the related camel classes,
for example
org.apache.camel.spring.cloud.zookeeper.ZookeeperServerToServiceDefinition are
no longer necessary or if it should be replaced by something else.
Unfortunately none of the current camel-spring-boot-examples actually use the
camel spring cloud components so I don't have a more realistic use case to play
with.
Since the Camel Spring Boot Cloud modules are all marked as deprecated, is it
intended that they should be removed completely at some point?
was (Author: klease78):
[~davsclaus] I did have a look at it. If I upgrade the pom versions of the
springframework cloud artifacts to 3.0.x then there are compile errors in some
of the camel spring-boot cloud classes because they reference some classes like
ConsulServer & ZookeeperServer which are no longer present in the Spring jars.
In fact, the 3.0.x versions of Spring cloud removed dependencies on several
spring-cloud-netflix components such as Ribbon and related classes.
I'm not familiar with those components to decide if the related camel classes,
for example
org.apache.camel.spring.cloud.zookeeper.ZookeeperServerToServiceDefinition are
no longer necessary or if it should be replaced by something else.
Unfortunately none of the current camel-spring-boot-examples actually use the
camel spring cloud components so I don't have a more realistic use case to play
with.
> Some camel-spring-cloud tests fail with ClassNotFoundException
> --------------------------------------------------------------
>
> Key: CAMEL-16954
> URL: https://issues.apache.org/jira/browse/CAMEL-16954
> Project: Camel
> Issue Type: Test
> Components: camel-spring-cloud, tests
> Affects Versions: 3.12.0
> Environment: Occurs in both junit4 and junit5.
> Reporter: Karen Lease
> Assignee: Karen Lease
> Priority: Major
> Fix For: 3.12.0
>
>
> The test
> org.apache.camel.spring.cloud.CamelSpringCloudServiceCallRibbonTest.testServiceCall()
> fails to load the application context:
> {code:java}
> Caused by: org.springframework.beans.factory.BeanCreationException: Error
> creating bean with name 'configurationPropertiesBeans' defined in class path
> resource
> [org/springframework/cloud/autoconfigure/ConfigurationPropertiesRebinderAutoConfiguration.class]:
> Post-processing of merged bean definition failed; nested exception is
> java.lang.IllegalStateException: Failed to introspect Class
> [org.springframework.cloud.context.properties.ConfigurationPropertiesBeans]
> ...
> Caused by: java.lang.ClassNotFoundException:
> org.springframework.boot.context.properties.ConfigurationBeanFactoryMetadata
> {code}
> Some other tests using spring-cloud and spring-boot also fail with this
> exception.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)