marvkis / org.openhab.binding.bosesoundtouch-dist

precompiled packages for the openHAB2 Bose SoundTouch binding
Eclipse Public License 1.0
0 stars 2 forks source link

Jar File not found in adding #1

Open Salve87 opened 6 years ago

Salve87 commented 6 years ago

Hey Guys, maybe you can help me. I tried adding the .jar File zu the addons. Openhab2 PaperUI just doesn't show the Binding. I tried same with the 2.0.0 version and the Binding shows up. Am I doing something wrong?

Cheers

marvkis commented 6 years ago

Hi, Which OH version do you have? Is it the 2.2 release or the 2.3 devel? On the latest 2.3 devel version's i have seen issues that required dependencies are not resolved properly (the jetty websocket client libs and other jetty packages). You'll see some stacktraces complaining about those missing libs...

messages look like:

org.osgi.framework.BundleException: Could not resolve module: org.openhab.binding.bosesoundtouch [236]
  Unresolved requirement: Import-Package: org.eclipse.jetty.websocket.client

on my devel setup a

feature:install openhab-httpclient

resolved the issue - now all dependencies are available and the plugin works again...

If you have any logs related to the problem you could attach it to this ticket.

Cheers

Salve87 commented 6 years ago

Hey, i‘m using 2.3.0 Build 1231. I am very new to OH. I didn‘t get any response from OH. How can i check that?

Thanks dir the great work

Daniel

marvkis commented 6 years ago

Hi Daniel,

usually there is a log file in userdata/logs/openhab.log - but it might vary depending on your installation (os used / prepackaged packages / manually installed / ...) Just look for the openhab.log file.

For OH 2.3 i've uploaded a new .jar file yesterday - please also have a look at #2

And thank you for the compliments ;)

Cheers, Chris

Salve87 commented 6 years ago

Ok i checked my logfile. I found following note:

2018-04-05 15:56:41.317 [WARN ] [org.apache.felix.fileinstall ] - Error while starting bundle: file:/volume1/homes/openhab/addons/org.openhab.binding.bosesoundtouch-2.3.0-SNAPSHOT.jar org.osgi.framework.BundleException: Could not resolve module: org.openhab.binding.bosesoundtouch [259] Unresolved requirement: Import-Package: org.eclipse.jetty.websocket.client

at org.eclipse.osgi.container.Module.start(Module.java:444) [?:?]
at org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:383) [?:?]
at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundle(DirectoryWatcher.java:1260) [9:org.apache.felix.fileinstall:3.6.4]
at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundles(DirectoryWatcher.java:1233) [9:org.apache.felix.fileinstall:3.6.4]
at org.apache.felix.fileinstall.internal.DirectoryWatcher.doProcess(DirectoryWatcher.java:520) [9:org.apache.felix.fileinstall:3.6.4]
at org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:365) [9:org.apache.felix.fileinstall:3.6.4]
at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:316) [9:org.apache.felix.fileinstall:3.6.4]

Can you help me? Whats is going wrong? Thanks alot

marvkis commented 6 years ago

Hi Daniel,

The message

Unresolved requirement: Import-Package: org.eclipse.jetty.websocket.client indicates exactly the dependency issue. You have to install the openhab-httpclient feature which installs all the dependencies the bose plugin needs. Just type

feature:install openhab-httpclient

on the OH console to install the feature - then the Bose plugin will start working as excpected.

Cheers, Chris

Salve87 commented 6 years ago

Hello Chris, Thanks for the reply. I will do that as soon as i am at home. I have the http Binding installed. Isn‘t that enough?

Thanks for the help. Best regards Daniel