[
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)
> <snip>
> 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
> </snip>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.