felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rob Walker <r...@ascert.com>
Subject Re: Note sure org.osgi.framework.bootdelegation is working
Date Tue, 14 Oct 2008 08:07:55 GMT
Ok - thanks Alin, new area to me and that wasn't how I read the 
bootdelegation aspect

It looked to me as if bootdelegation should be a sort of "super 
override" or fallback for any/all wildcard package names that weren't 
explicitly listed as system packages. I'll change our manifest 
generation to not include imports for any com.sun.* or sun.* in a 
similar way we do for java.*.


-- Rob

Alin Dreghiciu wrote:
> If your bundle has an import for that package (com.sun.jdmk.comm) the
> package has to be resolved by the framework, hence it must be exported
> by a bundle so by adding the package to the list of system packages,
> the package will be resolved. Just adding com.sun.* or something like
> that to boot delegation will not be enough, as this is just about how
> the classes are loaded. From the specs, to me, it sounds as an
> expected behavior. Not 100%sure but if you would add to that import,
> that the package is optional the boot delegation should work. And will
> work for sure if the import is not present at all.
> On Tue, Oct 14, 2008 at 10:39 AM, Rob Walker <robw@ascert.com> wrote:
>> Getting a few unresolved constraints thrown e.g.
>>   ERROR: Error starting file:e:\data\tas/lib/tas/testrunner.jar
>>   (org.osgi.framewor
>>   k.BundleException: Unresolved constraint in bundle 27: package;
>>   (package=com.sun
>>   .jdmk.comm))
>> If I manually add this to the bootdelegation property, it doesn't get picked
>> up.
>> Adding it to the regular system packages properties gets rid of the error.
>> Wondering if the above property is not yet working and/or maybe the .*
>> wildcard/regex aspect isn't wired in?
>> Will carry on investigating - see if I can see the cause.
>> -- Rob
>> Ascert - Taking systems to the Edge
>> robw@ascert.com
>> +44 (0)20 7488 3470
>> www.ascert.com


Ascert - Taking systems to the Edge
+44 (0)20 7488 3470

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message