Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id B3F41200B48 for ; Mon, 18 Jul 2016 15:47:43 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id B2611160A65; Mon, 18 Jul 2016 13:47:43 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 05F69160A5D for ; Mon, 18 Jul 2016 15:47:42 +0200 (CEST) Received: (qmail 51158 invoked by uid 500); 18 Jul 2016 13:47:42 -0000 Mailing-List: contact users-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@cxf.apache.org Delivered-To: mailing list users@cxf.apache.org Received: (qmail 51146 invoked by uid 99); 18 Jul 2016 13:47:41 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Jul 2016 13:47:41 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 22594C000A for ; Mon, 18 Jul 2016 13:47:41 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.821 X-Spam-Level: X-Spam-Status: No, score=-0.821 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=basistech.com Received: from mx2-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id T20QxReDtS4l for ; Mon, 18 Jul 2016 13:47:37 +0000 (UTC) Received: from mail-vk0-f46.google.com (mail-vk0-f46.google.com [209.85.213.46]) by mx2-lw-eu.apache.org (ASF Mail Server at mx2-lw-eu.apache.org) with ESMTPS id 49EFE5FAF0 for ; Mon, 18 Jul 2016 13:47:37 +0000 (UTC) Received: by mail-vk0-f46.google.com with SMTP id x130so239204118vkc.0 for ; Mon, 18 Jul 2016 06:47:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=basistech.com; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=OwsOdgJhpdwnPtdPc3q6W+NbyTvAUXY75xl8+lLy+U0=; b=Ew+mnLhBwNagmeWV1E50A+6UU4bQ2CEWwof8nNWvSPbSQaN4YkR4k86eyaJvriC4GB cxN0qNLhkfHAR+sQazhDMCjuPljc68ZZ/zbTJHFD05ApXOEZ8DgOHwbsrJqdMOCYZp5R TAuSTKW92P///vGQNB3jwKxHhtVfz86JN8WmI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=OwsOdgJhpdwnPtdPc3q6W+NbyTvAUXY75xl8+lLy+U0=; b=ERxjavDpfRBuQgJWG/WAQl3NFXn+OdQt+CZibcAXQ/cJJ9NhGWBG7eDfbF9J5n+HPv dxMie/+MORC5fKNaMHxbwPM0jyjofIqo6XN9QiP6/YbCmeNGqBMdxQC/GwoIXFcYXbte 3Vc1UWP2VQY4bCpHLAMsaqMoJBlW57HtrVqPbzlnVDsUlx6dCbv4uZlDI7efPZPN4iAy iOswdhlvX+0hvLzVKS+8ibN9hGu3u7RTk0Nj3zePMT5RnbNDmfmxoaocndLkRGoGhOY+ td2nDg969RhO+469tvMZjxxHPwTfLf9v3SKPx4DKnXpzzd6cTH7mp1emtyITahM1ONtr XBtg== X-Gm-Message-State: ALyK8tLofjCMzWzjKq/eDcd3bVDA45nthBZcOAR4eeOO7TeVmyBb9kXQHGsluh1PwzgUHbIXu9Hh5pM4ac8kOvPd X-Received: by 10.31.48.200 with SMTP id w191mr15474675vkw.28.1468849655997; Mon, 18 Jul 2016 06:47:35 -0700 (PDT) MIME-Version: 1.0 Received: by 10.103.90.199 with HTTP; Mon, 18 Jul 2016 06:47:35 -0700 (PDT) In-Reply-To: <578C9BE3.90706@die-schneider.net> References: <578BDBF7.8040808@gmail.com> <578C9BE3.90706@die-schneider.net> From: Benson Margulies Date: Mon, 18 Jul 2016 09:47:35 -0400 Message-ID: Subject: Re: org.apache.cxf.rs.httpservice.context versus org.apache.cxf.servlet.context=/rest in karaf To: users@cxf.apache.org Content-Type: text/plain; charset=UTF-8 archived-at: Mon, 18 Jul 2016 13:47:43 -0000 The doc is pretty confusing. It says that if I use 'org.apache.cxf.rs.address' that CXF will ignore the pax-web / HTTP service and launch its own jetty, which is not what I want. If it works as you say, we should fix the doc. On Mon, Jul 18, 2016 at 5:05 AM, Christian Schneider wrote: > Normally you should not use the context property. > > Just set a org.apache.cxf.rs.address=/rest/v1 > > It will result in /cxf/rest/v1. > Would that be a problem? > > Christian > > > > On 17.07.2016 21:27, Benson Margulies wrote: >> >> I think you are mixing in org.apache.cxf.rs.address, which is what is >> documented to cause the direct use of the HTTP transport. >> >> >> On Sun, Jul 17, 2016 at 3:26 PM, Sergey Beryozkin >> wrote: >>> >>> On 17/07/16 22:19, Benson Margulies wrote: >>>> >>>> If I have a setting in >>>> >>>> etc/org.apache.cxf.osgi.cfg >>>> >>>> of >>>> >>>> org.apache.cxf.servlet.context=/rest >>>> >>>> and then I set a service property of >>>> >>>> org.apache.cxf.rs.httpservice.context=/v1 >>>> >>>> I'm expecting to net out to /rest/v1. Is that what a good belief? >>>> >>> I vaguely recall that setting the former means DOSGI will itself register >>> a >>> servlet with OSGI HTTP Service, in the latter case you are configuring a >>> default CXF Servlet which CXF HttpTransport registers. >>> There could be some variations there, Christian knows it all >>> >>> Sergey >>> >>> >>> >>> -- >>> Sergey Beryozkin >>> >>> Talend Community Coders >>> http://coders.talend.com/ > > > > -- > Christian Schneider > http://www.liquid-reality.de > > Open Source Architect > http://www.talend.com >