ESB 4.2.0 - No component found with scheme: cxf error
concombremasqué Mar 8, 2010 4:50 AMHi,
In spite of the release note and the ESB-1099 that should be fixed, I can reproduce the "No component found with scheme: cxf" error.
My environment: JDK 1.6 Update 18
I am using FUSE ESB 4.2.0 with following features: featuresBoot=activemq,activemq-broker,camel,camel-osgi,camel-cxf,camel-jms,web,cxf,cxf-osgi,transaction
1- Start a fresh new ESB instance.
2- install "jpa-hibernate" feature
3- try to install a bundle making use of the Camel CXF component (in a route: "cxf:bean:...")
Then I got the following exception:
****************************************
org.apache.camel.RuntimeCamelException: org.apache.camel.FailedToCreateRouteException: Failed to create route route1: Route[[From[cxf:bean:integrationSystem_ApplicationEndpoint?d... because of Failed to resolve endpoint: cxf://bean:integrationSystem_ApplicationEndpoint?dataFormat=POJO due to: No component found with scheme: cxf
at org.apache.camel.util.ObjectHelper.wrapRuntimeCamelException(ObjectHelper.java:1055)
at org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:103)
at org.apache.camel.spring.CamelContextFactoryBean.onApplicationEvent(CamelContextFactoryBean.java:593)
at org.springframework.context.event.SimpleApplicationEventMulticaster$1.run(SimpleApplicationEventMulticaster.java:78)
at org.springframework.core.task.SyncTaskExecutor.execute(SyncTaskExecutor.java:49)
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:76)
at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:274)
at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:736)
at org.springframework.osgi.context.support.AbstractOsgiBundleApplicationContext.finishRefresh(AbstractOsgiBundleApplicationContext.java:235)
at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:358)
at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)
at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:320)
at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:136)
at java.lang.Thread.run(Thread.java:619)
Caused by: org.apache.camel.FailedToCreateRouteException: Failed to create route route1: Route[[From[cxf:bean:integrationSystem_ApplicationEndpoint?d... because of Failed to resolve endpoint: cxf://bean:integrationSystem_ApplicationEndpoint?dataFormat=POJO due to: No component found with scheme: cxf
at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:145)
at org.apache.camel.impl.DefaultCamelContext.startRoute(DefaultCamelContext.java:610)
at org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:1180)
at org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:1090)
at org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:1020)
at org.apache.camel.spring.SpringCamelContext.doStart(SpringCamelContext.java:158)
at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:53)
at org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:898)
at org.apache.camel.spring.SpringCamelContext.maybeStart(SpringCamelContext.java:197)
at org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:101)
... 12 more
Caused by: org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint: cxf://bean:integrationSystem_ApplicationEndpoint?dataFormat=POJO due to: No component found with scheme: cxf
at org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:453)
at org.apache.camel.util.CamelContextHelper.getMandatoryEndpoint(CamelContextHelper.java:46)
at org.apache.camel.model.RouteDefinition.resolveEndpoint(RouteDefinition.java:158)
at org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:113)
at org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:119)
at org.apache.camel.model.FromDefinition.resolveEndpoint(FromDefinition.java:72)
at org.apache.camel.impl.DefaultRouteContext.getEndpoint(DefaultRouteContext.java:88)
at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:680)
at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:140)
... 21 more
***************************************
Two important things to consider:
1) if I don't install "jpa-hibernate" feature then the bundle is correctly installed and the Camel route available.
2) if I use the original featuresBoot list it also works: it seems one or several features may have some sort of influence
Regards,
CM
Update 03/08: in fact it seems hibernate feature has nothing to do with the issue. I also got the same exception by installing a bundle that uses camel-cxf (just stop/restart servicemix several times and I always got the exception).
Edited by: concombre masqué on Mar 8, 2010 9:48 AM