问题描述
- 去掉osgi-framework对bundle版本的检查
-
在有一个用JAVA SE1.7编译出来的bundle
当框架启动时报错
org.osgi.framework.BundleException: Unable to resolve com.chinatelecom.all.smart
gateway.ZService-OSGi 2: missing requirement [com.chinatelecom.all.smar
tgateway.ZService-OSGi 2] osgi.ee; (&(osgi.ee=JavaSE)(version=1.7)) Unr
esolved requirements: [[com.chinatelecom.all.smartgateway.ZService-OSGi 2] osgi.ee; (&(osgi.ee=JavaSE)(version=1.7))]
要求是bundle不能改动,从框架中找到check requirement的点,跳掉看是否可以正常加载JAVA SE1.7编译出来的bundle,要做出可以配置的方式(conf里面的配置)
时间: 2024-12-21 08:57:39