Return-Path: X-Original-To: apmail-hc-dev-archive@www.apache.org Delivered-To: apmail-hc-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 623D217B63 for ; Sun, 5 Oct 2014 11:24:34 +0000 (UTC) Received: (qmail 82208 invoked by uid 500); 5 Oct 2014 11:24:34 -0000 Delivered-To: apmail-hc-dev-archive@hc.apache.org Received: (qmail 82172 invoked by uid 500); 5 Oct 2014 11:24:34 -0000 Mailing-List: contact dev-help@hc.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "HttpComponents Project" Delivered-To: mailing list dev@hc.apache.org Received: (qmail 82161 invoked by uid 99); 5 Oct 2014 11:24:34 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 05 Oct 2014 11:24:34 +0000 Date: Sun, 5 Oct 2014 11:24:34 +0000 (UTC) From: "Oleg Kalnichevski (JIRA)" To: dev@hc.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (HTTPCLIENT-1558) Problematic OSGi bundling 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/HTTPCLIENT-1558?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Oleg Kalnichevski resolved HTTPCLIENT-1558. ------------------------------------------- Resolution: Fixed Fix Version/s: 4.4 Beta2 4.3.6 Fixed in SVN trunk and 4.3.x branch. Please re-test with the latest snapshot. Oleg > Problematic OSGi bundling > ------------------------- > > Key: HTTPCLIENT-1558 > URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1558 > Project: HttpComponents HttpClient > Issue Type: Bug > Components: HttpClient > Affects Versions: 4.3.5 > Environment: Linux, Karaf > Reporter: Iwan Aucamp > Fix For: 4.3.6, 4.4 Beta2 > > > org.apache.httpcomponents:httpclient-osgi:4.3.5 includes some class files from org.apache.httpcomponents:httpcore-osgi:4.3.2 and also exports the same packages. This causes some problems for karaf (and presumably other OSGi containers). > {noformat} > karaf@root> osgi:install -s mvn:org.apache.httpcomponents/httpcore-osgi/4.3.2 > Bundle ID: 56 > karaf@root> osgi:install -s mvn:org.apache.httpcomponents/httpclient-osgi/4.3.4 > Bundle ID: 57 > karaf@root> osgi:update --force org.apache.httpcomponents.httpcore/4.3.2 > karaf@root> osgi:update --force org.apache.httpcomponents.httpclient/4.3.4 > Error executing command: Uses constraint violation. Unable to resolve bundle revision org.apache.httpcomponents.httpclient [57.1] because it is exposed to package 'org.apache.http.io' from bundle revisions org.apache.httpcomponents.httpcore [56.1] and org.apache.httpcomponents.httpcore [56.0] via two dependency chains. > Chain 1: > org.apache.httpcomponents.httpclient [57.1] > import: (&(osgi.wiring.package=org.apache.http.io)(version>=4.3.0)(!(version>=4.4.0))) > | > export: osgi.wiring.package=org.apache.http.io > org.apache.httpcomponents.httpcore [56.1] > Chain 2: > org.apache.httpcomponents.httpclient [57.1] > import: (&(osgi.wiring.package=org.apache.http.impl.entity)(version>=4.3.0)(!(version>=4.4.0))) > | > export: osgi.wiring.package=org.apache.http.impl.entity; uses:=org.apache.http.io > export: osgi.wiring.package=org.apache.http.io > org.apache.httpcomponents.httpcore [56.0] > {noformat} > 232 class files are in both bundles: > {noformat} > $ comm -1 -2 <( mop get org.apache.httpcomponents:httpclient-osgi:4.3.5 | head -1 | xargs -I{} bsdtar -tf {} | sort ) <( mop get org.apache.httpcomponents:httpcore-osgi:4.3.2 | head -1 | xargs -I{} bsdtar -tf {} | sort ) | grep '\.class$' | wc -l > 232 > {noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org For additional commands, e-mail: dev-help@hc.apache.org