Return-Path: X-Original-To: apmail-cxf-dev-archive@www.apache.org Delivered-To: apmail-cxf-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D6E64188A6 for ; Fri, 14 Aug 2015 15:19:28 +0000 (UTC) Received: (qmail 50527 invoked by uid 500); 14 Aug 2015 15:19:28 -0000 Delivered-To: apmail-cxf-dev-archive@cxf.apache.org Received: (qmail 50456 invoked by uid 500); 14 Aug 2015 15:19:28 -0000 Mailing-List: contact dev-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list dev@cxf.apache.org Received: (qmail 50444 invoked by uid 99); 14 Aug 2015 15:19:28 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Aug 2015 15:19:28 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id DD7A01AA159 for ; Fri, 14 Aug 2015 15:19:27 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.024 X-Spam-Level: ** X-Spam-Status: No, score=2.024 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, KAM_ASCII_DIVIDERS=0.8, T_FILL_THIS_FORM_SHORT=0.01, URIBL_BLOCKED=0.001, URI_HEX=1.313] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id iwhWt6ONA3R0 for ; Fri, 14 Aug 2015 15:19:13 +0000 (UTC) Received: from mail-wi0-f182.google.com (mail-wi0-f182.google.com [209.85.212.182]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTPS id 45B182055B for ; Fri, 14 Aug 2015 15:19:13 +0000 (UTC) Received: by wicja10 with SMTP id ja10so21313483wic.1 for ; Fri, 14 Aug 2015 08:19:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=ro401IbV62a15VnyAQ7UKTKp4SVvAqxst3lduc7hZRY=; b=vLAOIij/99UaM3YKmGCy1klKDrzdmKMHTlh0hDNioHHfBObMFqJ+yFvVDDVsloPiHU i5GFSgmDE0a71RaZDgcrSSRguGdgPoOp5M0fIw/9ZPMIuNKC+twLT3yyRv6Dvu3tHEu1 qWS2msvYzKck2QAx2sCoJra8MByH4Bg9WTCp0+KjZ5ZKWX0jV5fbSc8sT0cp5eworMNc 4jM5RFmO7zpt46sBPa2x8UG/XUYUncIdpSQcoMCN7lpy/wwRGJXhj91gh68udQi9y5R7 qysjZGFo76u7aRWHBdwHDOtzAmVnVkXS+rRcC8i89N1ivFGl2sACQKVYB1my0w0R7nmr ip3A== X-Received: by 10.180.8.68 with SMTP id p4mr7993833wia.27.1439565552012; Fri, 14 Aug 2015 08:19:12 -0700 (PDT) Received: from [10.36.226.10] ([80.169.137.63]) by smtp.googlemail.com with ESMTPSA id fb3sm3525770wib.21.2015.08.14.08.19.10 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 14 Aug 2015 08:19:10 -0700 (PDT) Message-ID: <55CE06EE.5010506@gmail.com> Date: Fri, 14 Aug 2015 16:19:10 +0100 From: Sergey Beryozkin User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.8.0 MIME-Version: 1.0 To: dev@cxf.apache.org Subject: Re: CXF + Karaf 4: how to access the CXFNonSpringServlet References: <55CCF324.9030109@gnubila.fr> <55CD8351.1000806@die-schneider.net> <1439543410489-5760090.post@n5.nabble.com> <1439543703568-5760091.post@n5.nabble.com> <1439544705888-5760092.post@n5.nabble.com> <55CDCE17.9060208@gmail.com> <55CDD3A8.4020108@gnubila.fr> <55CDD5BE.1020507@gmail.com> <55CDDDF9.8010600@gnubila.fr> <55CDDF97.409@gmail.com> <55CDF8B9.5000500@gnubila.fr> In-Reply-To: <55CDF8B9.5000500@gnubila.fr> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit I can see a default constructor is called by Jetty or Netty destinations, may be you need to remove http-jetty bundle... Cheers, Sergey On 14/08/15 15:18, J�r�me Revillard wrote: > Ok, just a quick follow up on my tests. > > My problem comes from the fact the something else is instantiating a new > HTTPTransportFactory but calling the default constructor which therefore > create a new DestinationRegistryImpl. This later is then filled with the > endpoints instead of the one that I instantiated. I still don't know who > instantiat it and why. > > Best, > Jerome > > Le 14/08/2015 14:31, Sergey Beryozkin a �crit : >> Hi, no, no idea why your approach does not work. >> I'd choose at any time the CXFBlueprintServlet path, but it is only my >> opinion >> >> Cheers, Sergey >> On 14/08/15 13:24, J�r�me Revillard wrote: >>> Thanks Sergey, >>> >>> I would really like to be be able to fix my issue because it seems to be >>> the "cleanest" way of doing what I want to achieve even if it's a bit >>> more complex. >>> Would you have an idea ? >>> >>> Best, >>> Jerome >>> >>> Le 14/08/2015 13:49, Sergey Beryozkin a �crit : >>>> Hi >>>> >>>> I did try disabling the default servlet in one of the demos. But I >>>> used CXFBlueprintServlet instead and registered the bundle as a war >>>> bundle, without having to create the analog of the default CXF >>>> Transport - appears to be a complex path. >>>> >>>> For example: >>>> >>>> https://fisheye6.atlassian.com/browse/cxf/systests/jaxrs/src/test/resources/jaxrs_soap_blueprint/WEB-INF/web.xml?r=d2fc5e244b042a47c84c57426f74cb589501489e >>>> >>>> >>>> >>>> that is a link to a non-osgi test, but the same worked for me in >>>> Karaf, I only used an aries blueprint-web-osgi bundle to support it >>>> >>>> Cheers, Sergey >>>> >>>> On 14/08/15 12:40, J�r�me Revillard wrote: >>>>> Hi Sergey, >>>>> >>>>> No, /test-uri does not respond (404 from jetty). >>>>> >>>>> Concerning the default HTTP transport, the fact is that I creates the >>>>> /cxf context myself now (I basically copy/pasted the classes from here >>>>> >>>>> >>>>> >>>>> to it). So /cxf respond but, it says "No services have been found." >>>>> instead of displaying the actually exposed ones that I can find inside >>>>> the Karaf shell >>>>> >>>>> karaf@root()> cxf:list-endpoints >>>>> Name State Address BusID >>>>> [TestURI ] [Started ] >>>>> [/test-uri ] >>>>> [fr.maatg.pandora.gateway.pandora-gateway-sal-saga-cxf1486728741] >>>>> [SagaServiceJobPort ] [Started ] >>>>> [/job ] >>>>> [fr.maatg.pandora.gateway.pandora-gateway-sal-saga-cxf1486728741] >>>>> [SagaServiceDataManagementPort] [Started ] >>>>> [/data ] >>>>> [fr.maatg.pandora.gateway.pandora-gateway-sal-saga-cxf1486728741] >>>>> >>>>> In fact, if I try to contact my test web service: >>>>> https://localhost:8443/cxf/test-uri/test, it says also "No service was >>>>> found." instead of displaying the service output. >>>>> >>>>> Best, >>>>> Jerome >>>>> >>>>> Le 14/08/2015 13:16, Sergey Beryozkin a �crit : >>>>>> Hi >>>>>> >>>>>> The default HTTP transport creates a /cxf context, without it it >>>>>> is up >>>>>> to the custom application how to control the context name, does >>>>>> /test-uri respond, etc ? >>>>>> >>>>>> Sergey >>>>>> On 14/08/15 10:31, jrevillard wrote: >>>>>>> Last but not least, my enpoints are registered:Best,Jerome >>>>>>> >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> View this message in context: >>>>>>> http://cxf.547215.n5.nabble.com/CXF-Karaf-4-how-to-access-the-CXFNonSpringServlet-tp5760086p5760092.html >>>>>>> >>>>>>> >>>>>>> Sent from the cxf-dev mailing list archive at Nabble.com. >>>>>>> >>>>>> >>>>> >>>>> -- >>>>> ===================================================== >>>>> Dr J�r�me Revillard >>>>> CTO MAAT/GNUBILA France >>>>> www.gnubila.fr >>>>> >>>>> 174 Impasse des Pr�s d'en Bas >>>>> 74370 Argonay (France) >>>>> >>>>> Mob. 0033 676 108 185 >>>>> Tel. 0033 450 685 601 >>>>> ===================================================== >>>>> >>>> >>> >> > -- Sergey Beryozkin Talend Community Coders http://coders.talend.com/