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 DD301200B29 for ; Thu, 30 Jun 2016 13:25:11 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id DBE39160A63; Thu, 30 Jun 2016 11:25:11 +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 2FF67160A51 for ; Thu, 30 Jun 2016 13:25:11 +0200 (CEST) Received: (qmail 59398 invoked by uid 500); 30 Jun 2016 11:25:10 -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 59376 invoked by uid 99); 30 Jun 2016 11:25:10 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Jun 2016 11:25:10 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 394672C029F for ; Thu, 30 Jun 2016 11:25:10 +0000 (UTC) Date: Thu, 30 Jun 2016 11:25:10 +0000 (UTC) From: "Akitoshi Yoshida (JIRA)" To: issues@cxf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CXF-6952) Swagger2Featue not scanning CXF resources MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 30 Jun 2016 11:25:12 -0000 [ https://issues.apache.org/jira/browse/CXF-6952?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15356924#comment-15356924 ] Akitoshi Yoshida commented on CXF-6952: --------------------------------------- i'll be looking into it today. > Swagger2Featue not scanning CXF resources > ----------------------------------------- > > Key: CXF-6952 > URL: https://issues.apache.org/jira/browse/CXF-6952 > Project: CXF > Issue Type: Bug > Components: JAX-RS > Affects Versions: 3.1.3, 3.1.5 > Environment: Windows > Reporter: Niten Aggarwal > Labels: features > > Swagger2Feature is not scanning end points configured in OSGI blueprint and always returning default Swagger Json. > To reproduce issue, I deployed https://github.com/apache/cxf/tree/master/distribution/src/main/release/samples/jax_rs/description_swagger2_osgi project as well into my Karaf runtime but no luck and same default Json is returned. > https://issues.apache.org/jira/browse/CXF-6524 > https://issues.apache.org/jira/browse/CXF-6541 > Was following above bugs and it seems with versions 3.0.6, 3.1.2 this issue should be resolved so I tried with cxf versions 3.1.2, 3.1.3 and 3.1.5 but no luck. > Also the samples distribution which is using 3.2.0-SNAPSHOT, also returns default json. > Default json which I am getting.. > {"swagger":"2.0","info":{"description":"The Application","version":"1.0.0","title":"Sample REST Application","contact":{"name":"users@cxf.apache.org"},"license":{"name":"Apache 2.0 License","url":"http://www.apache.org/licenses/LICENSE-2.0.html"}},"basePath":"/cxf/swaggerSample"} > Also sample Json doesn't recognize base path and always returned at http://localhost:8181/swaggerSample/swagger.json. > Thanks > Niten -- This message was sent by Atlassian JIRA (v6.3.4#6332)