I added a feature to the mcp23017-binding and want to test it now on my local raspi/openhabian.
I build the jar from the modified source with maven
mvn clean install
and ive got a org.openhab.binding.mcp23017-2.3.0-SNAPSHOT.jar in the target-folder.
Than I replaced the existing (and working) jar in
and restart the openhab2-service.
After that, I find this message in the log:
2018-07-10 17:02:16.794 [DEBUG] [org.openhab.binding.mcp23017 ] - BundleEvent INSTALLED - org.openhab.binding.mcp23017
2018-07-10 17:02:16.876 [DEBUG] [org.openhab.binding.mcp23017 ] - BundleEvent RESOLVED - org.openhab.binding.mcp23017
2018-07-10 17:02:16.933 [ERROR] [org.openhab.binding.mcp23017 ] - Component descriptor entry 'OSGI-INF/*.xml' not found
2018-07-10 17:02:16.936 [DEBUG] [org.openhab.binding.mcp23017 ] - BundleEvent [unknown:512] - org.openhab.binding.mcp23017
The linked things and items are not working now.
What is wrong with my jar? What do I wrong?
You should have placed the changed .jar into the add-ons folder.
Did you have done any changes regarding channels and configuration, you should delete the old things and create new ones with with your new binding.
Which jar should I replace?
find / -name "org.openhab.binding.mcp23017-2.3.0-SNAPSHOT.jar"
Additional Info: The binding was initially installed via the paper-ui. Is there a better way to install it?
removed all the Things, same error
You should have deinstalled via PaperUI what you have installed via PaperUI.
You could/should check using the Karaf console (command bundle:list) if the binding is reinstalled. If not you can remove it via the console.
A customized .jar should be installed by simply dropping it into the add-ons folder.
Thank you for your answer. I removed all existing mcp23017-binding-Infos by deinstalling via paper-ui and removing the tmp-folders. Checked: Its really gone!
Than installing the customized jar via
cp ... /srv/openhab2-sys/addons
The Log says:
2018-07-10 19:44:12.295 [INFO ] [org.apache.felix.fileinstall ] - Installing bundle org.openhab.binding.mcp23017;singleton:=true / 220.127.116.11807090935
2018-07-10 19:44:12.339 [DEBUG] [org.openhab.binding.mcp23017 ] - BundleEvent INSTALLED - org.openhab.binding.mcp23017
2018-07-10 19:44:12.647 [DEBUG] [org.openhab.binding.mcp23017 ] - BundleEvent RESOLVED - org.openhab.binding.mcp23017
2018-07-10 19:44:12.660 [ERROR] [org.openhab.binding.mcp23017 ] - Component descriptor entry 'OSGI-INF/*.xml' not found
2018-07-10 19:44:12.662 [DEBUG] [org.openhab.binding.mcp23017 ] - BundleEvent [unknown:512] - org.openhab.binding.mcp23017
2018-07-10 19:44:12.666 [INFO ] [org.apache.felix.fileinstall ] - Started bundle: file:/usr/share/openhab2/addons/org.openhab.binding.mcp23017-2.3.0-SNAPSHOT.jar
So, it doesnt help.
As my next step, I’ll comapre my jar against the working, unchanged jar. Or do you have any better idea?
I’ve compared the jars. In my jar, the file
was missing. Ive taked it over, now it works.
Why didn’t you test the changed binding in the IDE in the first place?
The IDE runns on my Laptop. My laptop dont have a I2C-Interface, so I cant use MCP23017-Chips with it.