Return-Path: Delivered-To: apmail-camel-users-archive@www.apache.org Received: (qmail 30112 invoked from network); 8 Aug 2010 08:44:06 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 8 Aug 2010 08:44:06 -0000 Received: (qmail 30465 invoked by uid 500); 8 Aug 2010 08:44:06 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 30235 invoked by uid 500); 8 Aug 2010 08:44:04 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 30227 invoked by uid 99); 8 Aug 2010 08:44:03 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 08 Aug 2010 08:44:03 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of imavroukakis@gameaccount.com designates 209.85.216.45 as permitted sender) Received: from [209.85.216.45] (HELO mail-qw0-f45.google.com) (209.85.216.45) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 08 Aug 2010 08:43:57 +0000 Received: by qwi4 with SMTP id 4so1069520qwi.32 for ; Sun, 08 Aug 2010 01:43:36 -0700 (PDT) Received: by 10.229.215.213 with SMTP id hf21mr5921657qcb.141.1281257015125; Sun, 08 Aug 2010 01:43:35 -0700 (PDT) MIME-Version: 1.0 Received: by 10.229.79.195 with HTTP; Sun, 8 Aug 2010 01:43:15 -0700 (PDT) In-Reply-To: References: From: Yiannis Mavroukakis Date: Sun, 8 Aug 2010 09:43:15 +0100 Message-ID: Subject: Re: CXF Producer issues To: users@camel.apache.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Hi Claus, The sweet smell of win :D Thank you. Yiannis On 8 August 2010 08:03, Claus Ibsen wrote: > Hi > > Welcome to the Camel community. > > > > On Sun, Aug 8, 2010 at 12:17 AM, Yiannis Mavroukakis > wrote: >> Hello everyone, >> I'm newly introduced to camel and I'm currently playing around with >> it, with a view of integrating it in our stack. >> I've currently come up against an issue with CXF WS as a producer >> which has left me scratching my head. >> My setup is as follows >> >> 2.4.0 >> 1.2.14 >> 2.2.3 >> >> Using Spring camel-context is >> >> >> > =C2=A0 =C2=A0 =C2=A0 =C2=A0xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema= -instance" >> xmlns:cxf=3D"http://camel.apache.org/schema/cxf" >> =C2=A0 =C2=A0 =C2=A0 =C2=A0xsi:schemaLocation=3D" >> =C2=A0 =C2=A0 =C2=A0 http://www.springframework.org/schema/beans >> http://www.springframework.org/schema/beans/spring-beans-2.5.xsd >> =C2=A0 =C2=A0 =C2=A0 http://camel.apache.org/schema/spring >> http://camel.apache.org/schema/spring/camel-spring.xsd >> =C2=A0 =C2=A0 =C2=A0 http://camel.apache.org/schema/cxf >> http://camel.apache.org/schema/cxf/camel-cxf.xsd"> >> >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 >> >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 >> =C2=A0 =C2=A0 =C2=A0 =C2=A0> address=3D"http://test.xxxx.xx:8084/SeamlessIntegration.asmx" >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0serviceClass=3D"t= est.SeamlessIntegrationSoap" /> >> >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0uri=3D"netty:tcp://127.0.0.1:5155?= disconnect=3Dtrue&textline=3Dtrue&delimiter=3DNULL&encoding=3DU= TF8" >> /> >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 --> >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 >> >> >> >> Two questions arise out of this. >> >> 1) How does the cxf endpoint call get populated? Do i need an >> intermediary Processor bean? >> 2) When I execute mvn camel:run I get the following error >> > > I think you need to use a later version of CXF. Camel 2.4 uses CXF 2.2.9 = afair. > > > >> >> >> [pache.camel.spring.Main.main()] DefaultManagementAgent =C2=A0 =C2=A0 = =C2=A0 =C2=A0 DEBUG >> Registered MBean with objectname: >> org.apache.camel:context=3Dspazstik.local/camelContext,type=3Dservices,n= ame=3DProducerCache(0x1ff52524) >> [pache.camel.spring.Main.main()] CxfEndpoint =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0DEBUG >> Using DefaultBus org.apache.cxf.bus.CXFBusImpl@4b133fd6 >> ************************************* >> Error occurred while running main from: org.apache.camel.spring.Main >> java.lang.reflect.InvocationTargetException >> =C2=A0 =C2=A0 =C2=A0 =C2=A0at sun.reflect.NativeMethodAccessorImpl.invok= e0(Native Method) >> =C2=A0 =C2=A0 =C2=A0 =C2=A0at sun.reflect.NativeMethodAccessorImpl.invok= e(NativeMethodAccessorImpl.java:39) >> =C2=A0 =C2=A0 =C2=A0 =C2=A0at sun.reflect.DelegatingMethodAccessorImpl.i= nvoke(DelegatingMethodAccessorImpl.java:25) >> =C2=A0 =C2=A0 =C2=A0 =C2=A0at java.lang.reflect.Method.invoke(Method.jav= a:597) >> =C2=A0 =C2=A0 =C2=A0 =C2=A0at org.apache.camel.maven.RunMojo$1.run(RunMo= jo.java:415) >> =C2=A0 =C2=A0 =C2=A0 =C2=A0at java.lang.Thread.run(Thread.java:637) >> Caused by: java.lang.NoSuchFieldError: dataBindingSet >> =C2=A0 =C2=A0 =C2=A0 =C2=A0at org.apache.cxf.service.factory.ReflectionS= erviceFactoryBean.reset(ReflectionServiceFactoryBean.java:267) >> =C2=A0 =C2=A0 =C2=A0 =C2=A0at org.apache.cxf.jaxws.support.JaxWsServiceF= actoryBean.reset(JaxWsServiceFactoryBean.java:125) >> >> >> All comments welcome :) >> >> Yiannis >> > > > > -- > Claus Ibsen > Apache Camel Committer > > Author of Camel in Action: http://www.manning.com/ibsen/ > Open Source Integration: http://fusesource.com > Blog: http://davsclaus.blogspot.com/ > Twitter: http://twitter.com/davsclaus >