[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [equinox-dev] Difference in system.packages.extra behaviour between 3.6.2 and 3.7

It sounds like you are running into a change made to the 3.7 Equinox OSGi standard launcher. See https://bugs.eclipse.org/bugs/show_bug.cgi?id=344850 and http://www.eclipse.org/forums/index.php?t=rview&goto=668355#msg_668355

I am assuming you are using the standard OSGi Framework launcher API (e.i. org.osgi.framework.launch.Framework). In 3.7 we changed the equinox default configuration settings to be more in line with the standard OSGi Framework behavior as specified in the OSGi R4.3 core specification. This includes denying access to all non java.* packages from boot for which a bundle does not declare an import for (i.e. Import-Package: com.ibm.CORBA).

To get behavior back to 3.6.2 you can set the following configuration property:

osgi.compatibility.bootdelegation=true

Tom



Inactive hide details for Ben Cox ---09/08/2011 07:18:31 AM---Hi All,Ben Cox ---09/08/2011 07:18:31 AM---Hi All,


From:

Ben Cox <benjamin.cox@xxxxxxxxxx>

To:

equinox-dev@xxxxxxxxxxx

Date:

09/08/2011 07:18 AM

Subject:

[equinox-dev] Difference in system.packages.extra behaviour between 3.6.2 and 3.7




Hi All,

We're being affected by a difference between Equinox 3.6.2 and 3.7, and can't quite work out whether it's caused by a bug fix, a bug being introduced, or a change in the OSGi spec from 4.2 to 4.3.

Our code has been converted to use OSGi and runs purely on IBM JVMs, and as such has dependencies on several IBM-specific packages of the JRE - for example, com.ibm.CORBA.iiop. To ensure these are exported from the JRE by the system bundle, we have added them to the org.osgi.framework.system.packages.extra property.

We have set osgi.java.profile.bootdelegation=override and org.osgi.framework.bundle.parent=app.

The problem is that at Equinox 3.6.2, our bundle is able to load a class from com.ibm.CORBA.iiop without adding it to the Import-Package statement. However, at 3.7, this is not possible. Instead, an Import-Package statement is required (which makes it tricky to compile in PDE...)

Many thanks for your help,
Ben




Unless stated otherwise above:
IBM United Kingdom Limited - Registered in England and Wales with number 741598.
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU





_______________________________________________
equinox-dev mailing list
equinox-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/equinox-dev

GIF image

GIF image