[
https://issues.apache.org/jira/browse/CAMEL-6920?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13818416#comment-13818416
]
Claus Ibsen commented on CAMEL-6920:
------------------------------------
And from Camel 2.11 onwards the Camel components enlist in their MANIFEST.MF
entries the components as services this bundle exports
Export-Service: org.apache.aries.blueprint.NamespaceHandler;osgi.service
.blueprint.namespace="http://camel.apache.org/schema/blueprint/cxf",org
.apache.camel.spi.ComponentResolver;component=cxfrs,org.apache.camel.sp
i.ComponentResolver;component=cxf,org.apache.camel.spi.ComponentResolve
r;component=cxfbean
This should also help with this Karaf/SMX to resolve this better.
SMX 4.6 is being upgraded to use Camel 2.12 and thus have this out of the box.
> Component Resolution for CXFBean Triggers a Race Condition
> ----------------------------------------------------------
>
> Key: CAMEL-6920
> URL: https://issues.apache.org/jira/browse/CAMEL-6920
> Project: Camel
> Issue Type: Bug
> Components: camel-cxf
> Affects Versions: 2.10.7
> Environment: Apache ServiceMix 4.5.3
> Linux centora 2.6.18-308.8.2.el5 #1 SMP Tue Jun 12 09:57:26 EDT 2012 i686
> i686 i386 GNU/Linux
> Reporter: Zach Calvert
> Attachments: cxf-cxfbean-broken.zip
>
>
> Making use of the cxfbean camel component triggers a race condition in
> ServiceMix startup.
> Logs received:
> {code}
> Caused by: org.apache.camel.ResolveEndpointFailedException: Failed to resolve
> endpoint: cxfbean://failureProof due to: No component found with scheme:
> cxfbean
> at
> org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:495)[101:org.apache.camel.camel-core:2.10.7]
> at
> org.apache.camel.util.CamelContextHelper.getMandatoryEndpoint(CamelContextHelper.java:50)[101:org.apache.camel.camel-core:2.10.7]
> at
> org.apache.camel.model.RouteDefinition.resolveEndpoint(RouteDefinition.java:187)[101:org.apache.camel.camel-core:2.10.7]
> at
> org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:108)[101:org.apache.camel.camel-core:2.10.7]
> at
> org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:114)[101:org.apache.camel.camel-core:2.10.7]
> at
> org.apache.camel.model.SendDefinition.resolveEndpoint(SendDefinition.java:61)[101:org.apache.camel.camel-core:2.10.7]
> at
> org.apache.camel.model.SendDefinition.createProcessor(SendDefinition.java:55)[101:org.apache.camel.camel-core:2.10.7]
> at
> org.apache.camel.model.ProcessorDefinition.makeProcessor(ProcessorDefinition.java:461)[101:org.apache.camel.camel-core:2.10.7]
> at
> org.apache.camel.model.ProcessorDefinition.addRoutes(ProcessorDefinition.java:179)[101:org.apache.camel.camel-core:2.10.7]
> at
> org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:876)[101:org.apache.camel.camel-core:2.10.7]
> ... 20 more
> {code}
> Will attach example code to trigger error and steps to reproduce in Apache
> ServiceMix 4.5.3.
--
This message was sent by Atlassian JIRA
(v6.1#6144)