does not work: log:
19:15:00.404 [WARN ] [org.apache.felix.fileinstall ] - Error while starting bundle: file:/OH/addons/org.openhab.ui.habmin_2.0.0.SNAPSHOT-0.0.15.jar
org.osgi.framework.BundleException: Could not resolve module: org.openhab.ui.habmin [172]
Unresolved requirement: Require-Bundle: javax.servlet
at org.eclipse.osgi.container.Module.start(Module.java:434)[org.eclipse.osgi-3.10.2.v20150203-1939.jar:]
at org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:393)[org.eclipse.osgi-3.10.2.v20150203-1939.jar:]
at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundle(DirectoryWatcher.java:1245)[8:org.apache.felix.fileinstall:3.5.0]
at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundles(DirectoryWatcher.java:1217)[8:org.apache.felix.fileinstall:3.5.0]
at org.apache.felix.fileinstall.internal.DirectoryWatcher.startAllBundles(DirectoryWatcher.java:1207)[8:org.apache.felix.fileinstall:3.5.0]
at org.apache.felix.fileinstall.internal.DirectoryWatcher.doProcess(DirectoryWatcher.java:504)[8:org.apache.felix.fileinstall:3.5.0]
at org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:358)[8:org.apache.felix.fileinstall:3.5.0]
at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:310)[8:org.apache.felix.fileinstall:3.5.0]
Probably best to report directly at https://github.com/cdjackson/habmin2/issues @chris: Apache Karaf is more strict on package-imports and according to OSGi specs, all javax.* that are used have to be declared.
Once I rebuilt the binding and deployed it to the new OH2 it works as expected. I assume if you add javax.servlet instead of the javax.xml.bind it should work for you also.
@kai in my instance, the class/package was used in the library that was included in the binding, and not directly in the binding code and so this won’t always be easy to know what needs to be the import section.
You are right, I had this issue in many other cases as well. But it does not make a difference: Your bundle requires the package, so it has to be declared…
Yeah I had a chance to test this last night as well. Can confirm zwave devices work and habmin loads.
I do not see an option to see the zwave network though in habmin. Is this function not working yet in habmin2 on OH2? If not, that’s understandable, just want to be sure.
Hmmm - you are using a really old version of HABmin - about 9 months old. This version isn’t compatible (as you have found ) with latest versions of OH2. Once Karaf was introduced, dependancies changed…
I’d suggest updating to a new version - hopefully you’ll have better luck.
If you’re taking a file and putting it in the addons folder, this CAN work, but it’s not uncommon for Karaf to keep old versions so you need to be careful and check in Karaf. From the Karaf list you showed above, the version is from June last year (201506192315).
I was able to get it working!! As written in post 41 by @laohixdxm2016 the regular download (snapshot in the working folder) from github is incomplete and therefore one fails to get it running. Only clicking the raw download works…