I've tested with the wsdl-first-cxf example of servicemix-3.3 and the same
thing happens:
s...@root
:osgi>jbi:file:///C:/apache-servicemix-3.3/examples/cxf-wsdl-first/wsdl-first-cxf-sa-3.3.zip
s...@root:osgi>start X

Exactly the same stack trace appears.

I've then tried the example in a new copy of SMX4 and the error no longer
appears. I don't know how but I must have touched something I shouldn't. If
I'm able to isolate the problem I'll inform, but in the meanwhile please
ignore this.

Thanks for you help.


On Wed, Mar 25, 2009 at 6:43 PM, Sebastian Gomez <[email protected]> wrote:

> Hi Jean-Baptiste,
>
> Here is the consumer [1] and the part of the WSDL it references where the
> namespace is mentioned [2]. I think there's nothing strange in them, but
> maybe I'm wrong. The error is caused because
> the DestinationFactoryManagerImpl doesn't seem to have
> http://schemas.xmlsoap.org/soap/http <http://schemas.xmlsoap.org/soap/http> in
> it's destinationFactories map. Do you know by any chance when and where this
> map is initialized?
>
> [1] <cxfbc:consumer wsdl="classpath:schemas/wsdl/MyService.wsdl"
> targetService="foo:Service"
>  timeout="300000"
> useJBIWrapper="false">
>  <cxfbc:inInterceptors>
> <bean class="org.apache.cxf.interceptor.LoggingInInterceptor" />
>  </cxfbc:inInterceptors>
> <cxfbc:outInterceptors>
> <bean class="org.apache.cxf.interceptor.LoggingOutInterceptor" />
>  </cxfbc:outInterceptors>
> <cxfbc:inFaultInterceptors>
> <bean class="org.apache.cxf.interceptor.LoggingInInterceptor" />
>  </cxfbc:inFaultInterceptors>
> <cxfbc:outFaultInterceptors>
> <bean class="org.apache.cxf.interceptor.LoggingOutInterceptor" />
>  </cxfbc:outFaultInterceptors>
> </cxfbc:consumer>
>
> [2] <wsdl:binding name="MyServiceSOAPBinding" type="tns:MyService">
> <soap:binding style="document" transport="
> http://schemas.xmlsoap.org/soap/http"; />
>  <wsdl:operation name="op1">
>
>
>
> On Wed, Mar 25, 2009 at 6:25 PM, Jean-Baptiste Onofré 
> <[email protected]>wrote:
>
>> Hi Sebastian,
>>
>> could you attach the xbean.xml of your CXF-BC SU ?
>>
>> Thanks
>> Regards
>> JB
>>
>>
>> Sebastian Gomez wrote:
>>
>>> Hi guys.
>>> I'm trying to deploy a JBI service assembly on ServiceMix 4.0.0. The
>>> service
>>> assembly contains a service unit to be deployed on servicemix-cxf-bc, but
>>> when it's being deployed I get the following exception and stack trace
>>> [1].
>>> I think the namespace it's looking for is what it finds in the
>>> "transport"
>>> attribute of the "soap:binding" element in my WSDL. Has someone come
>>> across
>>> the same issue already or am I missing something out?
>>>
>>> Thanks in advance.
>>>
>>> P.S: The service assembly worked OK in SMX 3.2.2, 3.2.3 and 3.3.
>>>
>>> Sebastian Gomez.
>>>
>>> [1] javax.jbi.JBIException: java.lang.Exception: Error deploying SU
>>> my-cxfbc-su
>>>        at
>>> org.apache.servicemix.jbi.deployer.impl.ServiceAssemblyInstaller.install(ServiceAssemblyInstaller.java:101)
>>>        at
>>> org.apache.servicemix.jbi.deployer.impl.Deployer.onBundleStarted(Deployer.java:354)
>>>        at
>>> org.apache.servicemix.jbi.deployer.impl.Deployer.bundleChanged(Deployer.java:284)
>>>        at
>>> org.apache.felix.framework.util.EventDispatcher.invokeBundleListenerCallback(EventDispatcher.java:771)
>>>        at
>>> org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:700)
>>>        at
>>> org.apache.felix.framework.util.EventDispatcher.fireBundleEvent(EventDispatcher.java:597)
>>>        at
>>> org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:3382)
>>>        at org.apache.felix.framework.Felix.startBundle(Felix.java:1517)
>>>        at
>>> org.apache.felix.framework.BundleImpl.start(BundleImpl.java:770)
>>>        at
>>> org.apache.felix.framework.BundleImpl.start(BundleImpl.java:751)
>>>        at
>>> org.apache.servicemix.kernel.gshell.osgi.StartBundle.doExecute(StartBundle.java:24)
>>>        at
>>> org.apache.servicemix.kernel.gshell.osgi.BundleCommand.doExecute(BundleCommand.java:74)
>>>        at
>>> org.apache.servicemix.kernel.gshell.core.OsgiCommandSupport.execute(OsgiCommandSupport.java:48)
>>>        at
>>> org.apache.geronimo.gshell.wisdom.command.CommandSupport.executeAction(CommandSupport.java:303)
>>>        at
>>> org.apache.geronimo.gshell.wisdom.command.StatefulCommand.executeAction(StatefulCommand.java:94)
>>>        at
>>> org.apache.geronimo.gshell.wisdom.command.CommandSupport.execute(CommandSupport.java:194)
>>>        at sun.reflect.GeneratedMethodAccessor129.invoke(Unknown Source)
>>>        at
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>>        at java.lang.reflect.Method.invoke(Method.java:585)
>>>        at
>>> org.springframework.osgi.service.importer.support.internal.aop.ServiceInvoker.doInvoke(ServiceInvoker.java:64)
>>>        at
>>> org.springframework.osgi.service.importer.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:78)
>>>        at
>>> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
>>>        at
>>> org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
>>>        at
>>> org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
>>>        at
>>> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
>>>        at
>>> org.springframework.osgi.service.util.internal.aop.ServiceTCCLInterceptor.invokeUnprivileged(ServiceTCCLInterceptor.java:57)
>>>        at
>>> org.springframework.osgi.service.util.internal.aop.ServiceTCCLInterceptor.invoke(ServiceTCCLInterceptor.java:40)
>>>        at
>>> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
>>>        at
>>> org.springframework.osgi.service.importer.support.LocalBundleContextAdvice.invoke(LocalBundleContextAdvice.java:59)
>>>        at
>>> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
>>>        at
>>> org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
>>>        at
>>> org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
>>>        at
>>> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
>>>        at
>>> org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
>>>        at $Proxy16.execute(Unknown Source)
>>>        at
>>> org.apache.geronimo.gshell.wisdom.shell.CommandLineExecutorImpl.doExecute(CommandLineExecutorImpl.java:127)
>>>        at
>>> org.apache.geronimo.gshell.wisdom.shell.CommandLineExecutorImpl.execute(CommandLineExecutorImpl.java:106)
>>>        at
>>> org.apache.geronimo.gshell.parser.visitor.ExecutingVisitor$1.run(ExecutingVisitor.java:208)
>>>        at
>>> org.apache.geronimo.gshell.parser.visitor.ExecutingVisitor.executePiped(ExecutingVisitor.java:231)
>>>        at
>>> org.apache.geronimo.gshell.parser.visitor.ExecutingVisitor.visit(ExecutingVisitor.java:107)
>>>        at
>>> org.apache.geronimo.gshell.parser.ASTExpression.jjtAccept(ASTExpression.java:17)
>>>        at
>>> org.apache.geronimo.gshell.parser.SimpleNode.childrenAccept(SimpleNode.java:61)
>>>        at
>>> org.apache.geronimo.gshell.parser.visitor.ExecutingVisitor.visit(ExecutingVisitor.java:90)
>>>        at
>>> org.apache.geronimo.gshell.parser.ASTCommandLine.jjtAccept(ASTCommandLine.java:17)
>>>        at
>>> org.apache.geronimo.gshell.wisdom.shell.CommandLineBuilderImpl$1.execute(CommandLineBuilderImpl.java:96)
>>>        at
>>> org.apache.geronimo.gshell.wisdom.shell.CommandLineExecutorImpl.execute(CommandLineExecutorImpl.java:71)
>>>        at
>>> org.apache.geronimo.gshell.wisdom.shell.ShellImpl.execute(ShellImpl.java:172)
>>>        at
>>> org.apache.geronimo.gshell.wisdom.shell.ShellImpl$2.execute(ShellImpl.java:208)
>>>        at
>>> org.apache.geronimo.gshell.console.Console.work(Console.java:187)
>>>        at
>>> org.apache.geronimo.gshell.console.Console.run(Console.java:128)
>>>        at
>>> org.apache.geronimo.gshell.wisdom.shell.ShellImpl.run(ShellImpl.java:252)
>>>        at
>>> org.apache.servicemix.kernel.gshell.core.ShellWrapper.run(ShellWrapper.java:81)
>>>        at
>>> org.apache.servicemix.kernel.gshell.core.LocalConsole.run(LocalConsole.java:125)
>>>        at java.lang.Thread.run(Thread.java:595)
>>> Caused by: java.lang.Exception: Error deploying SU my-cxfbc-su
>>>        at
>>> org.apache.servicemix.jbi.deployer.impl.ServiceAssemblyInstaller.deploySUs(ServiceAssemblyInstaller.java:210)
>>>        at
>>> org.apache.servicemix.jbi.deployer.impl.ServiceAssemblyInstaller.install(ServiceAssemblyInstaller.java:85)
>>>        ... 53 more
>>> Caused by: javax.jbi.management.DeploymentException:
>>> org.apache.cxf.BusException: No DestinationFactory was found for the
>>> namespace http://schemas.xmlsoap.org/soap/http.
>>>        at
>>> org.apache.servicemix.cxfbc.CxfBcConsumer.validate(CxfBcConsumer.java:504)
>>>        at
>>> org.apache.servicemix.common.AbstractDeployer.validate(AbstractDeployer.java:58)
>>>        at
>>> org.apache.servicemix.common.xbean.BaseXBeanDeployer.validate(BaseXBeanDeployer.java:55)
>>>        at
>>> org.apache.servicemix.common.xbean.AbstractXBeanDeployer.deploy(AbstractXBeanDeployer.java:97)
>>>        at
>>> org.apache.servicemix.common.BaseServiceUnitManager.doDeploy(BaseServiceUnitManager.java:88)
>>>        at
>>> org.apache.servicemix.common.BaseServiceUnitManager.deploy(BaseServiceUnitManager.java:69)
>>>        at
>>> org.apache.servicemix.jbi.deployer.artifacts.ServiceUnitImpl.deploy(ServiceUnitImpl.java:100)
>>>        at
>>> org.apache.servicemix.jbi.deployer.impl.ServiceAssemblyInstaller.deploySUs(ServiceAssemblyInstaller.java:204)
>>>        ... 54 more
>>> Caused by: org.apache.cxf.BusException: No DestinationFactory was
>>> found for the namespace http://schemas.xmlsoap.org/soap/http.
>>>        at
>>> org.apache.cxf.transport.DestinationFactoryManagerImpl.getDestinationFactory(DestinationFactoryManagerImpl.java:115)
>>>        at
>>> org.apache.cxf.endpoint.ServerImpl.initDestination(ServerImpl.java:85)
>>>        at org.apache.cxf.endpoint.ServerImpl.<init>(ServerImpl.java:58)
>>>        at
>>> org.apache.servicemix.cxfbc.CxfBcConsumer.validate(CxfBcConsumer.java:498)
>>>        ... 61 more
>>>
>>>
>

Reply via email to