Modify existing binding

Hi,

I have modified the xmpp binding but get some error when adding the compiled jar file to the addon folder. Even if i drop the original xmpp binding into the addon folder the same error occures…what could be wrong?

I’ve moved your question into the right category, but for sure you need to provide a lot more information yourself first, such as what you actually modified.
And no more screenshots, please.

I would like to add the Xmpp pingManager component to the xmpp binding because right now the binding gets idle after some amount of time. I hope, when implementing the PingManager the connection stays open. I have downloaded the XMPP binding from github and installed the Eclipse IDE builder on a windows platform. Modified the Java code and rebuild the jar file succesfully, then i have uploaded the jar to the addon folder on my running openhab machine (Ubuntu) with openhab version 4.3.0. When starting I get the error message “FrameworkEvent Error” could not resolve module…

To check if the error is related to the modified binding i have placed the original jar file from openhab in the addon folder… the same error occures… so, maybe i start with a malfunctioning source code??

Where/How can i see where it goes wrong?

It looks like the binding has a dependency towards a library that isn’t installed on your OH-instance. When installing bindings including in the distribution this usually works automatically, but not when installing manually via the addons folder. Can you install the original binding via the UI? After that you should be able to “upgrade” to your version by dropping it in the addons folder (or run bundle:update in the console), and the library should be present.

You can also drop the dependency library’s into your add on folder. I must say xmpp is not the most simple binding regarding dependency’s.