[ 
https://issues.apache.org/jira/browse/CAMEL-11963?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Claus Ibsen resolved CAMEL-11963.
---------------------------------
    Resolution: Fixed

> camel-spring-boot - Actuator endpoints for MVC should only trigger if web 
> application
> -------------------------------------------------------------------------------------
>
>                 Key: CAMEL-11963
>                 URL: https://issues.apache.org/jira/browse/CAMEL-11963
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-spring-boot
>    Affects Versions: 2.20.0
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 2.20.1, 2.21.0
>
>
> You can get errors like
> {code}
> org.springframework.beans.factory.BeanCreationException: Error creating bean 
> with name 'healthChecksMvcEndpoint' defined in class path resource 
> [org/apache/camel/spring/boot/actuate/endpoint/CamelHealthCheckEndpointAutoConfiguration.class]:
>  Post-processing of merged bean definition failed; nested exception is 
> java.lang.NoClassDefFoundError: org/springframework/http/ResponseEntity
>       at 
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:526)
>  ~[spring-beans-4.3.11.RELEASE.jar!/:4.3.11.RELEASE]
>       at 
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483)
>  ~[spring-beans-4.3.11.RELEASE.jar!/:4.3.11.RELEASE]
>       at 
> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
>  ~[spring-beans-4.3.11.RELEASE.jar!/:4.3.11.RELEASE]
>       at 
> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
>  ~[spring-beans-4.3.11.RELEASE.jar!/:4.3.11.RELEASE]
>       at 
> org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
>  ~[spring-beans-4.3.11.RELEASE.jar!/:4.3.11.RELEASE]
>       at 
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
>  ~[spring-beans-4.3.11.RELEASE.jar!/:4.3.11.RELEASE]
>       at 
> org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:761)
>  ~[spring-beans-4.3.11.RELEASE.jar!/:4.3.11.RELEASE]
>       at 
> org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:867)
>  ~[spring-context-4.3.11.RELEASE.jar!/:4.3.11.RELEASE]
>       at 
> org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:543)
>  ~[spring-context-4.3.11.RELEASE.jar!/:4.3.11.RELEASE]
>       at 
> org.springframework.boot.SpringApplication.refresh(SpringApplication.java:693)
>  [spring-boot-1.5.7.RELEASE.jar!/:1.5.7.RELEASE]
>       at 
> org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:360)
>  [spring-boot-1.5.7.RELEASE.jar!/:1.5.7.RELEASE]
>       at 
> org.springframework.boot.SpringApplication.run(SpringApplication.java:303) 
> [spring-boot-1.5.7.RELEASE.jar!/:1.5.7.RELEASE]
>       at 
> org.springframework.boot.SpringApplication.run(SpringApplication.java:1118) 
> [spring-boot-1.5.7.RELEASE.jar!/:1.5.7.RELEASE]
>       at 
> org.springframework.boot.SpringApplication.run(SpringApplication.java:1107) 
> [spring-boot-1.5.7.RELEASE.jar!/:1.5.7.RELEASE]
>       at com.camelinaction.ClientApplication.main(ClientApplication.java:10) 
> [classes!/:na]
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to