Return-Path: X-Original-To: apmail-cxf-issues-archive@www.apache.org Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 70AD1D1AA for ; Mon, 16 Jul 2012 15:42:39 +0000 (UTC) Received: (qmail 76129 invoked by uid 500); 16 Jul 2012 15:42:38 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 76046 invoked by uid 500); 16 Jul 2012 15:42:37 -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 75610 invoked by uid 99); 16 Jul 2012 15:42:36 -0000 Received: from issues-vm.apache.org (HELO issues-vm) (140.211.11.160) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Jul 2012 15:42:36 +0000 Received: from isssues-vm.apache.org (localhost [127.0.0.1]) by issues-vm (Postfix) with ESMTP id DDD78142850 for ; Mon, 16 Jul 2012 15:42:35 +0000 (UTC) Date: Mon, 16 Jul 2012 15:42:35 +0000 (UTC) From: "Sergey Beryozkin (JIRA)" To: issues@cxf.apache.org Message-ID: <663635120.58343.1342453355910.JavaMail.jiratomcat@issues-vm> In-Reply-To: <145045667.18979.1338415763430.JavaMail.jiratomcat@issues-vm> Subject: [jira] [Commented] (CXF-4351) No JSON output under OSGi because cxf-rt-frontend-jaxrs is missing Import-Package for org.apache.cxf.jaxrs.provider.json MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CXF-4351?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13415229#comment-13415229 ] Sergey Beryozkin commented on CXF-4351: --------------------------------------- I'll have a look asap > No JSON output under OSGi because cxf-rt-frontend-jaxrs is missing Import-Package for org.apache.cxf.jaxrs.provider.json > ------------------------------------------------------------------------------------------------------------------------ > > Key: CXF-4351 > URL: https://issues.apache.org/jira/browse/CXF-4351 > Project: CXF > Issue Type: Bug > Components: JAX-RS > Affects Versions: 2.6 > Environment: OSGi 4.2, Apache Karaf 2.2.7, Equinox > Reporter: Chris Dolan > Fix For: 2.6.1 > > Attachments: CXF-4351.patch > > > I use CXF via the features.xml inside of Apache Karaf. I use the umbrella feature "cxf" to pull in most of the CXF bundles. > When upgrading from CXF 2.5.0 to 2.6.0, I started getting errors like the following when my Accepts header is application/json: > {noformat} > 2012-05-30 16:43:55,979 WARN [JAXRSOutInterceptor.java:401] No message body writer has been found for response class HealthItemCollection. - o.a.c.j.i.JAXRSOutInterceptor > {noformat} > I put a breakpoint in org.apache.cxf.jaxrs.provider.ProviderFactory and found this: > {noformat} > java.lang.ClassNotFoundException: org.apache.cxf.jaxrs.provider.json.JSONProvider > {noformat} > Then I looked at the manifest for cxf-rt-frontend-jaxrs and noticed that the Import-Packages line lacks a reference to org.apache.cxf.jaxrs.provider.json and other providers that were moved to the new cxf-rt-rs-extension-providers bundle for 2.6.0. > I think the solution is to simply add an import for org.apache.cxf.jaxrs.provider.json to the manifest of cxf-rt-frontend-jaxrs -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira