Camel Websocket组件无法安装到Karaf

时间:2016-03-10 13:56:01

标签: java apache apache-camel apache-karaf

我正在使用Apache Karaf 4.0.4和Java Oracle 8并尝试安装camel-websocket组件。我尝试通过以下方式安装2.16.0和2.16.2版本:

feature:install camel-websocket

......卡拉夫挂了,永远不会回来。

作为一种解决方法,我试图运行:

sudo wget -O /opt/apache-karaf-4.0.4/deploy/camel-websocket-2.16.2.jar http://central.maven.org/maven2/org/apache/camel/camel-websocket/2.16.2/camel-websocket-2.16.2.jar

要通过Karaf的热部署手动安装,我会得到以下内容:

  

karaf @根()>错误:Bundle org.apache.camel.camel-websocket [94]启动文件时出错:/opt/apache-karaf-4.0.4/deploy/camel-websocket-2.16.2.jar(org.osgi.framework.BundleException:无法解析org.apache.camel.camel-websocket [94](R 94.0):缺少要求[org.apache.camel.camel-websocket [94](R 94.0)] osgi.wiring.package;(&( osgi.wiring.package = javax.servlet)(版本> = 2.6.0)(!(版本> = 3.0.0)))未解决的要求:[[org.apache.camel.camel-websocket [94](R 94.0) )] osgi.wiring.package;(&(osgi.wiring.package = javax.servlet)(版本> = 2.6.0)(!(版本> = 3.0.0)))])   org.osgi.framework.BundleException:无法解析org.apache.camel.camel-websocket [94](R 94.0):缺少需求[org.apache.camel.camel-websocket [94](R 94.0)] osgi。 wiring.package; (&(osgi.wiring.package = javax.servlet)(版本> = 2.6.0)(!(版本> = 3.0.0)))未解决的要求:[[org.apache.camel.camel-websocket [94 ](R 94.0)] osgi.wiring.package; (及(osgi.wiring.package =的javax.servlet)(版本> = 2.6.0)((版本>!= 3.0.0)))]       在org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4111)       在org.apache.felix.framework.Felix.startBundle(Felix.java:2117)       在org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1371)       在org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:308)       在java.lang.Thread.run(Thread.java:745)

我确实发现当我打开Karaf中的调试(即log:set DEBUG)时,我看到以下错误:

  

2016-03-10 14:54:08,127 |信息| nsole用户karaf | FeaturesServiceImpl | 9 - org.apache.karaf.features.core - 4.0.4 |添加功能:camel-websocket / [2.16.2,2.16.2]   2016-03-10 14:54:08,131 |调试| pool-25-thread-1 | configadmin | 7 - org.apache.felix.configadmin - 1.8.8 |的GetProperties()   2016-03-10 14:54:08,148 |调试| pool-25-thread-1 |覆盖| 9 - org.apache.karaf.features.core - 4.0.4 |无法加载覆盖包列表   java.io.FileNotFoundException:/opt/apache-karaf-4.0.4/etc/overrides.properties(没有这样的文件或目录)       at java.io.FileInputStream.open0(Native Method)[:1.8.0_73]       在java.io.FileInputStream.open(FileInputStream.java:195)[:1.8.0_73

有没有人遇到过这个问题?任何解决方法?如何手动安装javax.servlet?谢谢!

1 个答案:

答案 0 :(得分:0)

此问题已通过CAMEL-9689在Apache Camel 2.18.0中修复。

相关的提交:https://github.com/apache/camel/commit/e42ef725cd2d6dd09ebfaf24b0ead6b2fa393174