Unresolved Requirement : Import Package : "com.sun.jersey..."

I am attempting to load z-wave, but have not had luck there. I have taken it back a step or two to try and get a clean working environment. I have uninstalled the z-wave binding.

While checking the logs both before and after, I notice that I am getting 3 instances of “Unresolved Requirement: Import package”, with 3 variations of the package “com.sun.jersey”:

com.sun.jersey.api.json
com.sun.jersey.core.header
com.sun.jersey.client

I searched the Maven repository and found the JAR for Jersey Client, 1.19 and 1.19.4. I am unsure if this is needed or if it is exactly the JAR, but it would make sense.

In any case, I have attempted various directories for the placement of this JAR to resolve the issue, and the error remains the same. (Starting with “addon” and then attempting a couple others within the “runtime” area, but to no avail.

PERHAPS this JAR is not the answer and there is something else missing. I am unsure. My Philips Hue lights are working and the Basic and Paper UIs are installed and working. My goal is to get the Z-wave working, but this may (or may not) be standing in the way).

Any help is appreciated.

The log contents is listed below:

2017-08-03 10:55:18.002 [ERROR] [org.openhab.io.habmin               ] - FrameworkEvent ERROR - org.openhab.io.habmin
org.osgi.framework.BundleException: Could not resolve module: org.openhab.io.habmin [192]
  Unresolved requirement: Import-Package: com.sun.jersey.api.json

	at org.eclipse.osgi.container.Module.start(Module.java:434)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1582)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1561)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1533)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1476)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
2017-08-03 10:55:19.656 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'default.items'
2017-08-03 10:55:20.551 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'default.sitemap'
2017-08-03 10:55:21.046 [INFO ] [.dashboard.internal.DashboardService] - Started dashboard at http://192.168.1.11:8080
2017-08-03 10:55:21.047 [INFO ] [.dashboard.internal.DashboardService] - Started dashboard at https://192.168.1.11:8443
2017-08-03 10:55:21.124 [INFO ] [basic.internal.servlet.WebAppServlet] - Started Basic UI at /basicui/app
2017-08-03 10:55:21.138 [INFO ] [arthome.ui.paper.internal.PaperUIApp] - Started Paper UI at /paperui
2017-08-03 10:55:21.153 [INFO ] [panel.internal.HABPanelDashboardTile] - Started HABPanel at /habpanel
2017-08-03 10:55:21.215 [ERROR] [com.sun.jersey.client               ] - FrameworkEvent ERROR - com.sun.jersey.client
org.osgi.framework.BundleException: Could not resolve module: com.sun.jersey.client [197]
  Unresolved requirement: Import-Package: com.sun.jersey.core.header; version="[1.19.0,2.0.0)"

	at org.eclipse.osgi.container.Module.start(Module.java:434)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1582)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1562)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1533)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1476)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
2017-08-03 10:55:21.216 [ERROR] [com.sun.jersey.client               ] - FrameworkEvent ERROR - com.sun.jersey.client
org.osgi.framework.BundleException: Could not resolve module: com.sun.jersey.client [198]
  Unresolved requirement: Import-Package: com.sun.jersey.core.header; version="[1.19.0,2.0.0)"

	at org.eclipse.osgi.container.Module.start(Module.java:434)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1582)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1562)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1533)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1476)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
2017-08-03 10:55:26.204 [WARN ] [ore.internal.events.OSGiEventManager] - Dispatching event to subscriber 'org.eclipse.smarthome.core.thing.link.ThingLinkManager@23bdaaa0' takes more than 5000ms.

I don’t think this should be related to ZWave at all - for sure it’s not trying to use jersey.

This looks like the wrong package name. My guess is that you are trying to run an old version of HABmin (ie HABmin V1)? How have you installed the UI ?

I have attempted to. I was following the instructions, but some of the links on the instruction page are dead now, so I was searching for items on my own. The habmin I did attempt to install is:

org.openhab.ui.habmin-2.1.0

But I moved it for the time being, while I look for any inconsistencies.

So you have the OH2 HABmin, but something is looking for OH1 (as I mentioned earlier - the package is different). From memory, the OH1 ZWave binding probably requires HABmin1 - are you running the OH2 ZWave binding, or the OH1 binding?

I’ve never seen this page - I don’t know who wrote this, but I wouldn’t call it the “instructions”. To install HABmin, or the ZWave binding, you should simply install them through PaperUI extensions option.

Since this install is 3 days old, I used the bindings from the Paper UI. The Zwave there is listed as 2.1.0.

Ok, then I don’t know why it’s trying to install or load HABmin1 - sorry.

Not a problem at all. The “instructions” are from the tutorial and it is obvious before the Habadmin was part of the installation process. I have used that as you explained (thank you). and it now appears and I can continue.

Thank you again for your help; this got me passed the issue.