2008/10/9 Oleg Zhurakousky <[EMAIL PROTECTED]>

> Thanks guys!!!Looks like starting Equinox under Eclipse makes the
> difference, although I can't see what that would be (checked generated
> config.ini etc. . . nothing suspicious)
>

when starting under Eclipse/PDE I believe the following adaptor hook is
used:


http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.osgi/eclipseAdaptor/src/org/eclipse/core/runtime/internal/adaptor/EclipseAdaptorHook.java?revision=1.7

and the addProperties() method of this class will programmatically enable
boot delegation if it's not explicitly set in the config...


> Starting the same system bundle from the command line renders the expected
> results:
>
> > java -Dorg.osgi.framework.bootdelegation=org.w3c.* -jar
> org.eclipse.osgi_3.4.2.R34x_v20080826-1230.jar -console -clean
>
> osgi>ss
> id State       Bundle
> 0 ACTIVE      org.eclipse.osgi_3.4.2.R34x_v20080826-1230
> 1 INSTALLED     OSGiBootDelegationBundle_1.0.0
>
> osgi> start 1
> class java.lang.String
> interface org.w3c.dom.Attr
>
> If bootdelegation option is removed CNFE is thrown during start of the
> bundle
>
> Thx
> Oleg
>
> On Oct 8, 2008, at 12:57 PM, Stuart McCulloch wrote:
>
> 2008/10/9 Oleg Zhurakousky <[EMAIL PROTECTED]>
>
>> Nice to find you here Rob
>> Yes I am certain (here are all the options that are set)
>> -Declipse.ignoreApp=true
>> -Dosgi.noShutdown=true
>> -Dosgi.clean=true
>>
>> One thing I will admit that I am running Equinox within eclipse pde. I'll
>> try from the command line (not sure if it would make the difference)
>>
>
> see also:  http://wiki.eclipse.org/Equinox_Boot_Delegation
> (IIRC Equinox doesn't run in "strict" OSGi mode by default...)
>
>
>> Oleg
>>
>> On Oct 8, 2008, at 12:36 PM, Rob Harrop wrote:
>>
>> Oleg,
>>
>> Are you certain that the Equinox you are running in doesn't have the boot
>> delegation set to include org.w3c.*?
>>
>> Rob
>>
>> ----- "Oleg Zhurakousky" <[EMAIL PROTECTED]> wrote:
>>
>> If I am reading the spec correctly only java.* are loaded from the
>>
>> boot class path. All other packages must be declared
>>
>> with explicit imports.
>>
>> So something like this without
>>
>> specifying org.osgi.framework.bootdelegation=org.w3c.*
>>
>>
>>
>> public   void  start(BundleContext context)  throws  Exception {
>>
>> System. out .println(Class.forName( "java.lang.String" ));
>>
>> System. out .println(Class.forName( "org.w3c.dom.Attr" ));
>>
>> }
>>
>> should result in CNFE on the second line.
>>
>>
>>
>> Well, it actually works just fine without bootdelegation option. I
>>
>> figured I missed something, so may be some one can steer me in the
>>
>> right direction.
>>
>> Cheers
>>
>> Oleg
>>
>> _______________________________________________
>>
>> equinox-dev mailing list
>>
>> [email protected]
>>
>> https://dev.eclipse.org/mailman/listinfo/equinox-dev
>>
>>
>> --
>> Rob Harrop
>> SpringSource
>>
>> Registered in England & Wales - Registration Number 5187766
>> Registered Office: A2 Yeoman Gate, Yeoman Way, Worthing, West Sussex, BN13
>> 3QZ, UK
>>
>> This e-mail and any attachments transmitted with it are strictly
>> confidential and intended solely for the person or entity to whom they are
>> addressed. Unauthorised use, copying, disclosure or distribution is
>> prohibited. If you receive this e-mail in error please notify the sender
>> immediately and then delete it along with any attachments. E-mails should be
>> checked by the recipient to ensure that there are no viruses and Interface21
>> does not accept any responsibility if this is not done. Any views or
>> opinions presented are solely those of the author and do not necessarily
>> represent those of Interface21.
>> _______________________________________________
>> equinox-dev mailing list
>> [email protected]
>> https://dev.eclipse.org/mailman/listinfo/equinox-dev
>>
>>
>>
>> _______________________________________________
>> equinox-dev mailing list
>> [email protected]
>> https://dev.eclipse.org/mailman/listinfo/equinox-dev
>>
>>
>
>
> --
> Cheers, Stuart
>  _______________________________________________
> equinox-dev mailing list
> [email protected]
> https://dev.eclipse.org/mailman/listinfo/equinox-dev
>
>
>
> _______________________________________________
> equinox-dev mailing list
> [email protected]
> https://dev.eclipse.org/mailman/listinfo/equinox-dev
>
>


-- 
Cheers, Stuart
_______________________________________________
equinox-dev mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/equinox-dev

Reply via email to