You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by TheWinch <vi...@thalesgroup.com> on 2009/07/20 17:06:49 UTC

[SMX4] What bundle does export the client API ???

Hi,

Maybe my question is stupid, but here is my problem.

I have a bean installed from an OSGi bundle. This bean needs to talk to the
NMR, and I am using the ServiceMix Client API to do this. I have the
following dependency in my pom.xml:

    org.apache.servicemix/servicemix-core (3.3.1, jar, compile)

I have also imported the following packages in my bundle:

    org.apache.servicemix.client

But when I start my bundle, I get the following error:

    ERROR CommandLineExecutionFailed:
org.apache.geronimo.gshell.command.CommandException: org.osgi.fram
    ework.BundleException: Unresolved constraint in bundle 177: package;
(package=org.apache.servicemix.
    client)

It seems that the package is not exported by any bundle ??? So how am I
supposed to access the client API ?

Thanks for your answers
-- 
View this message in context: http://www.nabble.com/-SMX4--What-bundle-does-export-the-client-API-----tp24571548p24571548.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: [SMX4] What bundle does export the client API ???

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi,

you have right, I can't see any bundles exporting the ServiceMix client 
API (in smx bundles or nmr bundle).

Nevertheless, you can try to stick the client API in your bundle 
classpath using something like:
<Embed-Dependency>servicemix-core;scope=compile</Embed-Dependency>
or
<Bundle-Classpath>servicemix-core.jar</Bundle-Classpath>

Regards
JB

TheWinch wrote:
> Hi,
> 
> Maybe my question is stupid, but here is my problem.
> 
> I have a bean installed from an OSGi bundle. This bean needs to talk to the
> NMR, and I am using the ServiceMix Client API to do this. I have the
> following dependency in my pom.xml:
> 
>     org.apache.servicemix/servicemix-core (3.3.1, jar, compile)
> 
> I have also imported the following packages in my bundle:
> 
>     org.apache.servicemix.client
> 
> But when I start my bundle, I get the following error:
> 
>     ERROR CommandLineExecutionFailed:
> org.apache.geronimo.gshell.command.CommandException: org.osgi.fram
>     ework.BundleException: Unresolved constraint in bundle 177: package;
> (package=org.apache.servicemix.
>     client)
> 
> It seems that the package is not exported by any bundle ??? So how am I
> supposed to access the client API ?
> 
> Thanks for your answers