You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Fush <ri...@gmail.com> on 2008/11/13 16:55:27 UTC
Camel CXF endpoint - NoSuchMethodError
Hi!
I have this route. It retrieves a message from an ActiveMQ queue, parses the
message body to a POJO, sets the operation name in the header, and routes
the message to a CXF endpoint.
<camelContext id="MyCamelContext"
xmlns="http://activemq.apache.org/camel/schema/spring">
<route>
<from uri="activemq:queue/my/Queue" />
<unmarshal>
<jaxb prettyPrint="true" contextPath="my.domain.message" />
</unmarshal>
<setHeader headerName="operationName">
<constant>myOperation</constant>
</setHeader>
<to uri="cxf:bean:myWSEndpoint" />
</route>
</camelContext>
<cxf:cxfEndpoint id="myWSEndpoint"
serviceClass="my.domain.service.MyServicePortType"
address="${my.domain.service.url}" />
When running this, I get the following exception:
16:41:50,921 ERROR [STDERR] [ERROR] DeadLetterChannel - Failed delivery for
exchangeId: myID/4986-1226590345000/0-0. On delivery attempt: 0 caught:
java.lang.NoSuchMethodError:
org.apache.cxf.jaxws.context.WrappedMessageContext.<init>(Ljava/util/Map;Lorg/apache/cxf/message/Exchange;Ljavax/xml/ws/handler/MessageContext$Scope;)V<java.lang.NoSuchMethodError:
org.apache.cxf.jaxws.context.WrappedMessageContext.<init>(Ljava/util/Map;Lorg/apache/cxf/message/Exchange;Ljavax/xml/ws/handler/MessageContext$Scope;)V>java.lang.NoSuchMethodError:
org.apache.cxf.jaxws.context.WrappedMessageContext.<init>(Ljava/util/Map;Lorg/apache/cxf/message/Exchange;Ljavax/xml/ws/handler/MessageContext$Scope;)V
Can anyone give me some advice on what might be wrong?
--
View this message in context: http://www.nabble.com/Camel-CXF-endpoint---NoSuchMethodError-tp20481674s22882p20481674.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Camel CXF endpoint - NoSuchMethodError
Posted by Willem Jiang <wi...@gmail.com>.
Oh, this issue is caused by the CXF version is not match with the
camel-cxf[1]. If you are using camel >= 1.5, you need make sure you are
using CXF >= 2.1.3.
[1] https://issues.apache.org/activemq/browse/CAMEL-883
Willem
james.strachan@gmail.com wrote:
> Looks like a classpath issue - using inconsistent jar versions. What
> versions of camel, camel-cxf and cxf jars are you using?
>
>
> On 13/11/2008, Fush <ri...@gmail.com> wrote:
>> Hi!
>> I have this route. It retrieves a message from an ActiveMQ queue, parses the
>> message body to a POJO, sets the operation name in the header, and routes
>> the message to a CXF endpoint.
>>
>> <camelContext id="MyCamelContext"
>> xmlns="http://activemq.apache.org/camel/schema/spring">
>> <route>
>> <from uri="activemq:queue/my/Queue" />
>> <unmarshal>
>> <jaxb prettyPrint="true" contextPath="my.domain.message" />
>> </unmarshal>
>> <setHeader headerName="operationName">
>> <constant>myOperation</constant>
>> </setHeader>
>> <to uri="cxf:bean:myWSEndpoint" />
>> </route>
>> </camelContext>
>>
>> <cxf:cxfEndpoint id="myWSEndpoint"
>> serviceClass="my.domain.service.MyServicePortType"
>> address="${my.domain.service.url}" />
>>
>> When running this, I get the following exception:
>>
>> 16:41:50,921 ERROR [STDERR] [ERROR] DeadLetterChannel - Failed delivery for
>> exchangeId: myID/4986-1226590345000/0-0. On delivery attempt: 0 caught:
>> java.lang.NoSuchMethodError:
>> org.apache.cxf.jaxws.context.WrappedMessageContext.<init>(Ljava/util/Map;Lorg/apache/cxf/message/Exchange;Ljavax/xml/ws/handler/MessageContext$Scope;)V<java.lang.NoSuchMethodError:
>> org.apache.cxf.jaxws.context.WrappedMessageContext.<init>(Ljava/util/Map;Lorg/apache/cxf/message/Exchange;Ljavax/xml/ws/handler/MessageContext$Scope;)V>java.lang.NoSuchMethodError:
>> org.apache.cxf.jaxws.context.WrappedMessageContext.<init>(Ljava/util/Map;Lorg/apache/cxf/message/Exchange;Ljavax/xml/ws/handler/MessageContext$Scope;)V
>>
>> Can anyone give me some advice on what might be wrong?
>> --
>> View this message in context:
>> http://www.nabble.com/Camel-CXF-endpoint---NoSuchMethodError-tp20481674s22882p20481674.html
>> Sent from the Camel - Users mailing list archive at Nabble.com.
>>
>>
>
>
Re: Camel CXF endpoint - NoSuchMethodError
Posted by ja...@gmail.com.
Looks like a classpath issue - using inconsistent jar versions. What
versions of camel, camel-cxf and cxf jars are you using?
On 13/11/2008, Fush <ri...@gmail.com> wrote:
>
> Hi!
> I have this route. It retrieves a message from an ActiveMQ queue, parses the
> message body to a POJO, sets the operation name in the header, and routes
> the message to a CXF endpoint.
>
> <camelContext id="MyCamelContext"
> xmlns="http://activemq.apache.org/camel/schema/spring">
> <route>
> <from uri="activemq:queue/my/Queue" />
> <unmarshal>
> <jaxb prettyPrint="true" contextPath="my.domain.message" />
> </unmarshal>
> <setHeader headerName="operationName">
> <constant>myOperation</constant>
> </setHeader>
> <to uri="cxf:bean:myWSEndpoint" />
> </route>
> </camelContext>
>
> <cxf:cxfEndpoint id="myWSEndpoint"
> serviceClass="my.domain.service.MyServicePortType"
> address="${my.domain.service.url}" />
>
> When running this, I get the following exception:
>
> 16:41:50,921 ERROR [STDERR] [ERROR] DeadLetterChannel - Failed delivery for
> exchangeId: myID/4986-1226590345000/0-0. On delivery attempt: 0 caught:
> java.lang.NoSuchMethodError:
> org.apache.cxf.jaxws.context.WrappedMessageContext.<init>(Ljava/util/Map;Lorg/apache/cxf/message/Exchange;Ljavax/xml/ws/handler/MessageContext$Scope;)V<java.lang.NoSuchMethodError:
> org.apache.cxf.jaxws.context.WrappedMessageContext.<init>(Ljava/util/Map;Lorg/apache/cxf/message/Exchange;Ljavax/xml/ws/handler/MessageContext$Scope;)V>java.lang.NoSuchMethodError:
> org.apache.cxf.jaxws.context.WrappedMessageContext.<init>(Ljava/util/Map;Lorg/apache/cxf/message/Exchange;Ljavax/xml/ws/handler/MessageContext$Scope;)V
>
> Can anyone give me some advice on what might be wrong?
> --
> View this message in context:
> http://www.nabble.com/Camel-CXF-endpoint---NoSuchMethodError-tp20481674s22882p20481674.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
>
--
James
-------
http://macstrac.blogspot.com/
Open Source Integration
http://fusesource.com/