Search code examples
ldaposgiapache-karafapache-servicemix

Using apache directory ldap in Servicemix


I have an osgi application running on Servicemix 6. I added some code that uses apache directory for ldap lookups (org.apache.directory.api.ldap).

I got an error when deploying the app in Servicemix:

 Unresolved constraint...
 (osgi.wiring.package=org.apache.directory.api.ldap.model.cursor)

Can I use this apache lib in Servicemix? How can I import it?

Or, should I use some other lib?


Solution

  • I ran this command, which I think wraps my dependency as osgi-compatible.

     bundle:install -s wrap:mvn:org.apache.directory.api/api-all/1.0.0-M33