camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Willem Jiang <willem.ji...@gmail.com>
Subject Re: Camel-Cxf Payload Mode - DefaultSEI not found
Date Wed, 12 Jun 2013 11:24:53 GMT
You need to specify the wsdlUrl attribute in the cxfEndpoint element.

发自我的 iPhone

在 2013-6-12,下午3:18,lmanchanda75 <lmanchanda75@gmail.com> 写道:

> Hi Experts,
> 
> I am writing a PAYLOAD mode client and for the same I have defined following
> blueprint:
> 
> 
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
>           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>           xmlns:camel="http://camel.apache.org/schema/blueprint"
> 
> xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.0.0"
>           xmlns:jaxws="http://cxf.apache.org/blueprint/jaxws"
>           xmlns:cxf="http://cxf.apache.org/blueprint/core"
>           xmlns:camel-cxf="http://camel.apache.org/schema/blueprint/cxf"
>           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
>             http://cxf.apache.org/blueprint/jaxws
> http://cxf.apache.org/schemas/blueprint/jaxws.xsd
>             http://cxf.apache.org/blueprint/core
> http://cxf.apache.org/schemas/blueprint/core.xsd
>             http://camel.apache.org/schema/blueprint/cxf
> http://camel.apache.org/schema/cxf/camel-cxf-2.10.0-blueprint.xsd
>             ">
> 
>  <bean id="helloBean" class="manchanda.lalit.cxfclient.HelloBean">
>      <property name="say" value="Hi from Camel"/>
>  </bean>
> 
> 
> <bean id="cxfClient" class="manchanda.lalit.cxfclient.TestCxfClient"/>    
> 
> 
> <camel-cxf:cxfEndpoint xmlns:hy="http://bd.prws.ksrtc.com" id="ksrtc"
>                    
> address="http://111.93.131.108:9080/AWATAR_WSRouter/services/ResvAdaptee"
>                        serviceName="hy:ResvAdapteeService">
>                        
> </camel-cxf:cxfEndpoint>    
> 
> 
> 
>  <camelContext trace="false" id="blueprintContext"
> xmlns="http://camel.apache.org/schema/blueprint">
>    <route id="timerToLog">
>        <from uri="timer:foo?period=50000"/>
>          <bean ref="cxfClient" method="dispatchByCamel"/>
>        <log message="The message contains ${body}"/>
>        <to uri="mock:result"/>
>    </route>
> 
>    <route id="ksrtc-request">
>        <from uri="direct:ksrtc"/>
>        <to
> uri="cxf:bean:ksrtc?portName=hy:ResvAdaptee&amp;dataFormat=PAYLOAD&amp;allowStreaming=true"/>
>    </route>
> 
> </camelContext>
> 
> </blueprint>
> 
> 
> 
> 
> But my application does not start and gives the following exception:
> 
> 
> 
> 
> 12:27:13,273 | ERROR | t-0.1.0-thread-1 | BlueprintCamelContext            |
> 138 - org.apache.camel.camel-blueprint - 2.10.0.redhat-60024 | Error
> occurred during starting Camel: CamelContext(blueprintContext) due Failed to
> create Producer for endpoint:
> Endpoint[cxf://bean:ksrtc?allowStreaming=true&dataFormat=PAYLOAD&portName=hy%3AResvAdaptee].
> Reason: java.lang.ClassNotFoundException:
> org.apache.camel.component.cxf.DefaultSEI not found by
> manchanda.lalit.TryCxfClient [595]^M
> org.apache.camel.FailedToCreateProducerException: Failed to create Producer
> for endpoint:
> Endpoint[cxf://bean:ksrtc?allowStreaming=true&dataFormat=PAYLOAD&portName=hy%3AResvAdaptee].
> Reason: java.lang.ClassNotFoundException:
> org.apache.camel.component.cxf.DefaultSEI not found by
> manchanda.lalit.TryCxfClient [595]^M
>        at
> org.apache.camel.impl.ProducerCache.doGetProducer(ProducerCache.java:395)^M
>        at
> org.apache.camel.impl.ProducerCache.acquireProducer(ProducerCache.java:114)^M
>        at
> org.apache.camel.impl.ProducerCache.startProducer(ProducerCache.java:145)^M
>        at
> org.apache.camel.processor.SendProcessor.doStart(SendProcessor.java:175)^M
>        at
> org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:60)^M
>        at
> org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:62)^M
>        at
> org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:52)^M
>        at
> org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:73)^M
>        at
> org.apache.camel.processor.DelegateAsyncProcessor.doStart(DelegateAsyncProcessor.java:78)^M
>        at
> org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:60)^M
>        at
> org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:62)^M
>        at
> org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:52)^M
>        at
> org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:73)^M
>        at
> org.apache.camel.processor.DelegateAsyncProcessor.doStart(DelegateAsyncProcessor.java:78)^M
>        at
> org.apache.camel.processor.interceptor.TraceInterceptor.doStart(TraceInterceptor.java:358)^M
>        at
> org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:60)^M
>        at
> org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:62)^M
>        at
> org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:52)^M
>        at
> org.apache.camel.processor.WrapProcessor.doStart(WrapProcessor.java:52)^M
>        at
> org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:60)^M
>        at
> org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:62)^M
>        at
> org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:52)^M
>        at
> org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:73)^M
>        at
> org.apache.camel.processor.RedeliveryErrorHandler.doStart(RedeliveryErrorHandler.java:1064)^M
>        at
> org.apache.camel.support.ChildServiceSupport.start(ChildServiceSupport.java:41)^M
>        at
> org.apache.camel.support.ChildServiceSupport.start(ChildServiceSupport.java:28)^M
>        at
> org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:62)^M
>        at
> org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:52)^M
>        at
> org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:73)^M
>        at
> org.apache.camel.processor.interceptor.DefaultChannel.doStart(DefaultChannel.java:153)^M
>        at
> org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:60)^M
>        at
> org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:62)^M
>        at
> org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:52)^M
>        at
> org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:73)^M
>        at
> org.apache.camel.processor.DelegateAsyncProcessor.doStart(DelegateAsyncProcessor.java:78)^M
>        at
> org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:60)^M
>        at
> org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:62)^M
>        at
> org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:52)^M
>        at
> org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:73)^M
>        at
> org.apache.camel.processor.DelegateAsyncProcessor.doStart(DelegateAsyncProcessor.java:78)^M
>        at
> org.apache.camel.processor.UnitOfWorkProcessor.doStart(UnitOfWorkProcessor.java:88)^M
>        at
> org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:60)^M
>        at
> org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:62)^M
>        at
> org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:52)^M
>        at
> org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:73)^M
>        at
> org.apache.camel.processor.DelegateAsyncProcessor.doStart(DelegateAsyncProcessor.java:78)^M
>        at
> org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:60)^M
>        at
> org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:62)^M
>        at
> org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:52)^M
>        at
> org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:73)^M
>        at
> org.apache.camel.processor.DelegateAsyncProcessor.doStart(DelegateAsyncProcessor.java:78)^M
>        at
> org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:60)^M
>        at
> org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:62)^M
>        at
> org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:52)^M
>        at
> org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:73)^M
>        at
> org.apache.camel.processor.DelegateAsyncProcessor.doStart(DelegateAsyncProcessor.java:78)^M
>        at
> org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:60)^M
>        at
> org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:62)^M
>        at
> org.apache.camel.impl.RouteService.startChildService(RouteService.java:322)^M
>        at
> org.apache.camel.impl.RouteService.warmUp(RouteService.java:151)^M
>        at
> org.apache.camel.impl.DefaultCamelContext.doWarmUpRoutes(DefaultCamelContext.java:2000)^M
>        at
> org.apache.camel.impl.DefaultCamelContext.safelyStartRouteServices(DefaultCamelContext.java:1928)^M
>        at
> org.apache.camel.impl.DefaultCamelContext.doStartOrResumeRoutes(DefaultCamelContext.java:1716)^M
>        at
> org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:1597)^M
>        at
> org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:1453)^M
>        at
> org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:60)^M
>        at
> org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:1421)^M
>        at
> org.apache.camel.blueprint.BlueprintCamelContext.maybeStart(BlueprintCamelContext.java:161)^M
>        at
> org.apache.camel.blueprint.BlueprintCamelContext.serviceChanged(BlueprintCamelContext.java:128)^M
>        at
> org.apache.felix.framework.util.EventDispatcher.invokeServiceListenerCallback(EventDispatcher.java:934)[org.apache.felix.framework-4.0.3.redhat-60024.jar:]^M
>        at
> org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:795)[org.apache.felix.framework-4.0.3.redhat-60024.jar:]^M
>        at
> org.apache.felix.framework.util.EventDispatcher.fireServiceEvent(EventDispatcher.java:544)[org.apache.felix.framework-4.0.3.redhat-60024.jar:]^M
>        at
> org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:4596)[org.apache.felix.framework-4.0.3.redhat-60024.jar:]^M
>        at
> org.apache.felix.framework.Felix.registerService(Felix.java:3604)[org.apache.felix.framework-4.0.3.redhat-60024.jar:]^M
>        at
> org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:346)^M
>        at
> org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:352)^M
>        at
> org.apache.camel.blueprint.BlueprintCamelContext.init(BlueprintCamelContext.java:87)^M
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)[:1.6.0_43]^M
>        at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)[:1.6.0_43]^M
>        at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)[:1.6.0_43]^M
>        at java.lang.reflect.Method.invoke(Method.java:597)[:1.6.0_43]^M
>        at
> org.apache.aries.blueprint.utils.ReflectionUtils.invoke(ReflectionUtils.java:297)[14:org.apache.aries.blueprint.core:1.0.1.redhat-60024]^M
>        at
> org.apache.aries.blueprint.container.BeanRecipe.invoke(BeanRecipe.java:958)[14:org.apache.aries.blueprint.core:1.0.1.redhat-60024]^M
>        at
> org.apache.aries.blueprint.container.BeanRecipe.runBeanProcInit(BeanRecipe.java:712)[14:org.apache.aries.blueprint.core:1.0.1.redhat-60024]^M
>        at
> org.apache.aries.blueprint.container.BeanRecipe.internalCreate2(BeanRecipe.java:824)[14:org.apache.aries.blueprint.core:1.0.1.redhat-60024]^M
>        at
> org.apache.aries.blueprint.container.BeanRecipe.internalCreate(BeanRecipe.java:787)[14:org.apache.aries.blueprint.core:1.0.1.redhat-60024]^M
>        at
> org.apache.aries.blueprint.di.AbstractRecipe$1.call(AbstractRecipe.java:79)[14:org.apache.aries.blueprint.core:1.0.1.redhat-60024]^M
>        at
> java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)[:1.6.0_43]^M
>        at
> java.util.concurrent.FutureTask.run(FutureTask.java:138)[:1.6.0_43]^M
>        at
> org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:88)[14:org.apache.aries.blueprint.core:1.0.1.redhat-60024]^M
>        at
> org.apache.aries.blueprint.container.BlueprintRepository.createInstances(BlueprintRepository.java:245)[14:org.apache.aries.blueprint.core:1.0.1.redhat-60024]^M
>        at
> org.apache.aries.blueprint.container.BlueprintRepository.createAll(BlueprintRepository.java:183)[14:org.apache.aries.blueprint.core:1.0.1.redhat-60024]^M
>        at
> org.apache.aries.blueprint.container.BlueprintContainerImpl.instantiateEagerComponents(BlueprintContainerImpl.java:667)[14:org.apache.aries.blueprint.core:1.0.1.redhat-60024]^M
>        at
> org.apache.aries.blueprint.container.BlueprintContainerImpl.doRun(BlueprintContainerImpl.java:370)[14:org.apache.aries.blueprint.core:1.0.1.redhat-60024]^M
>        at
> org.apache.aries.blueprint.container.BlueprintContainerImpl.run(BlueprintContainerImpl.java:261)[14:org.apache.aries.blueprint.core:1.0.1.redhat-60024]^M
>        at
> org.apache.aries.blueprint.container.BlueprintExtender.createContainer(BlueprintExtender.java:270)[14:org.apache.aries.blueprint.core:1.0.1.redhat-60024]^M
>        at
> org.apache.aries.blueprint.container.BlueprintExtender.modifiedBundle(BlueprintExtender.java:233)[14:org.apache.aries.blueprint.core:1.0.1.redhat-60024]^M
>        at
> org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.customizerModified(BundleHookBundleTracker.java:500)[13:org.apache.aries.util:1.0.1.redhat-60024]^M
>        at
> org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.customizerModified(BundleHookBundleTracker.java:433)[13:org.apache.aries.util:1.0.1.redhat-60024]^M
>        at
> org.apache.aries.util.tracker.hook.BundleHookBundleTracker$AbstractTracked.track(BundleHookBundleTracker.java:725)[13:org.apache.aries.util:1.0.1.redhat-60024]^M
>        at
> org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.bundleChanged(BundleHookBundleTracker.java:463)[13:org.apache.aries.util:1.0.1.redhat-60024]^M
>        at
> org.apache.aries.util.tracker.hook.BundleHookBundleTracker$BundleEventHook.event(BundleHookBundleTracker.java:422)[13:org.apache.aries.util:1.0.1.redhat-60024]^M
>        at
> org.apache.felix.framework.util.SecureAction.invokeBundleEventHook(SecureAction.java:1103)[org.apache.felix.framework-4.0.3.redhat-60024.jar:]^M
>        at
> org.apache.felix.framework.util.EventDispatcher.createWhitelistFromHooks(EventDispatcher.java:696)[org.apache.felix.framework-4.0.3.redhat-60024.jar:]^M
>        at
> org.apache.felix.framework.util.EventDispatcher.fireBundleEvent(EventDispatcher.java:484)[org.apache.felix.framework-4.0.3.redhat-60024.jar:]^M
>        at
> org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:4580)[org.apache.felix.framework-4.0.3.redhat-60024.jar:]^M
>        at
> org.apache.felix.framework.Felix$4.run(Felix.java:2115)[org.apache.felix.framework-4.0.3.redhat-60024.jar:]^M
>        at
> org.apache.felix.framework.Felix$5.run(Felix.java:2159)[org.apache.felix.framework-4.0.3.redhat-60024.jar:]^M
>        at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)[:1.6.0_43]^M
>        at
> java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)[:1.6.0_43]^M
>        at
> java.util.concurrent.FutureTask.run(FutureTask.java:138)[:1.6.0_43]^M
>        at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)[:1.6.0_43]^M
>  at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)[:1.6.0_43]^M
>        at java.lang.Thread.run(Thread.java:662)[:1.6.0_43]^M
> Caused by: java.lang.ClassNotFoundException:
> org.apache.camel.component.cxf.DefaultSEI not found by
> manchanda.lalit.TryCxfClient [595]^M
>        at
> org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1532)^M
>        at
> org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.java:75)^M
>        at
> org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1955)^M
>        at
> java.lang.ClassLoader.loadClass(ClassLoader.java:247)[:1.6.0_43]^M
>        at
> org.apache.felix.framework.Felix.loadBundleClass(Felix.java:1862)[org.apache.felix.framework-4.0.3.redhat-60024.jar:]^M
>        at
> org.apache.felix.f

Mime
View raw message