-
1. Re: No bean could be found in the registry for: beanName - fabric failover not working
davsclaus May 1, 2014 10:23 AM (in response to rvashishth)What version of JBoss Fuse are you using?
-
2. Re: No bean could be found in the registry for: beanName - fabric failover not working
rvashishth May 5, 2014 1:14 AM (in response to davsclaus)2.10.0.redhat-60024
-
3. Re: No bean could be found in the registry for: beanName - fabric failover not working
rvashishth May 15, 2014 10:19 AM (in response to davsclaus)Hi Claus,
I have tried the same in jboss-fuse-6.1-redhat-379. There also i am getting the same exception.
I have followed the following link
I am attaching the src project and steps to regenerate the same exception.
One thing i am curious about i am able to register the endpoint in registry and i can see it there but still started status is showing as false.
Check the image for the same. Here "testClusterID" is the name of cluster.
We recently got the redhat license but the support responses wasn't good enough .
Following are my two camel-route
-----------------------------------------------
Server
--------
<import resource="classpath:META-INF/spring/UserProfileSpringContext.xml" />
<osgi:reference id="curator" interface="org.apache.curator.framework.CuratorFramework"/>
<bean id="fabric-camel" class="io.fabric8.camel.FabricComponent">
<property name="curator" ref="curator"/>
</bean>
<camelContext xmlns="http://camel.apache.org/schema/spring">
<propertyPlaceholder location="config/RestServicesConfig.properties" id="properties"/>
<!-- Defining route -->
<route id="licenceRoute">
<!-- getting request for licence service -->
<from uri="fabric-camel:testClusterID:cxfrs://bean://userProfileService" />
<setBody>
<constant>false</constant>
</setBody>
<!-- transform response type -->
<convertBodyTo type="java.lang.Boolean" />
</route>
</camelContext>
----------------------------
Client-LoadBalancer
------------------------------------------
<osgi:reference id="curator" interface="org.apache.curator.framework.CuratorFramework"/>
<bean id="fabric-camel" class="io.fabric8.camel.FabricComponent">
<property name="curator" ref="curator"/>
</bean>
<camelContext xmlns="http://camel.apache.org/schema/spring">
<!-- Defining route -->
<route id="licenceRoute">
<!-- getting request for licence service -->
<from uri="jetty:http://localhost:8090/userProfile?matchOnUriPrefix=true" />
<camel:convertBodyTo type="java.lang.String"/>
<camel:log message="request body---- ${body}"/>
<to uri="fabric-camel:testClusterID"/>
</route>
</camelContext>
<osgi:reference id="componentResolver" interface="org.apache.camel.spi.ComponentResolver"
filter="(component=cxfrs)"/>
ExceptionTrace:-
Caused by: org.apache.camel.NoSuchBeanException: No bean could be found in the registry for: userProfileService of type: org.apache.cxf.jaxrs.AbstractJAXRSFactoryBean
at org.apache.camel.util.CamelContextHelper.mandatoryLookup(CamelContextHelper.java:151)[107:org.apache.camel.camel-core:2.12.0.redhat-610379]
at org.apache.camel.component.cxf.jaxrs.CxfRsComponent.createEndpoint(CxfRsComponent.java:55)[109:org.apache.camel.camel-cxf:2.12.0.redhat-610379]
at org.apache.camel.impl.DefaultComponent.createEndpoint(DefaultComponent.java:123)[107:org.apache.camel.camel-core:2.12.0.redhat-610379]