L.S.,

Usually, the easiest way to ensure that all your dependencies get
installed correctly, is by defining a feature that defines the bundles
that need to get installed together.  Have a look at
https://karaf.apache.org/manual/latest-2.3.x/users-guide/provisioning.html
for more information about this.

In the case of the jackson dependencies, those are already OSGi
bundles so you can just add them to the features file directly.

If a dependency is not already an OSGi bundle, you have a few options:
- have a look at
http://search.maven.org/#search%7Cga%7C1%7Corg.apache.servicemix.bundles
to see if we already built an OSGi bundle you can use
- use the wrap: protocol to wrap a bundle on the fly - usually, you
can just go with wrap:mvn:group/artifact/version, but you also tweak
this a bit (cfr.
https://ops4j1.jira.com/wiki/display/paxurl/Wrap+Protocol)
- build your own bundles, which is a bit more involved but might be
worth the effort if you're reusing the same bundle over and over again
- you can have a look at the source code for our bundles to get some
inspiration there (cfr.
http://servicemix.apache.org/developers/source/bundles-source.html)


Regards,

Gert Vanthienen


On Mon, Mar 31, 2014 at 4:45 AM, Sana <[email protected]> wrote:
> I figured out the issue. In my pom there was a missing import of the package
> and jackson-jaxrs-json-provider version 2.2.0 was not importing in it's
> MANIFEST.MF com.fasterxml.jackson.jaxrs.base package because the class
> com.fasterxml.jackson.jaxrs.json.JacksonJsonProvider extends abstract class
> com.fasterxml.jackson.jaxrs.base.ProviderBase. Upgrading
> jackson-jaxrs-json-provider version resolves the issue.
>
> Now I have other questions.
>  1. I am using Eclipse Indigo to build my bundle. Is there any recommended
> OSGI plugin for eclipse?
>  2. The dependencies jar, for instance "jackson-jaxrs-json-provider ", I am
> manually copying to deploy dir of servicemix. Is there a way to
> automatically copy the jars to this dir? Is it recommended to copy any
> dependency jar which are not OSGI bundle in deploy dir? Or should I convert
> them to OSGI bundle first?
>
> Appreciate your inputs.
>
> Thanks in advance.
>
>
>
> --
> View this message in context: 
> http://servicemix.396122.n5.nabble.com/Unsatisfied-error-when-deploying-tp5719012p5719761.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to