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 5F39F200BB5 for ; Sun, 6 Nov 2016 19:42:00 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 5DD71160AFC; Sun, 6 Nov 2016 18:42:00 +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 A4889160AE8 for ; Sun, 6 Nov 2016 19:41:59 +0100 (CET) Received: (qmail 12877 invoked by uid 500); 6 Nov 2016 18:41:58 -0000 Mailing-List: contact issues-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 issues@cxf.apache.org Received: (qmail 12865 invoked by uid 99); 6 Nov 2016 18:41:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 06 Nov 2016 18:41:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 79C042C1F54 for ; Sun, 6 Nov 2016 18:41:58 +0000 (UTC) Date: Sun, 6 Nov 2016 18:41:58 +0000 (UTC) From: "Sergey Beryozkin (JIRA)" To: issues@cxf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CXF-7117) Swagger2Feature not working in OSGi container when jaxrs server address not attached to CXF servlet MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Sun, 06 Nov 2016 18:42:00 -0000 [ https://issues.apache.org/jira/browse/CXF-7117?page=3Dcom.atlassian.j= ira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D156422= 17#comment-15642217 ]=20 Sergey Beryozkin commented on CXF-7117: --------------------------------------- Hi,=20 So the issue is not about Swagger2Feature not working in OSGI when the endp= oints have the absolute URIs - it does for a single endpoint in a given con= text case. But that the fix which supports the separation between Swagger i= nfos for different endpoints does not apply in this case.=20 The reason that fix does not apply is because it depends on the availabilit= y of the servlet config which is not available in the case of the embedded = Jetty transport. I can only suggest to disable those properties nonetheless and set a 'scan'= property to false, would that work ? [~reta] Hey Andriy - please watch this issue in case you have some more ide= as. thanks > Swagger2Feature not working in OSGi container when jaxrs server address n= ot attached to CXF servlet > -------------------------------------------------------------------------= -------------------------- > > Key: CXF-7117 > URL: https://issues.apache.org/jira/browse/CXF-7117 > Project: CXF > Issue Type: Bug > Components: OSGi > Affects Versions: 3.1.8 > Environment: Apache Karaf 3.0.8 > Reporter: Concombre Masqu=C3=A9 > > Just modify sample description_swagger2_osgi as follows: > =20 > > > > > > > > > > > > > > > > > > > > > > > Then deploy modified bundle into Karaf and browse Swagger service definit= ion at http://localhost:9091/test/swaggerSample/swagger.json > Result is: > {"swagger":"2.0"} -- This message was sent by Atlassian JIRA (v6.3.4#6332)