>>>>> Steinar Bang <[email protected]>:

>>> The feature installation fails with an error message:
>>> karaf@root()> feature:install ukelonn-db-postgresql
>>> Error executing command: Unable to resolve root: missing requirement [root] 
>>> osgi.identity; osgi.identity=ukelonn-db-postgresql; type=karaf.feature; 
>>> version="[1.0.0.SNAPSHOT,1.0.0.SNAPSHOT]"; 
>>> filter:="(&(osgi.identity=ukelonn-db-postgresql)(type=karaf.feature)(version>=1.0.0.SNAPSHOT)(version<=1.0.0.SNAPSHOT))"
>>>  [caused by: Unable to resolve ukelonn-db-postgresql/1.0.0.SNAPSHOT: 
>>> missing requirement [ukelonn-db-postgresql/1.0.0.SNAPSHOT] osgi.identity; 
>>> osgi.identity=no.priv.bang.ukelonn.postgresql.db; type=osgi.bundle; 
>>> version="[1.0.0.SNAPSHOT,1.0.0.SNAPSHOT]"; resolution:=mandatory [caused 
>>> by: Unable to resolve no.priv.bang.ukelonn.postgresql.db/1.0.0.SNAPSHOT: 
>>> missing requirement [no.priv.bang.ukelonn.postgresql.db/1.0.0.SNAPSHOT] 
>>> osgi.ee; filter:="(&(osgi.ee=JavaSE)(version=1.8))"]]

I figured it out: for some reason openjdk-7-jre had been installed, and
"java -version", said:
 root@cadalora:/home/karaf# java -version
 java version "1.7.0_121"
 OpenJDK Runtime Environment (IcedTea 2.6.8) (7u121-2.6.8-2~deb8u1)
 OpenJDK 64-Bit Server VM (build 24.121-b00, mixed mode)

I removed jre-7:
 apt-get remove openjdk-7-jre:amd64 openjdk-7-jre-headless:amd64

I stopped and started the karaf service, to make it run with java 8:
 systemctl stop karaf
 systemctl start karaf

I then logged in to the console with:
 ssh -p 8101 karaf@localhost
and this time my features installed without a hitch.

Reply via email to