我正在尝试在Karaf 4.2.0中使用Ignite 2.7。我正在使用ignite-core功能,还安装了ignite-osgi片段(与此处https://apacheignite.readme.io/v1.5/docs/osgi-starting-inside-a-container所描述的相似)。
有正常工作与初始安装:
karaf@root()> bundle:list | grep "ignite"
85 │ Active │ 80 │ 2.7.0 │ ignite-core, Fragments: 86
86 │ Resolved │ 80 │ 2.7.0 │ ignite-osgi, Hosts: 85
但是,在Karaf重新启动后,Ignite仍然无法启动,并且我在日志中看到此错误:
org.osgi.framework.BundleException:
Unable to resolve ki-test-core [70](R 70.0):
missing requirement [ki-test-core [70](R 70.0)] osgi.wiring.package; (&(osgi.wiring.package=org.apache.ignite.osgi.classloaders)(version>=2.7.0)(!(version>=3.0.0)))
[caused by: Unable to resolve org.apache.ignite.ignite-osgi [86](R 86.0): missing requirement
[org.apache.ignite.ignite-osgi [86](R 86.0)] osgi.wiring.host; (&(osgi.wiring.host=org.apache.ignite.ignite-core)(bundle-version>=0.0.0))]
Unresolved requirements: [[ki-test-core [70](R 70.0)] osgi.wiring.package; (&(osgi.wiring.package=org.apache.ignite.osgi.classloaders)(version>=2.7.0)(!(version>=3.0.0)))]
片段ignite-osgi似乎找不到其主机ignite-core。在现实束点燃核存在且激活。
karaf@root()> bundle:list | grep "ignite"
85 │ Active │ 80 │ 2.7.0 │ ignite-core
86 │ Installed │ 80 │ 2.7.0 │ ignite-osgi
和,当然,点燃IMDG将不会自动启动。
这是我的虚拟项目,用于显示有关设置和问题的更多详细信息:https://github.com/leshkm/karaf-ignite-test
任何想法,可以防止点燃OSGi的片段可能无法连接到它的主机Karaf重启后?
谢谢!