On 4/22/10 3:20, Charles-Louis De Maere wrote:
On 21/04/2010 15:19, Richard S. Hall wrote:
On 4/21/10 4:55, Charles-Louis De Maere wrote:
Thanks for your answer ! In fact, the org.osgi.core and compendium
bundles were missing from the plugins directory, which caused this
error to occur !
You should likely not be using org.osgi.core or org.osgi.compendium
as bundles, since this generally leads to other issues. You'd be
better off find implementation bundles that also export the needed
packages, e.g., the Felix SCR bundle.
-> richard
What kind of issues could arise with using the osgi bundles instead of
the felix ones ? Do you mean dependency issues ?
The org.osgi.core bundle offers overlapping packages with the system
bundle, which can lead to constraint violations due to the "uses"
constraints among packages. IIRC, compendium doesn't list its
dependencies properly and can lead to various class loading errors if
you use packages that have missing dependencies.
To be clear, I am not saying to use the Felix OSGi bundles either. What
I am saying, is if you need Declarative Services, for example, then you
should find an implementation of DS and get your API from it.
Technically, the issues with the org.osgi.compendium bundle could be
fixed, but org.osgi.core is more problematic (however, you really
shouldn't need this bundle since the framework should provide these APIs).
So this also means that my pom.xml should have the felix-scr bundle
listed as <dependency> instead of the org.osgi.core/compendium ?
No, that need not be the case. They should work okay as compile-time
dependencies, just not as run-time dependencies.
-> richard
Charles-Louis
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@felix.apache.org
For additional commands, e-mail: users-h...@felix.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@felix.apache.org
For additional commands, e-mail: users-h...@felix.apache.org