camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Angelo <angelo.iacove...@mckesson.com>
Subject CXF and Camel Compatibility - noSuchMethod getBindingOperationInfo()
Date Mon, 19 Nov 2012 14:29:39 GMT
I've been struggling trying to resolve this incompatibility issue so I'm
reaching out here to the community to see if there is something obvious in
my dependency configs that might jump out as the problem.  I'm using CXF
endpoing uri, not bean ref and wsdl-first via provider (config below).  I
tried to provide as much information as I could.

My camel deps are 2.10 
My cxf rt deps are 2.7.0.  

I'm getting the below noSuchMethod exception when retrieving the wsdl.  

*----------------------------------------------------------------------------------------
The provider*

@WebServiceProvider(portName = "ptCreateContract", serviceName =
"CreateContractService", targetNamespace =
"http://mhs.mckesson.com/contracting/contract/ContractServiceV1")
@ServiceMode(Mode.PAYLOAD)
public class ContractProvider implements Provider<StreamSource> {

    public StreamSource invoke(final StreamSource request) {
        throw new UnsupportedOperationException("Not implemented!");
    }
}

*----------------------------------------------------------------------------------------
Using cxf URI not bean ref*

cxf://localhost/webservices/contracting?dataFormat=PAYLOAD&serviceName={http://mhs.mckesson.com/contracting/contract/ContractServiceV1}CreateContractService&endpointName={http://mhs.mckesson.com/contracting/contract/ContractServiceV1}ptCreateContract&serviceClass=com.mckesson.mhs.integration.ws.contracting.ContractProvider&defaultOperationNamespace=http://mhs.mckesson.com/contracting/contract/ContractServiceV1&wsdlURL=classpath:com/mckesson/mhs/contracting/contract/ContractServiceV1.wsdl


*----------------------------------------------------------------------------------------
The camel deps*

<dependency>
   <groupId>org.apache.camel</groupId>
   <artifactId>camel-core</artifactId>
   <version>*2.10.0*</version>
</dependency>
<dependency>
   <groupId>org.apache.camel</groupId>
   <artifactId>camel-servlet</artifactId>
   <version>*2.10.0*</version>
</dependency>
<dependency> 
   <groupId>org.apache.camel</groupId>
   <artifactId>camel-web</artifactId>
   <version>*2.10.0*</version>
   <type>war</type>
   <scope>runtime</scope>
</dependency>
<dependency>
   <groupId>org.apache.camel</groupId>
    <artifactId>camel-spring</artifactId>
    <version>*2.10.0*</version>
</dependency>
<dependency>
    <groupId>org.apache.camel</groupId>
    <artifactId>camel-cxf</artifactId>
    <version>*2.10.0*</version>
</dependency>
<dependency>
    <groupId>org.apache.camel</groupId>
    <artifactId>camel-jetty</artifactId>
    <version>*2.10.0*</version>
</dependency>
<dependency>
    <groupId>org.apache.camel</groupId>
    <artifactId>camel-velocity</artifactId>
    <version>*2.10.0*</version>
</dependency>

*
The cxf runtime deps*

<dependency>
   <groupId>org.apache.cxf</groupId>
   <artifactId>cxf-rt-bindings-soap</artifactId>
   <version>*2.7.0*</version>
</dependency>
<dependency>
   <groupId>org.apache.cxf</groupId>
   <artifactId>cxf-rt-transports-http-jetty</artifactId>
   <version>*2.7.0*</version>
</dependency>
<dependency>
   <groupId>org.apache.cxf</groupId>
   <artifactId>cxf-rt-frontend-jaxws</artifactId>
   <version>*2.7.0*</version>
</dependency>
<dependency>
   <groupId>org.apache.cxf</groupId>
   <artifactId>cxf-rt-ws-policy</artifactId>
   <version>*2.7.0*</version>
</dependency>
<dependency>
  <groupId>org.apache.cxf</groupId>
  <artifactId>cxf-rt-core</artifactId>
  <version>*2.7.0*</version>
</dependency>

*----------------------------------------------------------------------------------------
The cxf servlet config*

<servlet>
   <servlet-name>CXFServlet</servlet-name>
  
<servlet-class>org.apache.cxf.transport.servlet.CXFServlet</servlet-class>
   <load-on-startup>1</load-on-startup>
</servlet>

<servlet-mapping>
   <servlet-name>CXFServlet</servlet-name>
   <url-pattern>/webservices/*</url-pattern>
</servlet-mapping>


*----------------------------------------------------------------------------------------
The exception*

Nov 19, 2012 9:03:13 AM org.apache.cxf.phase.PhaseInterceptorChain
doIntercept
WARNING: Interceptor has thrown exception, unwinding now
org.apache.cxf.interceptor.Fault:
org.apache.cxf.message.Exchange.getBindingOperationInfo()Lorg/apache/cxf/service/model/BindingOperationInfo;
	at
org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:123)
	at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:236)
	at
org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:109)
	at
org.apache.cxf.transport.servlet.ServletDestination.invoke(ServletDestination.java:98)
	at
org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:394)
	at
org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:170)
	at
org.apache.cxf.transport.servlet.AbstractCXFServlet.invoke(AbstractCXFServlet.java:142)
	at
org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:179)
	at
org.apache.cxf.transport.servlet.AbstractHTTPServlet.doGet(AbstractHTTPServlet.java:108)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
	at
org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:159)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
	at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:225)
	at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)
	at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
	at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
	at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
	at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927)
	at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
	at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
	at
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:999)
	at
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:565)
	at
org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:309)
	at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: *java.lang.NoSuchMethodError:
org.apache.cxf.message.Exchange.getBindingOperationInfo()Lorg/apache/cxf/service/model/BindingOperationInfo;*
	at
org.apache.camel.component.cxf.CxfConsumer$1.perpareCamelExchange(CxfConsumer.java:140)
	at
org.apache.camel.component.cxf.CxfConsumer$1.syncInvoke(CxfConsumer.java:117)
	at org.apache.camel.component.cxf.CxfConsumer$1.invoke(CxfConsumer.java:71)
	at
org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:58)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
	at
org.apache.cxf.workqueue.SynchronousExecutor.execute(SynchronousExecutor.java:37)
	at
org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:106)



--
View this message in context: http://camel.465427.n5.nabble.com/CXF-and-Camel-Compatibility-noSuchMethod-getBindingOperationInfo-tp5722954.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message