0
votes

I am trying to add jetty client library and use it it one of Bnd OSGi bundle based project. With added libraries Code is comping/building But when I run "Bnd OSGi Run Launcher" I see below error:

could not resolve the bundles: [com.project.examples-2.0.1.201605061319Unresolved constraint in bundle com.project.examples [8]: Unable to resolve 8.0: missing requirement [8.0] osgi.wiring.package; (&(osgi.wiring.package=org.eclipse.jetty.client)(version>=9.3.0)(!(version>=10.0.0))) ]

I have added required jetty client jar file in Java Build path libraries, have also added entry in classpath. Still getting this error.

Thanks for the help

2
Is the Jetty version correct (at least 9.3.0 and less than 10.0.0)?greg-449
my jetty version is jetty-9.3.8.v20160314Ashok

2 Answers

1
votes

You need to install the Jetty Client bundle into your runtime OSGi framework.

From your question, it seems you have only added it to your build path or classpath.

0
votes

If you use OSGi enRoute as a starting point for your application then you can start using the Bndtools resolver. This will make these kind of problems more easier to detect and handle. See the Quick Start tutorial for how to build an app using the resolver.