Return-Path: Delivered-To: apmail-felix-dev-archive@www.apache.org Received: (qmail 69027 invoked from network); 11 Jun 2008 06:09:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Jun 2008 06:09:38 -0000 Received: (qmail 63063 invoked by uid 500); 11 Jun 2008 06:09:38 -0000 Delivered-To: apmail-felix-dev-archive@felix.apache.org Received: (qmail 63020 invoked by uid 500); 11 Jun 2008 06:09:38 -0000 Mailing-List: contact dev-help@felix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@felix.apache.org Delivered-To: mailing list dev@felix.apache.org Received: (qmail 63009 invoked by uid 99); 11 Jun 2008 06:09:38 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Jun 2008 23:09:38 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Jun 2008 06:08:57 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id EF889234C137 for ; Tue, 10 Jun 2008 23:08:44 -0700 (PDT) Message-ID: <1372466280.1213164524979.JavaMail.jira@brutus> Date: Tue, 10 Jun 2008 23:08:44 -0700 (PDT) From: "Felix Meschberger (JIRA)" To: dev@felix.apache.org Subject: [jira] Issue Comment Edited: (FELIX-602) Symbolic name system.bundle is not recognized In-Reply-To: <1981417862.1213126065376.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/FELIX-602?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12604129#action_12604129 ] fmeschbe edited comment on FELIX-602 at 6/10/08 11:08 PM: ------------------------------------------------------------------- It looks like the Felix class implementing the system bundle returns the predefined location string instead of the symbolic name. The fix is rather simple IMHO: -------------------------------- patch --------------------------------------------- Index: /usr/src/felix/trunk/framework/src/main/java/org/apache/felix/framework/Felix.java =================================================================== --- /usr/src/felix/trunk/framework/src/main/java/org/apache/felix/framework/Felix.java (revision 666535) +++ /usr/src/felix/trunk/framework/src/main/java/org/apache/felix/framework/Felix.java (working copy) @@ -563,7 +563,7 @@ public String getSymbolicName() { - return Constants.SYSTEM_BUNDLE_LOCATION; + return Constants.SYSTEM_BUNDLE_SYMBOLICNAME; } public boolean hasPermission(Object obj) -------------------------------- patch --------------------------------------------- I assume that this is the cause for the issue you are encountering. was (Author: fmeschbe): It looks like the Felix class implementing the system bundle returns the predefined location string instead of the symbolic name. The fix is rather simple IMHO: Index: /usr/src/felix/trunk/framework/src/main/java/org/apache/felix/framework/Felix.java =================================================================== --- /usr/src/felix/trunk/framework/src/main/java/org/apache/felix/framework/Felix.java (revision 666535) +++ /usr/src/felix/trunk/framework/src/main/java/org/apache/felix/framework/Felix.java (working copy) @@ -563,7 +563,7 @@ public String getSymbolicName() { - return Constants.SYSTEM_BUNDLE_LOCATION; + return Constants.SYSTEM_BUNDLE_SYMBOLICNAME; } public boolean hasPermission(Object obj) > Symbolic name system.bundle is not recognized > --------------------------------------------- > > Key: FELIX-602 > URL: https://issues.apache.org/jira/browse/FELIX-602 > Project: Felix > Issue Type: Bug > Affects Versions: felix-1.0.4 > Reporter: Mitesh Meswani > Priority: Minor > Attachments: test.jar > > > A test jar has following Manifest entries > Manifest-Version: 1.0 > Built-By: mitesh > Export-Package: bar > Bundle-Version: 1.0.0.SNAPSHOT > Require-Bundle: system.bundle > Bundle-Name: test1 > Build-Jdk: 1.5.0_15 > Bundle-ManifestVersion: 2 > Bundle-SymbolicName: mitesh.osgi.test > When I try to start the bundle. I get following > -> start 11 > org.osgi.framework.BundleException: Unresolved package in bundle 11: module; (bundle-symbolic-name=system.bundle) > The spec says following ( Release 4, Version 4.1, section 4.5) > > The system bundle has a bundle symbolic name that is unique for a specific > version. However, the name system.bundle must be recognized as > an alias to this implementation-defined name > -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.