The OSGi Core spec defines a very specific (weird ?) syntax for the
boot deletation.
It's
   [package-name] | [package-name] '.*'
So if you want to provide both sun.security.provider and it's
subpackages, I think you need

org.osgi.framework.bootdelegation=sun.*,com.sun.management.*,sun.security.provider,sun.security.provider.*


On Fri, Jul 10, 2009 at 00:43, Peter Chandler<[email protected]> wrote:
>
> Still can't resolve this :confused:
>
> Here is my config.properties:
> org.osgi.framework.bootdelegation=sun.*,com.sun.management*,sun.security.provider.*
> org.apache.servicemix.security.providers=sun.security.provider
>
> Error at ServiceMix Start-up.
> Unable to register security provider: java.lang.ClassNotFoundException:
> sun.security.provider
>
> Again this package is in the rt.jar Any other ideas?
>
> Peter.
>
>
> Jeremias Maerki-2 wrote:
>>
>> You might need to enable boot delegation (as indicated in my other mail)
>> for
>> that package if your own bundle has a hard dependency on it. By default,
>> OSGi only provides java.*, not anything else.
>>
>> On 09.07.2009 01:14:48 Peter Chandler wrote:
>>>
>>> I am getting the follow error:
>>>
>>> org.osgi.framework.BundleException: Unresolved constraint in bundle 337:
>>> package; (package=sun.security.provider)
>>>
>>> My java.security file has:
>>> security.provider.1=sun.security.provider.Sun
>>>
>>> rt.jar has:
>>> sun.security.provider.Sun
>>> in it.
>>>
>>> So why in I getting Unresolved constraint?
>>>
>>> Peter.
>>>
>>>
>>> --
>>> View this message in context:
>>> http://www.nabble.com/sun.security.provider-tp24401095p24401095.html
>>> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>>
>>
>>
>>
>> Jeremias Maerki
>>
>>
>>
>
> --
> View this message in context: 
> http://www.nabble.com/sun.security.provider-tp24401095p24419054.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>
>



-- 
Cheers,
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/
------------------------
Open Source SOA
http://fusesource.com

Reply via email to