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 01AC0200B9C for ; Mon, 10 Oct 2016 20:45:43 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 002C5160AE1; Mon, 10 Oct 2016 18:45: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 444F3160AD1 for ; Mon, 10 Oct 2016 20:45:42 +0200 (CEST) Received: (qmail 88435 invoked by uid 500); 10 Oct 2016 18:45:41 -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 88423 invoked by uid 99); 10 Oct 2016 18:45:40 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Oct 2016 18:45:40 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 78126C0F5F for ; Mon, 10 Oct 2016 18:45:40 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.88 X-Spam-Level: * X-Spam-Status: No, score=1.88 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, WEIRD_PORT=0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id D6dfAbimqc9y for ; Mon, 10 Oct 2016 18:45:38 +0000 (UTC) Received: from mail-lf0-f43.google.com (mail-lf0-f43.google.com [209.85.215.43]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 1E90F5FAC3 for ; Mon, 10 Oct 2016 18:45:38 +0000 (UTC) Received: by mail-lf0-f43.google.com with SMTP id b81so139212963lfe.1 for ; Mon, 10 Oct 2016 11:45:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=2JljDTXhWiQ4cWu5+8+0JVdHFKn9fPuLBQFeJ1CKqDA=; b=z5TbCybRqG6sTZueRZj+8cRbRgsRyBRq6fs/RxE2xQ3e36r9NzhOngNUPZqaCO4SFK FqkQ06swqXkWgXq6uax1IfB5wMMd1AiRJyyUyESEi2zWFBqxSfxESR0zgJcLAU6H9Hhw cdrGiX7v5z67FRwlw29/XZUAi+oRq28nJdnrtMf50rTs3hWiAvYeLo7n5bAbNAxZPdf0 Eg/JFwKDk13O1KCWD4FrEWo3bBsX0QBfJaJf40XDQ2PdhmY1z7HpyXQ6OWm5mt7tE+By VHWp1xlWl0oGDcpgXnfCMbkzo2j0isxIpb28KAEGKctxHch/tNrcXob42RnON+gRnHWn SnkQ== 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=2JljDTXhWiQ4cWu5+8+0JVdHFKn9fPuLBQFeJ1CKqDA=; b=msFvnO6zThi53ixU0ltYzBg5RnV8RrI1nS9u95ALd1f3T6AFO2UM0bXDJ2FTnH1LRA ocIykpj5V90xkgL7i36OW63bc6Lm22by4VY4hCJQtpekgBe7P7jn84Hzlp8f/YVYQ9FF A3hnhaApFBDYJEn3Vs/ZRRj99HmpZQnfmmnlifFk5pe+n/YGbCWyZLG6X5TJGIgmk6Jn 3VE/z6cMV9zteLlE6jkr04RTOxpUQDdL+rhhnNo8/x3b3xIQdTwFDYXrSFL5zZSYYXpP emBBfv2wVgjEQwEPGMG74qVrecsKLe75+FEh5+IPhCgwRtUGfiMdfBDqJj9cgShWu1SS 3POA== X-Gm-Message-State: AA6/9RmUhWw4MmEfZcLJb+6xDV69FFZSsXzk90EUMp8h1dQbEOoiQosmCQT5bAINHL1103yDxNNelSMFzE1lew== X-Received: by 10.25.92.152 with SMTP id u24mr13992376lfi.114.1476125126230; Mon, 10 Oct 2016 11:45:26 -0700 (PDT) MIME-Version: 1.0 Received: by 10.114.2.161 with HTTP; Mon, 10 Oct 2016 11:45:25 -0700 (PDT) In-Reply-To: References: From: nino martinez wael Date: Mon, 10 Oct 2016 20:45:25 +0200 Message-ID: Subject: Re: [3.1.7] HTTPS / JAX-RS (non spring) To: users@cxf.apache.org Content-Type: multipart/alternative; boundary=94eb2c0edb14cb06b4053e872900 archived-at: Mon, 10 Oct 2016 18:45:43 -0000 --94eb2c0edb14cb06b4053e872900 Content-Type: text/plain; charset=UTF-8 That does not solve the problem with using multiple bindings... Seems the only way are going what Christian proposed (the path im following now) On Mon, Oct 10, 2016 at 4:47 PM, Sergey Beryozkin wrote: > Hi > > Ideally, when using JAXRSServerFactoryBean, you'd use a non-complete HTTP > address (ex, "/oak") for CXF HTTP Transport to try to bind against OSGI > HttpService. > > Cheers, Sergey > > > > On 08/10/16 11:48, nino martinez wael wrote: > >> Im wanting to a mix of https / http and probably different realms. cxf >> dosgi seems to bring in the big guns for such a simple thing.. I mean >> currently its only 3 lines of code.. if we goto 10 lines for https its >> still okay. >> >> I believe it should be possible without spring..Or does CXF have a hard >> tied spring dependency i've overlooked.? >> >> On Fri, Oct 7, 2016 at 11:00 PM, Christian Schneider < >> chris@die-schneider.net> wrote: >> >> If you use DS then you should take a look at CXF-DOSGi it allows to avoid >>> the manual code for creating the the service. >>> See: https://github.com/apache/cxf-dosgi/tree/master/samples/ssl >>> >>> On the server side you can simply configure pax-web to use ssl. Then you >>> can use a relative url to make cxf use the HttpService. >>> Alternatively you can also use a https url but I am not sure how to >>> configure keystores and similar in this case. >>> >>> Christian >>> >>> 2016-10-07 17:15 GMT+02:00 nino martinez wael < >>> nino.martinez.wael@gmail.com> >>> : >>> >>> Hi >>>> >>>> How do I switch to HTTPS? Currently I have this: >>>> >>>> JAXRSServerFactoryBean sf = new JAXRSServerFactoryBean(); >>>> sf.setResourceClasses(WhiteLabelEndPoint.class); >>>> sf.setAddress("http://localhost:7521/oak"); >>>> server = sf.create(); >>>> >>>> I am not using spring and are having a little trouble seeing how to >>>> configure the bus for https as all examples are pointing towards the >>>> springbusfactory? >>>> >>>> >>>> PS i am using OSGI with Karaf as container and Declarative services for >>>> injection. >>>> >>>> -- >>>> Best regards / Med venlig hilsen >>>> Nino Martinez >>>> >>>> >>> >>> >>> -- >>> -- >>> Christian Schneider >>> http://www.liquid-reality.de >>> >> 46&URL=http%3a%2f%2fwww.liquid-reality.de> >>> >>> Open Source Architect >>> http://www.talend.com >>> >> 46&URL=http%3a%2f%2fwww.talend.com> >>> >>> >> >> >> > -- Best regards / Med venlig hilsen Nino Martinez --94eb2c0edb14cb06b4053e872900--