To specify a version in a Require-Bundle header an (OSGi standard) attribute bundle-version is needed.
<code> Require-Bundle: bar;bundle-version=" x.y.z,x.y.z" </code>
The attribute is spelled bundle-version= rather than version= as used with Import-Package. A misspelled attribute can show the following error:
<code>
Resolver report: A Require-Bundle could not be resolved. Caused by missing constraint in bundle <foo_1.0.0> constraint: <Require-Bundle: bar; bundle-version="0.0.0">
</code>
If a required bundle cannot be resolved check the spelling of the attribute as well as the location of the required bundle.
![]() |
![]() |
![]() |
Why is there both a config and a configuration directory? | What's the difference between Virgo Server for Apache Tomcat and Virgo Jetty Server? |