I just you specify the bindingId="service:EchoServiceSOAP11Binding" for the 
echoService.
Maybe you should double check it :)


--  
Willem Jiang

Red Hat, Inc.
FuseSource is now part of Red Hat
Web: http://www.fusesource.com | http://www.redhat.com
Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) 
(English)
          http://jnn.javaeye.com (http://jnn.javaeye.com/) (Chinese)
Twitter: willemjiang  
Weibo: willemjiang





On Saturday, October 13, 2012 at 10:42 PM, Christian Müller wrote:

> Seeking for help from the CXF experts:
>  
> I updated one of my routes which is running fine with Spring-DM to
> blueprint (Aries). Now, when I deploy my route (which leverages on the OSGI
> HTTP service), I got an exception (see the stack trace below) and the route
> doesn't start. I also get this exception, if I use the endpoint address "
> http://localhost:8192/cxf/CBRProxy";.
>  
> Any idea what I'm doing wrong?
>  
> My env:
> Mac OS 10.8.2
> Java 1.6.0_35
> SMX 4.5.0-SNAPSHOT (20121007)
> Camel 2.10.1
> CXF 2.6.2
>  
> My blueprint configuration:
> <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0";
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.0.0";
> xmlns:camel="http://camel.apache.org/schema/blueprint";
> xmlns:camel-cxf="http://camel.apache.org/schema/blueprint/cxf";
> xmlns:cxf="http://cxf.apache.org/blueprint/core";
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
> xmlns:r="http://someuri";
> xsi:schemaLocation="
> http://www.osgi.org/xmlns/blueprint/v1.0.0
> http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd
> http://camel.apache.org/schema/blueprint
> http://camel.apache.org/schema/blueprint/camel-blueprint.xsd";>
>  
> <camel-cxf:cxfEndpoint id="cbrProxy"
> address="/CBRProxy"
> endpointName="service:CBREchoServicePort"
> serviceName="service:CBRProxy"
> wsdlURL="META-INF/wsdl/CBRWSDL-consumer-embedded.wsdl"
> xmlns:service="http://services.samples/xsd";>
>  
> <camel-cxf:properties>
> <entry key="dataFormat" value="MESSAGE" />
> </camel-cxf:properties>
> </camel-cxf:cxfEndpoint>
>  
> <camel-cxf:cxfEndpoint id="echoService"
> address="http://localhost:9000/service/EchoService";
> endpointName="service:CBREchoServicePort"
> serviceName="service:CBREchoService"
> wsdlURL="META-INF/wsdl/CBRWSDL-provider-embedded.wsdl"
> bindingId="service:EchoServiceSOAP11Binding"
> xmlns:service="http://services.samples/xsd";>
>  
> <camel-cxf:properties>
> <entry key="dataFormat" value="MESSAGE" />
> </camel-cxf:properties>
> </camel-cxf:cxfEndpoint>
>  
> <camel:camelContext>
> <camel:route streamCache="true">
> <camel:from uri="cxf:bean:cbrProxy" />
> <camel:filter>
>  
> <camel:xquery>/soapenv:Envelope/soapenv:Body/m:buyStocks/order[1]/symbol='IBM'</camel:xquery>
> <camel:to uri="cxf:bean:echoService" />
> </camel:filter>
> </camel:route>
> </camel:camelContext>
> </blueprint>
>  
> Stacktrace:
> 16:29:38,461 | ERROR | rint Extender: 3 | BlueprintContainerImpl
> | 10 - org.apache.aries.blueprint - 0.3.2 | Unable to start blueprint
> container for bundle cbr
> org.osgi.service.blueprint.container.ComponentDefinitionException: Unable
> to intialize bean camel-4
> at
> org.apache.aries.blueprint.container.BeanRecipe.runBeanProcInit(BeanRecipe.java:640)[10:org.apache.aries.blueprint:0.3.2]
> at
> org.apache.aries.blueprint.container.BeanRecipe.internalCreate(BeanRecipe.java:726)[10:org.apache.aries.blueprint:0.3.2]
> at
> org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:64)[10:org.apache.aries.blueprint:0.3.2]
> at
> org.apache.aries.blueprint.container.BlueprintRepository.createInstances(BlueprintRepository.java:219)[10:org.apache.aries.blueprint:0.3.2]
> at
> org.apache.aries.blueprint.container.BlueprintRepository.createAll(BlueprintRepository.java:147)[10:org.apache.aries.blueprint:0.3.2]
> at
> org.apache.aries.blueprint.container.BlueprintContainerImpl.instantiateEagerComponents(BlueprintContainerImpl.java:631)[10:org.apache.aries.blueprint:0.3.2]
> at
> org.apache.aries.blueprint.container.BlueprintContainerImpl.doRun(BlueprintContainerImpl.java:337)[10:org.apache.aries.blueprint:0.3.2]
> at
> org.apache.aries.blueprint.container.BlueprintContainerImpl.run(BlueprintContainerImpl.java:230)[10:org.apache.aries.blueprint:0.3.2]
> at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)[:1.6.0_35]
> at
> java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)[:1.6.0_35]
> at java.util.concurrent.FutureTask.run(FutureTask.java:138)[:1.6.0_35]
> at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98)[:1.6.0_35]
> at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:206)[:1.6.0_35]
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)[:1.6.0_35]
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)[:1.6.0_35]
> at java.lang.Thread.run(Thread.java:680)[:1.6.0_35]
> Caused by: org.apache.cxf.service.factory.ServiceConstructionException
> at
> org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:176)
> at
> org.apache.camel.component.cxf.CxfConsumer.<init>(CxfConsumer.java:226)
> at
> org.apache.camel.component.cxf.CxfEndpoint.createConsumer(CxfEndpoint.java:202)
> at
> org.apache.camel.impl.EventDrivenConsumerRoute.addServices(EventDrivenConsumerRoute.java:65)
> at
> org.apache.camel.impl.DefaultRoute.onStartingServices(DefaultRoute.java:80)
> at org.apache.camel.impl.RouteService.warmUp(RouteService.java:133)
> at
> org.apache.camel.impl.DefaultCamelContext.doWarmUpRoutes(DefaultCamelContext.java:1971)
> at
> org.apache.camel.impl.DefaultCamelContext.safelyStartRouteServices(DefaultCamelContext.java:1899)
> at
> org.apache.camel.impl.DefaultCamelContext.doStartOrResumeRoutes(DefaultCamelContext.java:1692)
> at
> org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:1580)
> at
> org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:1437)
> at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:60)
> at
> org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:1405)
> at
> org.apache.camel.blueprint.BlueprintCamelContext.maybeStart(BlueprintCamelContext.java:86)
> at
> org.apache.camel.blueprint.BlueprintCamelContext.init(BlueprintCamelContext.java:78)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)[:1.6.0_35]
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)[:1.6.0_35]
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)[:1.6.0_35]
> at java.lang.reflect.Method.invoke(Method.java:597)[:1.6.0_35]
> at
> org.apache.aries.blueprint.utils.ReflectionUtils.invoke(ReflectionUtils.java:225)[10:org.apache.aries.blueprint:0.3.2]
> at
> org.apache.aries.blueprint.container.BeanRecipe.invoke(BeanRecipe.java:838)[10:org.apache.aries.blueprint:0.3.2]
> at
> org.apache.aries.blueprint.container.BeanRecipe.runBeanProcInit(BeanRecipe.java:638)[10:org.apache.aries.blueprint:0.3.2]
> ... 15 more
> Caused by: org.apache.cxf.BusException: NO_BINDING_FACTORY_EXC
> at
> org.apache.cxf.bus.managers.BindingFactoryManagerImpl.getBindingFactory(BindingFactoryManagerImpl.java:123)
> at
> org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:115)
> at
> org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:159)
> ... 36 more
>  
>  
> Best,
> Christian
>  
> --  


Reply via email to