Hi, thanks that all looked promising.

Unfortunately if I set osgi.compatibility.bootdelegation=false in the config
ini for the standalone build my application never gets anywhere because none
of the bundles specified in osgi.bundles get started. I suspect a
NoClassDefFound exception breaks the launcher or one of the early eclipse
bundle startups somewhere but I haven't found this yet.

Within eclipse (when I get it to break) If I apply the same property setting
in the run configuration I get NoClassDefFound errors from code in the
org.eclipse.osgi packages.

http://wiki.eclipse.org/index.php/Equinox_Boot_Delegation  is fairly
informative but I think I've followed it's advice. My bundle imports
org.xml.sax by package (from the xalan bundle). It also imports the
org.osgi.framework, org.osgi.service.event and
org.osgi.service.metatypepackages but that shouldn't cause the wrong
packages to get imported. I've
tried importing every package in the xalan bundle in addition to the
org.xml.sax package actually referenced in my code but it doesn't seem to
make any difference.

Setting org.osgi.framework.bootdelegation=false has no effect that I can
discern.

Thanks
MikeG


On 30/01/2008, Thomas Watson <[EMAIL PROTECTED]> wrote:
>
> One small correction.
>
> In Eclipse 3.3 the org.osgi.framework.bootdelegation property is *not* set
> by default. Unfortunately Eclipse still needs to give boot access by default
> to reduce the amount of compatibility issues with previous versions of
> Eclipse (and OSGi R3) where everything from boot came for free. To do this
> there is a compatibility options osgi.compatibility.bootdelegation which
> is set to true by default. This option does a search boot last when enabled.
> Try setting this property to false either as a java system property (-
> Dosgi.compatibility.bootdelegation=false) or by setting
> osgi.compatibility.bootdelegation=false in your config.ini.
>
> Tom
>
>
>
> [image: Inactive hide details for Niclas Hedhman ---01/30/2008 06:47:37
> AM---On Wednesday 30 January 2008 18:09, Mike Gould wrote:]Niclas Hedhman
> ---01/30/2008 06:47:37 AM---On Wednesday 30 January 2008 18:09, Mike Gould
> wrote:
>
>
> From:
> Niclas Hedhman <[EMAIL PROTECTED]>
> To:
> [EMAIL PROTECTED], OSGi Developer Mail List <[email protected]>
> Date:
> 01/30/2008 06:47 AM
> Subject:
> Re: [osgi-dev] Problem using xalan and endorsed extensions clash
> ------------------------------
>
>
>
> On Wednesday 30 January 2008 18:09, Mike Gould wrote:
> > Any light anyone can cast on this would be appreciated I'm at a
> > complete loss now.
>
> I would suspect that the default boot delegation is at work here, since
> that
> is default "on" in Equinox.
> Try to set org.osgi.framework.bootdelegation=false, probably in config.ini
> (not very good with Eclipse)
>
>
> Cheers
> --
> Niclas Hedhman, Software Developer
>
> I  live here; http://tinyurl.com/2qq9er
> I  work here; http://tinyurl.com/2ymelc
> I relax here; http://tinyurl.com/2cgsug
>
> _______________________________________________
> OSGi Developer Mail List
> [email protected]
> http://www2.osgi.org/mailman/listinfo/osgi-dev
>
>
> _______________________________________________
> OSGi Developer Mail List
> [email protected]
> http://www2.osgi.org/mailman/listinfo/osgi-dev
>
>


-- 
- MikeG
_______________________________________________
OSGi Developer Mail List
[email protected]
http://www2.osgi.org/mailman/listinfo/osgi-dev

Reply via email to