3.0.2 First run on windows 10 - Unable to resolve root: missing requirement [root] osgi.identity;

download, unzip, run start.bat
get this:

Launching the openHAB runtime…

                       _   _     _     ____

___ ___ ___ ___ | | | | / \ | __ )
/ _ \ / _ \ / _ \ / _ \ | || | / _ \ | _
| (
) | () | __/| | | || _ | / ___ \ | |) )
___/| / _/|| |||| ||// _|__/
|
| 3.0.2 - Release Build

Use ‘’ for a list of available commands
and ‘[cmd] --help’ for help on a specific command.
To exit, use ‘’ or ‘logout’.

openhab> org.apache.felix.resolver.reason.ReasonException: Unable to resolve root: missing requirement [root] osgi.identity; osgi.identity=openhab-runtime-ui; type=karaf.feature; version="[3.0.2,3.0.2]"; filter:="(&(osgi.identity=openhab-runtime-ui)(type=karaf.feature)(version>=3.0.2)(version<=3.0.2))" [caused by: Unable to resolve openhab-runtime-ui/3.0.2: missing requirement [openhab-runtime-ui/3.0.2] osgi.identity; osgi.identity=openhab-core-ui; type=karaf.feature [caused by: Unable to resolve openhab-core-ui/3.0.2: missing requirement [openhab-core-ui/3.0.2] osgi.identity; osgi.identity=openhab-core-base; type=karaf.feature [caused by: Unable to resolve openhab-core-base/3.0.2: missing requirement [openhab-core-base/3.0.2] osgi.identity; osgi.identity=org.openhab.core.automation; type=osgi.bundle; version="[3.0.2,3.0.2]"; resolution:=mandatory [caused by: Unable to resolve org.openhab.core.automation/3.0.2: missing requirement [org.openhab.core.automation/3.0.2] osgi.wiring.package; filter:="(&(osgi.wiring.package=org.openhab.core)(version>=3.0.0)(!(version>=4.0.0)))" [caused by: Unable to resolve org.openhab.core/3.0.2: missing requirement [org.openhab.core/3.0.2] osgi.ee; filter:="(&(osgi.ee=JavaSE)(version=11))"]]]]]
at org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1343)
at org.apache.felix.resolver.ResolverImpl.doResolve(ResolverImpl.java:392)
at org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:378)
at org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:332)
at org.apache.karaf.features.internal.region.SubsystemResolver.resolve(SubsystemResolver.java:257)
at org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:393)
at org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1062)
at org.apache.karaf.features.internal.service.FeaturesServiceImpl.lambda$doProvisionInThread$13(FeaturesServiceImpl.java:998)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: org.apache.felix.resolver.reason.ReasonException: Unable to resolve openhab-runtime-ui/3.0.2: missing requirement [openhab-runtime-ui/3.0.2] osgi.identity; osgi.identity=openhab-core-ui; type=karaf.feature [caused by: Unable to resolve openhab-core-ui/3.0.2: missing requirement [openhab-core-ui/3.0.2] osgi.identity; osgi.identity=openhab-core-base; type=karaf.feature [caused by: Unable to resolve openhab-core-base/3.0.2: missing requirement [openhab-core-base/3.0.2] osgi.identity; osgi.identity=org.openhab.core.automation; type=osgi.bundle; version="[3.0.2,3.0.2]"; resolution:=mandatory [caused by: Unable to resolve org.openhab.core.automation/3.0.2: missing requirement [org.openhab.core.automation/3.0.2] osgi.wiring.package; filter:="(&(osgi.wiring.package=org.openhab.core)(version>=3.0.0)(!(version>=4.0.0)))" [caused by: Unable to resolve org.openhab.core/3.0.2: missing requirement [org.openhab.core/3.0.2] osgi.ee; filter:="(&(osgi.ee=JavaSE)(version=11))"]]]]
at org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1343)
… 12 more
Caused by: org.apache.felix.resolver.reason.ReasonException: Unable to resolve openhab-core-ui/3.0.2: missing requirement [openhab-core-ui/3.0.2] osgi.identity; osgi.identity=openhab-core-base; type=karaf.feature [caused by: Unable to resolve openhab-core-base/3.0.2: missing requirement [openhab-core-base/3.0.2] osgi.identity; osgi.identity=org.openhab.core.automation; type=osgi.bundle; version="[3.0.2,3.0.2]"; resolution:=mandatory [caused by: Unable to resolve org.openhab.core.automation/3.0.2: missing requirement [org.openhab.core.automation/3.0.2] osgi.wiring.package; filter:="(&(osgi.wiring.package=org.openhab.core)(version>=3.0.0)(!(version>=4.0.0)))" [caused by: Unable to resolve org.openhab.core/3.0.2: missing requirement [org.openhab.core/3.0.2] osgi.ee; filter:="(&(osgi.ee=JavaSE)(version=11))"]]]
at org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1343)
… 13 more
Caused by: org.apache.felix.resolver.reason.ReasonException: Unable to resolve openhab-core-base/3.0.2: missing requirement [openhab-core-base/3.0.2] osgi.identity; osgi.identity=org.openhab.core.automation; type=osgi.bundle; version="[3.0.2,3.0.2]"; resolution:=mandatory [caused by: Unable to resolve org.openhab.core.automation/3.0.2: missing requirement [org.openhab.core.automation/3.0.2] osgi.wiring.package; filter:="(&(osgi.wiring.package=org.openhab.core)(version>=3.0.0)(!(version>=4.0.0)))" [caused by: Unable to resolve org.openhab.core/3.0.2: missing requirement [org.openhab.core/3.0.2] osgi.ee; filter:="(&(osgi.ee=JavaSE)(version=11))"]]
at org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1343)
… 14 more
Caused by: org.apache.felix.resolver.reason.ReasonException: Unable to resolve org.openhab.core.automation/3.0.2: missing requirement [org.openhab.core.automation/3.0.2] osgi.wiring.package; filter:="(&(osgi.wiring.package=org.openhab.core)(version>=3.0.0)(!(version>=4.0.0)))" [caused by: Unable to resolve org.openhab.core/3.0.2: missing requirement [org.openhab.core/3.0.2] osgi.ee; filter:="(&(osgi.ee=JavaSE)(version=11))"]
at org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1343)
… 15 more
Caused by: org.apache.felix.resolver.reason.ReasonException: Unable to resolve org.openhab.core/3.0.2: missing requirement [org.openhab.core/3.0.2] osgi.ee; filter:="(&(osgi.ee=JavaSE)(version=11))"
at org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1343)
… 16 more
openhab>

and there is nothing on localhost:8080
What I have to do to force it to work?

Just a thought… have you installed the correct version of Java and checked environment variables are correct?

i have installed zulu java 11.
first 64 bit and run openhab then.
second 32 bit java and run openhab then.
I have got the same result - “missing requirement [org.openhab.core/3.0.2] osgi.ee; filter:=”(&(osgi.ee=JavaSE)(version=11))"]"

its very strange that fresh install cant be run.

I have to create and set JAVA_HOME variable manually, after that only it starts to work.

2 Likes

You have to set the environment variable using the settings system tools.