Looks like you are using Spring DM (not Aries Blueprint) for dependency injection so you'll need to add in CXF import elements like the ones shown here: http://camelinaction.googlecode.com/svn/trunk/chapter7/cxf/code_first/src/main/resources/META-INF/spring/camel-cxf.xml
Cheers, Jon On Wed, Nov 16, 2011 at 8:21 AM, yadavi <[email protected]> wrote: > Hi, > > Greetings!! Here i am deploying jar into servicemix.Trying to pickup wsdl > from cxf:endpoint and trying to get the soap request into the outbox. > > *####This is my camel-context file:* > <beans xmlns="http://www.springframework.org/schema/beans" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xmlns:camel="http://camel.apache.org/schema/spring" > xmlns:osgi="http://www.springframework.org/schema/osgi" > xmlns:cxf="http://camel.apache.org/schema/cxf" > xsi:schemaLocation=" > http://www.springframework.org/schema/beans > > http://www.springframework.org/schema/beans/spring-beans-2.5.xsd > http://www.springframework.org/schema/osgi > http://www.springframework.org/schema/osgi/spring-osgi.xsd > http://camel.apache.org/schema/osgi > http://camel.apache.org/schema/osgi/camel-osgi.xsd > http://camel.apache.org/schema/spring > http://camel.apache.org/schema/spring/camel-spring.xsd > http://camel.apache.org/schema/cxf > http://camel.apache.org/schema/cxf/camel-cxf.xsd"> > > > <cxf:cxfEndpoint id="pleaseRoute" > > address="http://localhost:8080/3.34/services/CustomerIncidentServiceSoap?" > serviceClass="com.camel.StockEndPointService"> > </cxf:cxfEndpoint> > > <bean id="myroutebuilder" class="com.camel.StockRouteBuilder"/> > > <camel:camelContext xmlns="http://camel.apache.org/schema/spring"> > <camel:routeBuilder ref="myroutebuilder"/> > </camel:camelContext> > > </bean > > > <b>And here is my StockRouteBuilder class:* > public class StockRouteBuilder extends RouteBuilder{ > > @Override > public void configure() throws Exception { > System.out.println("Inside Configure"); > from("cxf:bean:pleaseRoute") > .convertBodyTo(StockBean.class) > .setHeader(Exchange.FILE_NAME, > constant("request-${date:now:yyyy-MM-dd-HHmmssSSS}")) > .wireTap("file://target/inbox/") > .to("file://outbox/"); > } > } > > > And this is the error i am getting. I am using fuse 4.4.1 and camel 2.8.1 > > org.apache.camel.RuntimeCamelException: > org.apache.cxf.service.factory.ServiceConstructionException: Could not > resolve a binding for null > at > > org.apache.camel.util.ObjectHelper.wrapRuntimeCamelException(ObjectHelper.java:1149)[83:org.apache.camel.camel-core:2.8.0.fuse-00-08] > at > > org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:108)[89:org.apache.camel.camel-spring:2.8.0.fuse-00-08] > at > > org.apache.camel.spring.CamelContextFactoryBean.onApplicationEvent(CamelContextFactoryBean.java:240)[89:org.apache.camel.camel-spring:2.8.0.fuse-00-08] > at > > org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:97)[69:org.springframework.context:3.0.5.RELEASE] > at > > org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:303)[69:org.springframework.context:3.0.5.RELEASE] > at > > org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:911)[69:org.springframework.context:3.0.5.RELEASE] > at > > org.springframework.osgi.context.support.AbstractOsgiBundleApplicationContext.finishRefresh(AbstractOsgiBundleApplicationContext.java:235)[75:org.springframework.osgi.core:1.2.1] > at > > org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:358)[75:org.springframework.osgi.core:1.2.1] > at > > org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)[75:org.springframework.osgi.core:1.2.1] > at > > org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:320)[75:org.springframework.osgi.core:1.2.1] > at > > org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:132)[78:org.springframework.osgi.extender:1.2.1] > at java.lang.Thread.run(Thread.java:662)[:1.6.0_24] > Caused by: org.apache.cxf.service.factory.ServiceConstructionException: > Could not resolve a binding for null > at > > org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createBindingInfo(AbstractWSDLBasedEndpointFactory.java:350)[399:org.apache.cxf.bundle:2.4.2.fuse-00-08] > at > > org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpointInfo(AbstractWSDLBasedEndpointFactory.java:252)[399:org.apache.cxf.bundle:2.4.2.fuse-00-08] > at > > org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:147)[399:org.apache.cxf.bundle:2.4.2.fuse-00-08] > at > > org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:157)[399:org.apache.cxf.bundle:2.4.2.fuse-00-08] > at > > org.apache.camel.component.cxf.CxfConsumer.<init>(CxfConsumer.java:226)[413:org.apache.camel.camel-cxf:2.8.0.fuse-00-08] > at > > org.apache.camel.component.cxf.CxfEndpoint.createConsumer(CxfEndpoint.java:174)[413:org.apache.camel.camel-cxf:2.8.0.fuse-00-08] > at > > org.apache.camel.impl.EventDrivenConsumerRoute.addServices(EventDrivenConsumerRoute.java:61)[83:org.apache.camel.camel-core:2.8.0.fuse-00-08] > at > > org.apache.camel.impl.DefaultRoute.onStartingServices(DefaultRoute.java:75)[83:org.apache.camel.camel-core:2.8.0.fuse-00-08] > at > > org.apache.camel.impl.RouteService.warmUp(RouteService.java:124)[83:org.apache.camel.camel-core:2.8.0.fuse-00-08] > at > > org.apache.camel.impl.DefaultCamelContext.doWarmUpRoutes(DefaultCamelContext.java:1852)[83:org.apache.camel.camel-core:2.8.0.fuse-00-08] > at > > org.apache.camel.impl.DefaultCamelContext.safelyStartRouteServices(DefaultCamelContext.java:1780)[83:org.apache.camel.camel-core:2.8.0.fuse-00-08] > at > > org.apache.camel.impl.DefaultCamelContext.doStartOrResumeRoutes(DefaultCamelContext.java:1565)[83:org.apache.camel.camel-core:2.8.0.fuse-00-08] > at > > org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:1455)[83:org.apache.camel.camel-core:2.8.0.fuse-00-08] > at > > org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:1339)[83:org.apache.camel.camel-core:2.8.0.fuse-00-08] > at > > org.apache.camel.spring.SpringCamelContext.doStart(SpringCamelContext.java:167)[89:org.apache.camel.camel-spring:2.8.0.fuse-00-08] > at > > org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:67)[83:org.apache.camel.camel-core:2.8.0.fuse-00-08] > at > > org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:54)[83:org.apache.camel.camel-core:2.8.0.fuse-00-08] > at > > org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:1317)[83:org.apache.camel.camel-core:2.8.0.fuse-00-08] > at > > org.apache.camel.spring.SpringCamelContext.maybeStart(SpringCamelContext.java:211)[89:org.apache.camel.camel-spring:2.8.0.fuse-00-08] > at > > org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:106)[89:org.apache.camel.camel-spring:2.8.0.fuse-00-08] > ... 10 more > Caused by: org.apache.cxf.BusException: No binding factory for namespace > http://schemas.xmlsoap.org/soap/ registered. > at > > org.apache.cxf.binding.BindingFactoryManagerImpl.getBindingFactory(BindingFactoryManagerImpl.java:120)[399:org.apache.cxf.bundle:2.4.2.fuse-00-08] > at > > org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createBindingInfo(AbstractWSDLBasedEndpointFactory.java:338)[399:org.apache.cxf.bundle:2.4.2.fuse-00-08] > ... 29 more > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Could-not-resolve-a-binding-for-null-tp4997469p4997469.html > Sent from the Camel - Users mailing list archive at Nabble.com. > -- Cheers, Jon --------------- FuseSource Email: [email protected] Web: fusesource.com Twitter: jon_anstey Blog: http://janstey.blogspot.com Author of Camel in Action: http://manning.com/ibsen
