Unresolved constraint in bundle, missing requirement osgi.wiring.package

断了今生、忘了曾经 提交于 2019-12-04 06:38:14

Do you have this bundle installed in your container (Felix) as well?

     <dependency>
        <groupId>org.hibernate</groupId>
        <artifactId>hibernate</artifactId>
        <version>3.2.6.ga</version>
    </dependency>

If not install it and then see what happens when you start your bundle.

For missing requirement [Bundle-number] osgi.wiring.package, I added it as export-package in pom.xml, as mentioned below:

<Export-Package>
package for which error is thrown
</Export-Package>

and it worked. So if it throws the above error even after declaring it as dependency, export-package may help

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!