Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E3D107AAC for ; Tue, 4 Oct 2011 09:20:58 +0000 (UTC) Received: (qmail 1894 invoked by uid 500); 4 Oct 2011 09:20:58 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 1807 invoked by uid 500); 4 Oct 2011 09:20:58 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 1799 invoked by uid 99); 4 Oct 2011 09:20:58 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Oct 2011 09:20:58 +0000 X-ASF-Spam-Status: No, hits=-2000.5 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Oct 2011 09:20:55 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 5CC8B2A8D3B for ; Tue, 4 Oct 2011 09:20:34 +0000 (UTC) Date: Tue, 4 Oct 2011 09:20:34 +0000 (UTC) From: "Rich Mayfield (Commented) (JIRA)" To: issues@commons.apache.org Message-ID: <1119131702.6690.1317720034381.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1636938641.3615.1317662974007.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (CONFIGURATION-465) commons-configuration MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CONFIGURATION-465?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13119975#comment-13119975 ] Rich Mayfield commented on CONFIGURATION-465: --------------------------------------------- Thanks for the response. By default, packages listed in the MANIFEST.MF Import-Package header is considered required. You can, however, make package imports "optional" in cases like you have described. If it is the case that the class that references Jexl (ExprLookup) is never loaded via the bundle classloader for commons-configuration, then making that package dependency optional should do the trick. > commons-configuration > ---------------------- > > Key: CONFIGURATION-465 > URL: https://issues.apache.org/jira/browse/CONFIGURATION-465 > Project: Commons Configuration > Issue Type: Bug > Affects Versions: 1.7 > Reporter: Rich Mayfield > > I updated to use commons-configuration 1.7 (from 1.6) and am running into the following resolution error under Eclipse Equinox OSGi framework. > An Import-Package could not be resolved. Caused by missing constraint in bundle > constraint: > According to the Import-Package header in 1.7's MANIFEST.MF, commons-configuration now has a required dependency on org.apache.commons.jexl. Problem is, there is no OSGi enabled version of Apache Commons jexl that exports this package. > In jexl 2.0 the packages were renamed and org.apache.commons.jexl2 is exported. The 1.x codeline, although using org.apache.commons.jexl, does not have the appropriate MANIFEST.MF headers to be used as an OSGi bundle. > As such, you cannot consume commons-configuration 1.7 in an OSGi environment. -- 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