Return-Path: X-Original-To: apmail-camel-users-archive@www.apache.org Delivered-To: apmail-camel-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7F93374F1 for ; Tue, 9 Aug 2011 17:25:23 +0000 (UTC) Received: (qmail 28683 invoked by uid 500); 9 Aug 2011 17:25:23 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 28449 invoked by uid 500); 9 Aug 2011 17:25:22 -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 28441 invoked by uid 99); 9 Aug 2011 17:25:22 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Aug 2011 17:25:22 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of bcanhome@googlemail.com designates 209.85.210.175 as permitted sender) Received: from [209.85.210.175] (HELO mail-iy0-f175.google.com) (209.85.210.175) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Aug 2011 17:25:18 +0000 Received: by iyn15 with SMTP id 15so382232iyn.34 for ; Tue, 09 Aug 2011 10:24:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=BlTLE/SiJTS8dmVa4HA/awCDqBzhLKfBluCk0/sOjJk=; b=eEMSW9cpXRw2u7mMHtxxfFW8Ev4t/riN5Cmt1FLfqPYFhmGrdDwHtqwSeBE4j7LmhQ 57qMvsratvtTXMisD9ofw0/ZYQHJJzDS1XNyoxTbDgvyHdF3CK7bKMSztO3ShjJL7OxP RfHebLEyMu9cDEfH3UNLv/uhLv5feJqvysVxo= MIME-Version: 1.0 Received: by 10.231.111.167 with SMTP id s39mr8468327ibp.65.1312910695973; Tue, 09 Aug 2011 10:24:55 -0700 (PDT) Received: by 10.231.54.17 with HTTP; Tue, 9 Aug 2011 10:24:55 -0700 (PDT) In-Reply-To: References: <4E3B4BFF.3010108@gmail.com> <4E3C1195.5010806@gmail.com> <4E3CA1F1.7050508@gmail.com> <4E40B42F.2090309@gmail.com> Date: Tue, 9 Aug 2011 19:24:55 +0200 Message-ID: Subject: Re: cxf rest service disappears with camel 2.8.0 From: Achim Nierbeck To: users@camel.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 2011/8/9, Mirko Caserta : > Hi Willem, > yes, I'm using the CXF servlet transport. > > Here is my web.xml: http://pastie.org/2343749 > > Thanks, Mirko. > > On Tue, Aug 9, 2011 at 6:14 AM, Willem Jiang wro= te: >> Hi Mirko, >> >> Thanks for reporting this. It is looks like the CXF bus is created >> differently between Camel >> >> When you import classpath:META-INF/cxf/cxf.xml in your application >> context, >> an new CXF bus will be wired with the server factory bean, >> >> BTW, I know you are deploying the application context into a web >> container. >> Which CXF transport are you using ? Are you using CXF servlet transport? >> It >> can be helpful for me to dig the issue. >> >> Willem >> >> On 8/9/11 12:31 AM, Mirko Caserta wrote: >>> >>> Hi Willem, >>> in preparing the test for a new issue I discovered that the problem is >>> not at all camel related. >>> >>> For some reason, cxf is able to expose jaxws services in spring >>> without having to declare: >>> >>> >>> >>> The same is not true for jaxrs services. >>> >>> Because I had removed the above import statement in my spring context >>> file, cxf was not being initialized as I was expecting, despite being >>> able to expose the jaxws services. >>> >>> As to why the rest service was being exposed anyway when no spring >>> import statement was present and camel 2.7.2 was being used, my guess >>> is that something has changed in the initialization of the cxf bus >>> between camel 2.7.2 and 2.8.0. >>> >>> To recap: my solution is to always use the cxf import statement above. >>> >>> Thanks for your support. >>> >>> Mirko >>> >>> On Sat, Aug 6, 2011 at 4:07 AM, Willem Jiang >>> =A0wrote: >>>> >>>> Hi Mirko, >>>> >>>> Just one module is OK, I can switch the Camel version to reproduce the >>>> error. >>>> The test application context could be a camel route with some JAXRS >>>> endpoint >>>> that you said. >>>> >>>> On 8/6/11 12:04 AM, Mirko Caserta wrote: >>>>> >>>>> Okay, I can do that. >>>>> >>>>> I only have to think how to reproduce the problem in a test. I'm >>>>> afraid I'll have to provide a maven project with a couple modules, on= e >>>>> which uses Camel 2.7.2 (that is supposed to work) and a specular one >>>>> with Camel 2.8.0 which is supposed to fail... >>>>> >>>>> Does this sound right to you or can you think of a simpler way to let >>>>> you reproduce the problem? >>>>> >>>>> Thanks, Mirko. >>>>> >>>>> On Fri, Aug 5, 2011 at 5:51 PM, Willem Jiang >>>>> =A0wrote: >>>>>> >>>>>> Hi Mirko, >>>>>> >>>>>> Can you create a simple test case and submit it to the Camel JIRA? >>>>>> It will be helpful to help us locate the issue. >>>>>> >>>>>> On 8/5/11 4:12 PM, Mirko Caserta wrote: >>>>>>> >>>>>>> Hi Willem, >>>>>>> thanks for answering. >>>>>>> >>>>>>> On Fri, Aug 5, 2011 at 3:48 AM, Willem Jiang >>>>>>> =A0wrote: >>>>>>>> >>>>>>>> Camel 2.8.0 is using CXF 2.4.x instead CXF 2.3.x. >>>>>>>> Can you double check it ? >>>>>>> >>>>>>> I'm using CXF 2.4.1 in both cases. The funny thing is, CXF 2.4.1 wi= th >>>>>>> Camel 2.7.2 works fine. It's when I switch Camel to 2.8.0 that the >>>>>>> rest endpoint disappears. >>>>>>> >>>>>>> Just to be clear, the only change between working and not working i= s >>>>>>> modifying the corporate pom =A0 =A0 =A0block = like >>>>>>> this: >>>>>>> >>>>>>> http://pastie.org/2324098 >>>>>>> >>>>>>> and the =A0 =A0 =A0block of my module like this: >>>>>>> >>>>>>> http://pastie.org/2324101 >>>>>>> >>>>>>>> BTW, can you access the jaxrs server successfully when you using >>>>>>>> camel >>>>>>>> 2.8.0? >>>>>>> >>>>>>> Nope. I get a "No service was found." page where i usually get an x= ml >>>>>>> response. >>>>>>> >>>>>>> Any idea where to look further? I really wish to upgrade to 2.8.0 b= ut >>>>>>> this is a show stopper for me :/ >>>>>>> >>>>>>> Thanks anyway. >>>>>>> >>>>>>> Mirko >>>>>>> >>>>>>>> >>>>>>>> On 8/4/11 11:26 PM, Mirko Caserta wrote: >>>>>>>>> >>>>>>>>> Hi there, >>>>>>>>> I have a web app which exposes a cxf rest service via >>>>>>>>> and two soap endpoints with. >>>>>>>>> >>>>>>>>> The problem is, with camel 2.7.2, everything works okay. When I >>>>>>>>> switch >>>>>>>>> to camel 2.8.0, the =A0 =A0 =A0 =A0endpoint disappe= ars and in >>>>>>>>> the >>>>>>>>> cxf >>>>>>>>> servlet index which shows the available services I can only see t= he >>>>>>>>> two soap endpoints listed. >>>>>>>>> >>>>>>>>> I read the release notes for camel 2.8.0 and I am adding >>>>>>>>> camel-cxf-transport to my dependencies. >>>>>>>>> >>>>>>>>> Also, here is a diff of the jars which end up in WEB-INF/lib: >>>>>>>>> >>>>>>>>> http://pastie.org/2320248 >>>>>>>>> >>>>>>>>> Thanks in advance for your attention. >>>>>>>>> >>>>>>>>> Mirko >>>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> -- >>>>>>>> Willem >>>>>>>> ---------------------------------- >>>>>>>> FuseSource >>>>>>>> Web: http://www.fusesource.com >>>>>>>> Blog: =A0 =A0http://willemjiang.blogspot.com (English) >>>>>>>> =A0 =A0 =A0 =A0 http://jnn.javaeye.com (Chinese) >>>>>>>> Twitter: willemjiang >>>>>>>> Weibo: willemjiang >>>>>>>> >>>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> Willem >>>>>> ---------------------------------- >>>>>> FuseSource >>>>>> Web: http://www.fusesource.com >>>>>> Blog: =A0 =A0http://willemjiang.blogspot.com (English) >>>>>> =A0 =A0 =A0 =A0 http://jnn.javaeye.com (Chinese) >>>>>> Twitter: willemjiang >>>>>> Weibo: willemjiang >>>>>> >>>>> >>>> >>>> >>>> -- >>>> Willem >>>> ---------------------------------- >>>> FuseSource >>>> Web: http://www.fusesource.com >>>> Blog: =A0 =A0http://willemjiang.blogspot.com (English) >>>> =A0 =A0 =A0 =A0 http://jnn.javaeye.com (Chinese) >>>> Twitter: willemjiang >>>> Weibo: willemjiang >>>> >>> >> >> >> -- >> Willem >> ---------------------------------- >> FuseSource >> Web: http://www.fusesource.com >> Blog: =A0 =A0http://willemjiang.blogspot.com (English) >> =A0 =A0 =A0 =A0 http://jnn.javaeye.com (Chinese) >> Twitter: willemjiang >> Weibo: willemjiang >> > --=20 -- *Achim Nierbeck* Apache Karaf Committer & PMC OPS4J Pax Web Committer & Project Lead blog