Return-Path: X-Original-To: apmail-cxf-dev-archive@www.apache.org Delivered-To: apmail-cxf-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8FF56104E3 for ; Mon, 5 Aug 2013 15:33:25 +0000 (UTC) Received: (qmail 40302 invoked by uid 500); 5 Aug 2013 15:33:25 -0000 Delivered-To: apmail-cxf-dev-archive@cxf.apache.org Received: (qmail 39269 invoked by uid 500); 5 Aug 2013 15:33:21 -0000 Mailing-List: contact dev-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 dev@cxf.apache.org Received: (qmail 39258 invoked by uid 99); 5 Aug 2013 15:33:20 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Aug 2013 15:33:20 +0000 X-ASF-Spam-Status: No, hits=-0.5 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of cschneider111@gmail.com designates 74.125.83.52 as permitted sender) Received: from [74.125.83.52] (HELO mail-ee0-f52.google.com) (74.125.83.52) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Aug 2013 15:33:14 +0000 Received: by mail-ee0-f52.google.com with SMTP id c41so1699952eek.25 for ; Mon, 05 Aug 2013 08:32:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=IYhPyPsFFrq2s3AGfSNSQMJ9+Bs0oNPEhhGofrr2nGA=; b=opG3+NqKsFw4T5UrKkjA434ZMLI+m8XCOuBTVnNN+HXAz8BZ+H5fzuiLx9eH9iSaHA fps6fhU8Tce62BBJUDVECduTE3Ck836fnIj42QW738uwwbEZG74BHYOauSPuiMay6vXD FQoQYCr7354EN7w6EvnnolZwz/DPliDD93srXpnKCxyPTEgmXdDBjOU6aEJ7fiw+soHZ 8c2ayqslCwt12oAvOP1yijeimGkH8Pkr0SH9VEXqHniD5lwAA7OgFa77mH/1Ao1OQfiS BAz6dr5L6+FxkHivO6pKDG0T21e4aWTy8/t7WwxTVBwwg9lfwqdNLUm7jHxv3iGN8+lB 1/wA== X-Received: by 10.14.203.196 with SMTP id f44mr5398200eeo.141.1375716774097; Mon, 05 Aug 2013 08:32:54 -0700 (PDT) Received: from [192.168.0.104] (HSI-KBW-5-10-51-197.hsi18.kabel-badenwuerttemberg.de. [5.10.51.197]) by mx.google.com with ESMTPSA id bq1sm11825850eeb.9.2013.08.05.08.32.52 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 05 Aug 2013 08:32:53 -0700 (PDT) Sender: Christian Schneider Message-ID: <51FFC59E.4060501@die-schneider.net> Date: Mon, 05 Aug 2013 17:32:46 +0200 From: Christian Schneider User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130623 Thunderbird/17.0.7 MIME-Version: 1.0 To: CXF Dev Subject: Problem with Rest Client in blueprint Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org I am currently facing some problems using a jaxrs:client in blueprint. The first problem is that org.apache.cxf.jaxrs.client.Client is not found at runtime. I had to add this to the maven bundle plugin to make it work: org.apache.cxf.jaxrs.client, * As far as I know this should not be necessary. So this might be a bug in the cxf blueprint support. The next and more severe problem is that my service interface is not found: Caused by: java.lang.IllegalArgumentException: interface net.lr.tutorial.karaf.cxf.personservice.person.PersonService is not visible from class loader It looks like the JAXRS client factory does not use the classloader of my bundle. My bundle correctly imports the package so it should be visible. You can easily recreate error using my Karaf cxf tutorial: Checkout the project https://github.com/cschneider/Karaf-Tutorial The project you need is at: cxf/personservice Run mvn clean install there. Then start karaf 2.3.2 and execute the following commands: features:chooseurl cxf 2.7.5 features:install http cxf install -s mvn:net.lr.tutorial.karaf.cxf.personservice/personservice-model/1.0-SNAPSHOT install -s mvn:net.lr.tutorial.karaf.cxf.personservice/personservice-server/1.0-SNAPSHOT install -s mvn:net.lr.tutorial.karaf.cxf.personservice/personservice-proxy-rest/1.0-SNAPSHOT The proxy bundle will be in blueprint status failed and the stacktrace will look like this: https://gist.github.com/cschneider/6156833 Is there anything I am doing wrong or is this really a CXF bug? Christian -- Christian Schneider http://www.liquid-reality.de Open Source Architect http://www.talend.com