Return-Path: X-Original-To: apmail-karaf-dev-archive@minotaur.apache.org Delivered-To: apmail-karaf-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7034011228 for ; Tue, 17 Jun 2014 00:55:04 +0000 (UTC) Received: (qmail 99125 invoked by uid 500); 17 Jun 2014 00:55:04 -0000 Delivered-To: apmail-karaf-dev-archive@karaf.apache.org Received: (qmail 99084 invoked by uid 500); 17 Jun 2014 00:55:04 -0000 Mailing-List: contact dev-help@karaf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@karaf.apache.org Delivered-To: mailing list dev@karaf.apache.org Received: (qmail 99073 invoked by uid 99); 17 Jun 2014 00:55:04 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Jun 2014 00:55:03 +0000 X-ASF-Spam-Status: No, hits=2.3 required=5.0 tests=SPF_SOFTFAIL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: softfail (nike.apache.org: transitioning domain of sapnabhargava.sb@gmail.com does not designate 216.139.236.26 as permitted sender) Received: from [216.139.236.26] (HELO sam.nabble.com) (216.139.236.26) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Jun 2014 00:55:01 +0000 Received: from ben.nabble.com ([192.168.236.152]) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1WwhfZ-0004hh-Er for dev@karaf.apache.org; Mon, 16 Jun 2014 17:54:37 -0700 Date: Mon, 16 Jun 2014 17:54:37 -0700 (PDT) From: SapnaB To: dev@karaf.apache.org Message-ID: <1402966477408-4033550.post@n3.nabble.com> Subject: Missing Constraint: Import-Package: com.sun.jersey.api.client MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi All, I have added some client code in my osgi bundle using jersey. I have added jersey-bundle dependency in my pom.xml as below: com.sun.jersey jersey-bundle 1.18.1 The imported packages in my class are: com.sun.jersey.api.client.* and thats why the Import Package section of pom.xml looks like: com.sun.jersey.api.client, org.apache.felix.service.command, org.apache.felix.gogo.commands, org.apache.karaf.shell.console, * problem is after installation, once I start the bundle, I get the following error: Reason: Missing Constraint: Import-Package: com.sun.jersey.api.client; version="[1.18.0,2.0.0)" Im really not able to figure out what karaf is trying to say, since I can see the following imports in my manifest: Import-Package: com.sun.jersey.api.client;version="[1.18,2)",com.sun.jer sey.api.client.config;version="[1.18,2)",javax.ws.rs.core;version="[1.1 ,2)",org.apache.felix.gogo.commands;version="[0.10,1)",org.apache.felix .service.command;version="[0.10,1)";status=provisional,org.apache.karaf .shell.console;version="[2.2,3)",org.osgi.service.blueprint;version="[1 .0.0,2.0.0)" Any help is greatly appreciated. Thanks, Sapna -- View this message in context: http://karaf.922171.n3.nabble.com/Missing-Constraint-Import-Package-com-sun-jersey-api-client-tp4033550.html Sent from the Karaf - Dev mailing list archive at Nabble.com.