Yes, this appears to be true. I will modify the manifest parser to just
drop the attributes in this case, instead of throwing an
exception...perhaps I will log a warning message to let you know they
are being ignored...
-> richard
Thomas Watson wrote:
Its my understanding that in an R3 Framework unknown attributes on a
package imports/exports are ignored by the Framework. I do not think
Felix should be throwing an exception in the case of an R3 bundle
being installed into an R4 Framework. In fact in an R3 Framework
there were no checks at all on the syntax of a bundle manifest at
install time. The same should be true when installing an R3 bundle
into an R4 Framework, otherwise you run the risk of binary
incompatibilty when installing an R3 bundle in R4.
Maybe this should only call for a warning message of some sort?
Tom.
Hi David,
Could it be that you omitted the "Bundle-ManifestVersion" header in
your Bundle Manifest ? Only if this header is present AND set to "2"
will the manifest be interpreted as being an R4 manifest. Otherwise it
will be interpreted as an R3 Manifest.
Hope this helps.
Regards
Felix
On 9/21/06, David Leangen <[EMAIL PROTECTED]> wrote:
My understanding was that Felix supports R4 of the OSGi spec.
So, I don't quite understand why I'm getting the following error. Is
this a bug?
ERROR: Auto-properties install. (org.osgi.framework.BundleException:
Could not create bundle object.)
org.osgi.framework.BundleException: R3 import syntax does not support
attributes: org.apache.log4j [provider=paxlogging]
[EMAIL PROTECTED]
at
org.apache.felix.framework.util.ManifestParser.
checkAndNormalizeR3(ManifestParser.java:427)
at
org.apache.felix.framework.util.ManifestParser.
<init>(ManifestParser.java:176)
at
org.apache.felix.framework.Felix.createModule(Felix.java:2578)
at
org.apache.felix.framework.Felix.createBundleInfo(Felix.java:2559)
at
org.apache.felix.framework.Felix.installBundle(Felix.java:1766)
at
org.apache.felix.framework.Felix.installBundle(Felix.java:1680)
at
org.apache.felix.framework.Felix.processAutoProperties(Felix.java:2945)
at org.apache.felix.framework.Felix.start(Felix.java:470)
at org.apache.felix.main.Main.main(Main.java:206)