We are implementing OSGi in our product (embedding Equinox programmatically).
Designing our Bundles installation error handling, we run some tests.
Surprisingly, we see that when we install a regular jar archive in the FW, it's
getting installed, resolved and even active, without any exception thrown.
We also see that it has a regular bundle-id and that his
bundle.getSymbolicName() returns null
This jar has a Manifest (I think generated by Maven) but it doesn't have any
OSGi header in it.
This is the Manifest:
Created-By: Apache Maven 3.2.5
Name: Skeleton Rule
Build-Time: 2018-01-31 10:49
We use org.eclipse.osgi version 3.11.2 (which implements R6)
>From what I see in the R6 core spec (section 3.12), the FW should throw an
>exception in such case, when installing the jar.
3.12 Bundle Validity
The following (non-exhaustive) list of errors causes a bundle to fail to
* Missing Bundle-SymbolicName.
Can anyone please clarify what is the expected behavior?
Confidentiality: This communication and any attachments are intended for the
above-named persons only and may be confidential and/or legally privileged. Any
opinions expressed in this communication are not necessarily those of NICE
Actimize. If this communication has come to you in error you must take no
action based on it, nor must you copy or show it to anyone; please
delete/destroy and inform the sender by e-mail immediately.
Monitoring: NICE Actimize may monitor incoming and outgoing e-mails.
Viruses: Although we have taken steps toward ensuring that this e-mail and
attachments are free from any virus, we advise that in keeping with good
computing practice the recipient should ensure they are actually virus free.
OSGi Developer Mail List