I am trying to host a simple web service using camel (2.19.0-SNAPSHOT) but I
am getting an error when calling the service:
java.lang.IllegalStateException: !(Jetty || Servlet 3.0 ||
ContinuationFilter)
at
org.eclipse.jetty.continuation.ContinuationSupport.getContinuation(ContinuationSupport.java:108)
at
org.apache.cxf.transport.http_jetty.continuations.JettyContinuationWrapper.<init>(JettyContinuationWrapper.java:46)
at
org.apache.cxf.transport.http_jetty.continuations.JettyContinuationProvider.getContinuation(JettyContinuationProvider.java:64)
at
org.apache.cxf.transport.http_jetty.continuations.JettyContinuationProvider.getContinuation(JettyContinuationProvider.java:52)
at
org.apache.camel.component.cxf.CxfConsumer$CxfConsumerInvoker.getContinuation(CxfConsumer.java:193)
My pom config :
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-cxf</artifactId>
<version>2.19.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-transports-http-jetty</artifactId>
<version>3.1.10</version>
</dependency>
and for the context:
<cxf:cxfEndpoint id="CamelBPMInterface"
address="http://localhost:8000/OQMCamel/CamelBPM/"
wsdlURL="src/main/resources/camelbmpwsdl.wsdl"
endpointName="tns:camelbmpwsdlSOAP"
serviceName="tns:camelbmpwsdl"
xmlns:tns="http://www.someurl.com/camelbmpwsdl/">
<cxf:properties>
<entry key="dataFormat" value="MESSAGE" />
</cxf:properties>
</cxf:cxfEndpoint>
<route>
<from uri="cxf:bean:CamelBPMInterface" />
<to
uri="file://{{webservice.camel.bpm.order.destination}}" />
</route>
I also tried :
<route>
<from
uri="jetty://http://localhost:8000/OQMCamel/CamelBPM?useContinuation=false"
/>
<to uri="cxf:bean:CamelBPMInterface" />
<to
uri="file://{{webservice.camel.bpm.order.destination}}" />
</route>
But that generated another error even before invoking the service:
java.lang.NoClassDefFoundError: org/eclipse/jetty/util/Decorator
at
org.apache.camel.component.jetty.JettyHttpComponent.createServletForConnector(JettyHttpComponent.java:1207)
at
org.apache.camel.component.jetty.JettyHttpComponent.connect(JettyHttpComponent.java:336)
at
org.apache.camel.http.common.HttpCommonEndpoint.connect(HttpCommonEndpoint.java:146)
at
org.apache.camel.http.common.HttpConsumer.doStart(HttpConsumer.java:54)
Thanks.
--
View this message in context:
http://camel.465427.n5.nabble.com/Camel-Web-Service-with-CXF-problem-tp5793902.html
Sent from the Camel - Users mailing list archive at Nabble.com.