Hi,
The exception and your bundle-context.xml confused me.
The exception comes from cxf transport, generally means you didn't
import cxf http transport xml, but seems you are using smx-http
provider endpoint here, smx-http provider absolutely can't throw such
exception, could please recheck if you post correct bundle-context.xml
here?
Freeman
On 2010-8-12, at 上午1:18, amigo wrote:
Hi,
Thanks that solved problem, but when i try to invoke external web-
service
from servicemix i got another error:
18:56:06,690 | ERROR | tenerContainer-1 |
DefaultErrorHandler |
rg.apache.camel.processor.Logger 248 | Failed delivery for
exchangeId:
ID:gandalf-37758-1281545117313-2:5:1:1:1. Exhausted after delivery
attempt:
1 caught: javax.xml.ws.soap.SOAPFaultException: No conduit initiator
was
found for the namespace http://schemas.xmlsoap.org/soap/http.
javax.xml.ws.soap.SOAPFaultException: No conduit initiator was found
for the
namespace http://schemas.xmlsoap.org/soap/http.
at
org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:
146)
at $Proxy103.translate(Unknown Source)
at com.translator.my.Translator.process(Translator.java:46)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun
.reflect
.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun
.reflect
.DelegatingMethodAccessorImpl
.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at
org
.springframework
.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:
307)
at
org
.springframework
.osgi
.service
.importer
.support.internal.aop.ServiceInvoker.doInvoke(ServiceInvoker.java:58)
at
org
.springframework
.osgi
.service
.importer
.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:62)
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:56)
at
org
.springframework
.osgi
.service
.util
.internal
.aop.ServiceTCCLInterceptor.invoke(ServiceTCCLInterceptor.java:39)
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.Cglib2AopProxy
$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:582)
at
com.translator.my.Translator$$EnhancerByCGLIB$
$b2248c1d.process(<generated>)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun
.reflect
.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun
.reflect
.DelegatingMethodAccessorImpl
.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at
org.apache.camel.component.bean.MethodInfo.invoke(MethodInfo.java:214)
at
org.apache.camel.component.bean.MethodInfo$1.proceed(MethodInfo.java:
133)
at
org
.apache
.camel.component.bean.BeanProcessor.process(BeanProcessor.java:137)
at
org
.apache
.camel
.management
.InstrumentationProcessor.process(InstrumentationProcessor.java:67)
at
org
.apache
.camel
.processor.DelegateProcessor.processNext(DelegateProcessor.java:53)
at
org
.apache
.camel.processor.DelegateProcessor.proceed(DelegateProcessor.java:82)
at
org
.apache
.camel
.processor
.interceptor.TraceInterceptor.process(TraceInterceptor.java:93)
at
org
.apache
.camel
.management
.InstrumentationProcessor.process(InstrumentationProcessor.java:67)
at
org
.apache
.camel
.processor
.RedeliveryErrorHandler.processExchange(RedeliveryErrorHandler.java:
177)
at
org
.apache
.camel
.processor
.RedeliveryErrorHandler
.processErrorHandler(RedeliveryErrorHandler.java:143)
at
org
.apache
.camel
.processor
.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:88)
at
org
.apache
.camel
.processor.DefaultErrorHandler.process(DefaultErrorHandler.java:49)
at
org
.apache.camel.processor.DefaultChannel.process(DefaultChannel.java:
228)
at org.apache.camel.processor.Pipeline.process(Pipeline.java:74)
at
org
.apache
.camel
.processor.UnitOfWorkProcessor.processNext(UnitOfWorkProcessor.java:
66)
at
org
.apache
.camel.processor.DelegateProcessor.process(DelegateProcessor.java:48)
at
org
.apache
.camel
.management
.InstrumentationProcessor.process(InstrumentationProcessor.java:67)
at
org
.apache
.camel
.component
.jms.EndpointMessageListener.onMessage(EndpointMessageListener.java:
84)
at
org
.springframework
.jms
.listener
.AbstractMessageListenerContainer
.doInvokeListener(AbstractMessageListenerContainer.java:543)
at
org
.springframework
.jms
.listener
.AbstractMessageListenerContainer
.invokeListener(AbstractMessageListenerContainer.java:482)
at
org
.springframework
.jms
.listener
.AbstractMessageListenerContainer
.doExecuteListener(AbstractMessageListenerContainer.java:451)
at
org
.springframework
.jms
.listener
.AbstractPollingMessageListenerContainer
.doReceiveAndExecute(AbstractPollingMessageListenerContainer.java:323)
at
org
.springframework
.jms
.listener
.AbstractPollingMessageListenerContainer
.receiveAndExecute(AbstractPollingMessageListenerContainer.java:261)
at
org.springframework.jms.listener.DefaultMessageListenerContainer
$
AsyncMessageListenerInvoker
.invokeListener(DefaultMessageListenerContainer.java:982)
at
org.springframework.jms.listener.DefaultMessageListenerContainer
$
AsyncMessageListenerInvoker
.executeOngoingLoop(DefaultMessageListenerContainer.java:974)
at
org.springframework.jms.listener.DefaultMessageListenerContainer
$
AsyncMessageListenerInvoker.run(DefaultMessageListenerContainer.java:
876)
at java.lang.Thread.run(Thread.java:636)
Caused by: org.apache.cxf.BusException: No conduit initiator was
found for
the namespace http://schemas.xmlsoap.org/soap/http.
at
org
.apache
.cxf
.transport
.ConduitInitiatorManagerImpl
.getConduitInitiator(ConduitInitiatorManagerImpl.java:112)
at
org
.apache
.cxf
.endpoint
.AbstractConduitSelector
.getSelectedConduit(AbstractConduitSelector.java:72)
at
org
.apache
.cxf
.endpoint.UpfrontConduitSelector.prepare(UpfrontConduitSelector.java:
61)
at
org
.apache
.cxf.endpoint.ClientImpl.prepareConduitSelector(ClientImpl.java:743)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:481)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:313)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:265)
at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:
73)
at
org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:
124)
... 54 more
Here's my bundle-context.xml:
<?xml version="1.0" encoding="UTF-8"?>
<beans
xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:http="http://servicemix.apache.org/http/1.0"
xmlns:tns="http://www.service.my.translator.com/Translator/"
xsi:schemaLocation="
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://servicemix.apache.org/http/1.0
http://servicemix.apache.org/http/1.0/servicemix-http.xsd">
<http:endpoint service="test:Translator"
endpoint="TranslatorSOAP" role="provider"
locationURI="http://localhost:9091/Translator"
soap="true"
soapAction=""
wsdlResource="http://localhost:9091/Translator?WSDL" />
<bean class="com.translator.my.Translator" id="translator" />
<bean class="org.apache.servicemix.common.osgi.EndpointExporter" />
</beans>
--
View this message in context:
http://servicemix.396122.n5.nabble.com/Problem-with-http-endpoint-tp2267630p2472246.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
--
Freeman Fang
------------------------
Open Source SOA: http://fusesource.com
Apache Servicemix:http://servicemix.apache.org
Apache Cxf: http://cxf.apache.org
Apache Karaf: http://karaf.apache.org
Apache Felix: http://felix.apache.org