I'm using Apache Karaf 4.0.4 with Java Oracle 8 and trying to install the camel-websocket
component. I've tried installing both versions 2.16.0 and 2.16.2 via:
feature:install camel-websocket
... and Karaf hangs and never returns.
As a work around I tried to run:
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
To manually install via Karaf's hot deploy then I get the following:
karaf@root()> ERROR: Bundle org.apache.camel.camel-websocket [94] Error starting file:/opt/apache-karaf-4.0.4/deploy/camel-websocket-2.16.2.jar (org.osgi.framework.BundleException: Unable to resolve org.apache.camel.camel-websocket [94](R 94.0): missing requirement [org.apache.camel.camel-websocket [94](R 94.0)] osgi.wiring.package; (&(osgi.wiring.package=javax.servlet)(version>=2.6.0)(!(version>=3.0.0))) Unresolved requirements: [[org.apache.camel.camel-websocket [94](R 94.0)] osgi.wiring.package; (&(osgi.wiring.package=javax.servlet)(version>=2.6.0)(!(version>=3.0.0)))])
org.osgi.framework.BundleException: Unable to resolve org.apache.camel.camel-websocket [94](R 94.0): missing requirement [org.apache.camel.camel-websocket [94](R 94.0)] osgi.wiring.package; (&(osgi.wiring.package=javax.servlet)(version>=2.6.0)(!(version>=3.0.0))) Unresolved requirements: [[org.apache.camel.camel-websocket [94](R 94.0)] osgi.wiring.package; (&(osgi.wiring.package=javax.servlet)(version>=2.6.0)(!(version>=3.0.0)))]
at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4111)
at org.apache.felix.framework.Felix.startBundle(Felix.java:2117)
at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1371)
at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:308)
at java.lang.Thread.run(Thread.java:745)
I did find that when I turned on debugging in Karaf (i.e. log:set DEBUG) I saw the following error:
2016-03-10 14:54:08,127 | INFO | nsole user karaf | FeaturesServiceImpl | 9 - org.apache.karaf.features.core - 4.0.4 | Adding features: camel-websocket/[2.16.2,2.16.2]
2016-03-10 14:54:08,131 | DEBUG | pool-25-thread-1 | configadmin | 7 - org.apache.felix.configadmin - 1.8.8 | getProperties()
2016-03-10 14:54:08,148 | DEBUG | pool-25-thread-1 | Overrides | 9 - org.apache.karaf.features.core - 4.0.4 | Unable to load overrides bundles list
java.io.FileNotFoundException: /opt/apache-karaf-4.0.4/etc/overrides.properties (No such file or directory)
at java.io.FileInputStream.open0(Native Method)[:1.8.0_73]
at java.io.FileInputStream.open(FileInputStream.java:195)[:1.8.0_73
Has anyone run into this issue? Any workarounds? How can I install javax.servlet manually?
feature install camel-websocket
straight from the karaf console? – Subinfeudate