You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by di...@capgemini-sdm.com on 2009/06/16 09:18:37 UTC

Question about CXF and OSGi

Hi there,

I recently tried to run the all in one bundle of CXF on Equinox and I got the following error:
org.osgi.framework.BundleException: The bundle could not be resolved. Reason: Missing Constraint: Import-Package: org.osgi.framework.hooks.service; version="0.0.0"
	at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:305)
	at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:265)
	at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:257)
	at org.eclipse.osgi.framework.internal.core.FrameworkCommandProvider._start(FrameworkCommandProvider.java:257)

Does anybody knows about this error? What does this Hooks in OSGi?

I also installed the bundle in Felix and it is running without problems.

Best regards,

Omar Diego Vera Ustariz

Re: Question about CXF and OSGi

Posted by David Bosschaert <da...@gmail.com>.
Hi Diego,

You probably installed the CXF Distributed OSGi bundles. They depend
on the new OSGi framework hooks. As you found out, the latest version
of Felix is fine. For Equinox you need 3.5, as these aren't in 3.4. If
you want to use Equinox, the best thing to do would be to get the
latest beta of 3.5, it should be GA soon.

The cxf-minimal bundle (which doesn't contain Distributed OSGi) should
not have this dependency though...

Hope this helps,

David

2009/6/16  <di...@capgemini-sdm.com>:
> Hi there,
>
> I recently tried to run the all in one bundle of CXF on Equinox and I got the following error:
> org.osgi.framework.BundleException: The bundle could not be resolved. Reason: Missing Constraint: Import-Package: org.osgi.framework.hooks.service; version="0.0.0"
>        at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:305)
>        at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:265)
>        at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:257)
>        at org.eclipse.osgi.framework.internal.core.FrameworkCommandProvider._start(FrameworkCommandProvider.java:257)
>
> Does anybody knows about this error? What does this Hooks in OSGi?
>
> I also installed the bundle in Felix and it is running without problems.
>
> Best regards,
>
> Omar Diego Vera Ustariz
>