Karaf 2.2.3 最近发布,终于有一个预捆绑的 spring-jms 功能。为了让生活更轻松,我将它添加到 featuresBoot 配置属性中,并使用其他默认值:
featuresBoot=config,ssh,management,spring-jms
但是,当我启动 Karaf 时,它的行为无法控制。有时它会在启动时安装,有时则不会。当它不自动安装时,我尝试通过命令行添加它:
features:install spring-jms
甚至那行为也很疯狂。见下文:
karaf@root> features:install spring-jms
Error executing command: java.lang.IllegalArgumentException
karaf@root> features:install spring-jms
Error executing command: invalid entry size (expected 3293 but got 16823 bytes)
karaf@root> features:install spring-jms
Error executing command: Manifest not present in the first entry of the zip mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.aopalliance/1.0_5
karaf@root> features:install spring-jms
Refreshing bundles org.springframework.context.support (50)
Error executing command: Could not start bundle mvn:org.eclipse.jetty/jetty-client/7.4.5.v20110725 in feature(s) jetty-7.4.5.v20110725: Unresolved constraint in bundle org.eclipse.jetty.client [83]: Unable to resolve 83.0: missing requirement [83.0] package; (&(package=org.eclipse.jetty.http)(version>=7.4.0)(!(version>=8.0.0)))
karaf@root> features:install spring-jms
Refreshing bundles org.springframework.context.support (50)
这些是安装命令的背靠背执行。最后一次执行有效。
其他人看到这种行为吗?或者知道如何纠正?