My basic intention was to add something to “openHAB Core :: Bundles :: REST Interface :: Core”. I did compile this on the 4.0 main branch, then deployed it and it worked fine a few times…
However, I noticed I should extract/refactor some of my code to “openHAB Core :: Bundles :: Core” and from deploying this core bundles on nothing worked anymore as expected. I wasn’t able to start that bundle (it got stuck in waiting) and finally I gave up, so I reverted to the one (rest) bundle only just to move on for the time being but I never got it working again as in the beginning.
(note I always made sure that I stop the original bundles before and used the addons folder to deploy the new bundles).
So to get to the situation of the beginning I did the following:
- I cleaned the cache, restarted openHAB
- I updated from Version: 4.0.0-SNAPSHOT (#3262) to Version: 4.0.0-SNAPSHOT (#3263)
- I even did a “apt reinstall openhab”
I made sure all bundles are rolled back to the original version and the system would work well.
openhab> bundle:list | grep "openHAB Core :: Bundles :: Core"
149 │ Active │ 80 │ 4.0.0.202212302150 │ openHAB Core :: Bundles :: Core
openhab> bundle:list | grep "openHAB Core :: Bundles :: REST Interface :: Core"
178 │ Active │ 80 │ 4.0.0.202212302158 │ openHAB Core :: Bundles :: REST Interface :: Core
openhab> bundle:stop 178
I then stopped the one bundle I intended to replace
bundle:stop 178
openhab> bundle:list | grep "openHAB Core :: Bundles :: REST Interface :: Core"
178 │ Resolved │ 80 │ 4.0.0.202212302158 │ openHAB Core :: Bundles :: REST Interface :: Core
Then I copied the newly compiled bundle-jar to the addon-folder but it complains about unresolved dependencies and then I did a “diag”
178 │ Resolved │ 80 │ 4.0.0.202212302158 │ openHAB Core :: Bundles :: REST Interface :: Core
318 │ Installed │ 80 │ 4.0.0.202301012156 │ openHAB Core :: Bundles :: REST Interface :: Core
openhab> diag
openHAB Core :: Bundles :: REST Interface :: Core (318)
-------------------------------------------------------
Status: Installed
Unsatisfied Requirements:
osgi.wiring.package; filter:="(&(osgi.wiring.package=org.openhab.core.addon)(&(version>=3.4.0)(!(version>=4.0.0))))"
osgi.wiring.package; filter:="(&(osgi.wiring.package=org.openhab.core.binding)(&(version>=3.4.0)(!(version>=4.0.0))))"
osgi.wiring.package; filter:="(&(osgi.wiring.package=org.openhab.core.binding.dto)(&(version>=3.4.0)(!(version>=4.0.0))))"
osgi.wiring.package; filter:="(&(osgi.wiring.package=org.openhab.core.common)(&(version>=3.4.0)(!(version>=4.0.0))))"
osgi.wiring.package; filter:="(&(osgi.wiring.package=org.openhab.core.common.registry)(&(version>=3.4.0)(!(version>=4.0.0))))"
osgi.wiring.package; filter:="(&(osgi.wiring.package=org.openhab.core.events)(&(version>=3.4.0)(!(version>=4.0.0))))"
osgi.wiring.package; filter:="(&(osgi.wiring.package=org.openhab.core.i18n)(&(version>=3.4.0)(!(version>=4.0.0))))"
osgi.wiring.package; filter:="(&(osgi.wiring.package=org.openhab.core.items)(&(version>=3.4.0)(!(version>=4.0.0))))"
osgi.wiring.package; filter:="(&(osgi.wiring.package=org.openhab.core.items.dto)(&(version>=3.4.0)(!(version>=4.0.0))))"
osgi.wiring.package; filter:="(&(osgi.wiring.package=org.openhab.core.items.events)(&(version>=3.4.0)(!(version>=4.0.0))))"
osgi.wiring.package; filter:="(&(osgi.wiring.package=org.openhab.core.library.items)(&(version>=3.4.0)(!(version>=4.0.0))))"
osgi.wiring.package; filter:="(&(osgi.wiring.package=org.openhab.core.library.types)(&(version>=3.4.0)(!(version>=4.0.0))))"
osgi.wiring.package; filter:="(&(osgi.wiring.package=org.openhab.core.types)(&(version>=3.4.0)(!(version>=4.0.0))))"
osgi.service; filter:="(osgi.jaxrs.media.type=application/json)"; effective:="active"; resolution:="optional"
Declarative Services
For the record here are all core bundles of which some are mentioned above and it shows that all are beyond 4.0.0
149 │ Active │ 80 │ 4.0.0.202212302150 │ openHAB Core :: Bundles :: Core
150 │ Active │ 80 │ 4.0.0.202212302201 │ openHAB Core :: Bundles :: Marketplace Add-on Services
151 │ Active │ 80 │ 4.0.0.202212302201 │ openHAB Core :: Bundles :: Community Marketplace Add-on Service :: Karaf
152 │ Active │ 80 │ 4.0.0.202212302154 │ openHAB Core :: Bundles :: Audio
153 │ Active │ 80 │ 4.0.0.202212302153 │ openHAB Core :: Bundles :: JAAS Authentication
154 │ Active │ 80 │ 4.0.0.202212302154 │ openHAB Core :: Bundles :: OAuth2Client
155 │ Active │ 80 │ 4.0.0.202212302156 │ openHAB Core :: Bundles :: Automation
156 │ Active │ 80 │ 4.0.0.202212302200 │ openHAB Core :: Bundles :: Automation Media Modules
157 │ Active │ 80 │ 4.0.0.202212302159 │ openHAB Core :: Bundles :: Automation Script Modules
158 │ Active │ 80 │ 4.0.0.202212302200 │ openHAB Core :: Bundles :: Automation Script RuleSupport
159 │ Active │ 80 │ 4.0.0.202212302159 │ openHAB Core :: Bundles :: Automation REST API
160 │ Active │ 80 │ 4.0.0.202212302156 │ openHAB Core :: Bundles :: Binding XML
161 │ Active │ 80 │ 4.0.0.202212302153 │ openHAB Core :: Bundles :: Configuration Core
162 │ Active │ 80 │ 4.0.0.202212302156 │ openHAB Core :: Bundles :: Configuration Discovery
163 │ Active │ 80 │ 4.0.0.202212302159 │ openHAB Core :: Bundles :: Configuration mDNS Discovery
164 │ Active │ 80 │ 4.0.0.202212302155 │ openHAB Core :: Bundles :: Configuration Dispatcher
165 │ Active │ 75 │ 4.0.0.202212302154 │ openHAB Core :: Bundles :: Configuration XML
166 │ Active │ 80 │ 4.0.0.202212302154 │ openHAB Core :: Bundles :: Ephemeris
167 │ Active │ 80 │ 4.0.0.202212302154 │ openHAB Core :: Bundles :: ID
168 │ Active │ 80 │ 4.0.0.202212302152 │ openHAB Core :: Bundles :: Console
169 │ Active │ 80 │ 4.0.0.202212302153 │ openHAB Core :: Bundles :: Console for OSGi runtime Karaf
170 │ Active │ 80 │ 4.0.0.202212302150 │ openHAB Core :: Bundles :: HTTP Interface
171 │ Active │ 80 │ 4.0.0.202212302153 │ openHAB Core :: Bundles :: HTTP Interface Authentication
173 │ Active │ 80 │ 4.0.0.202212302158 │ openHAB Core :: Bundles :: Monitor
174 │ Active │ 80 │ 4.0.0.202212302152 │ openHAB Core :: Bundles :: Network I/O
175 │ Active │ 80 │ 4.0.0.202212302152 │ openHAB Core :: Bundles :: REST Interface
176 │ Active │ 80 │ 4.0.0.202212302156 │ openHAB Core :: Bundles :: Audio REST Interface
177 │ Active │ 80 │ 4.0.0.202212302155 │ openHAB Core :: Bundles :: Authentication Support for the REST Interface
178 │ Resolved │ 80 │ 4.0.0.202212302158 │ openHAB Core :: Bundles :: REST Interface :: Core
179 │ Active │ 80 │ 4.0.0.202212302159 │ openHAB Core :: Bundles :: REST mDNS Announcer
180 │ Active │ 80 │ 4.0.0.202212302201 │ openHAB Core :: Bundles :: Sitemap REST Interface
181 │ Active │ 80 │ 4.0.0.202212302156 │ openHAB Core :: Bundles :: SSE Interface
182 │ Active │ 80 │ 4.0.0.202212302154 │ openHAB Core :: Bundles :: REST Interface :: Swagger 1
183 │ Active │ 80 │ 4.0.0.202212302157 │ openHAB Core :: Bundles :: Transformation REST Interface
184 │ Active │ 80 │ 4.0.0.202212302201 │ openHAB Core :: Bundles :: UI REST Interface
185 │ Active │ 80 │ 4.0.0.202212302157 │ openHAB Core :: Bundles :: Voice REST Interface
186 │ Active │ 80 │ 4.0.0.202212302158 │ openHAB Core :: Bundles :: mDNS Service
187 │ Active │ 80 │ 4.0.0.202212302153 │ openHAB Core :: Bundles :: WebSocket
188 │ Active │ 80 │ 4.0.0.202212302154 │ openHAB Core :: Bundles :: Karaf Integration
189 │ Active │ 80 │ 4.0.0.202212302155 │ openHAB Core :: Bundles :: Model Core
190 │ Active │ 80 │ 4.0.0.202212302157 │ openHAB Core :: Bundles :: Model Items
191 │ Active │ 80 │ 4.0.0.202212302159 │ openHAB Core :: Bundles :: Model Item IDE
192 │ Active │ 80 │ 4.0.0.202212302159 │ openHAB Core :: Bundles :: Model Items Runtime
193 │ Active │ 80 │ 4.0.0.202212302203 │ openHAB Core :: Bundles :: Language Server
194 │ Active │ 80 │ 4.0.0.202212302157 │ openHAB Core :: Bundles :: Model Persistence
195 │ Active │ 80 │ 4.0.0.202212302159 │ openHAB Core :: Bundles :: Model Persistence IDE
196 │ Active │ 80 │ 4.0.0.202212302159 │ openHAB Core :: Bundles :: Model Persistence Runtime
197 │ Active │ 80 │ 4.0.0.202212302202 │ openHAB Core :: Bundles :: Model Rules
198 │ Active │ 80 │ 4.0.0.202212302203 │ openHAB Core :: Bundles :: Model Rule IDE
199 │ Active │ 80 │ 4.0.0.202212302203 │ openHAB Core :: Bundles :: Model Rules Runtime
200 │ Active │ 80 │ 4.0.0.202212302201 │ openHAB Core :: Bundles :: Model Script
201 │ Active │ 80 │ 4.0.0.202212302202 │ openHAB Core :: Bundles :: Model Script IDE
202 │ Active │ 80 │ 4.0.0.202212302202 │ openHAB Core :: Bundles :: Model Script Runtime
203 │ Active │ 80 │ 4.0.0.202212302157 │ openHAB Core :: Bundles :: Model Sitemap
204 │ Active │ 80 │ 4.0.0.202212302200 │ openHAB Core :: Bundles :: Model Sitemap IDE
205 │ Active │ 80 │ 4.0.0.202212302200 │ openHAB Core :: Bundles :: Model Sitemap Runtime
206 │ Active │ 80 │ 4.0.0.202212302200 │ openHAB Core :: Bundles :: Model Thing
207 │ Active │ 80 │ 4.0.0.202212302200 │ openHAB Core :: Bundles :: Model Thing IDE
208 │ Active │ 80 │ 4.0.0.202212302200 │ openHAB Core :: Bundles :: Model Thing Runtime
209 │ Active │ 80 │ 4.0.0.202212302155 │ openHAB Core :: Bundles :: Persistence
210 │ Active │ 80 │ 4.0.0.202212302153 │ openHAB Core :: Bundles :: Semantics
211 │ Active │ 80 │ 4.0.0.202212302156 │ openHAB Core :: Bundles :: JSON Storage
212 │ Active │ 80 │ 4.0.0.202212302154 │ openHAB Core :: Bundles :: Thing
213 │ Active │ 75 │ 4.0.0.202212302156 │ openHAB Core :: Bundles :: Thing XML
214 │ Active │ 80 │ 4.0.0.202212302155 │ openHAB Core :: Bundles :: Transformation Service
215 │ Active │ 80 │ 4.0.0.202212302200 │ openHAB Core :: Bundles :: UI
216 │ Active │ 80 │ 4.0.0.202212302201 │ openHAB Core :: Bundles :: UI Icon Support
217 │ Active │ 80 │ 4.0.0.202212302156 │ openHAB Core :: Bundles :: Voice
297 │ Active │ 80 │ 4.0.0.202212302158 │ openHAB Core :: Bundles :: Configuration UPnP Discovery
298 │ Active │ 80 │ 4.0.0.202212302158 │ openHAB Core :: Bundles :: Configuration USB-Serial Discovery
299 │ Active │ 80 │ 4.0.0.202212302200 │ openHAB Core :: Bundles :: Configuration USB-Serial Discovery for Linux using sysfs scanning
300 │ Active │ 80 │ 4.0.0.202212302200 │ openHAB Core :: Bundles :: Configuration USB-Serial Discovery using ser2net mDNS scanning
301 │ Active │ 80 │ 4.0.0.202212302200 │ openHAB Core :: Bundles :: Configuration Serial
302 │ Active │ 80 │ 4.0.0.202212302155 │ openHAB Core :: Bundles :: MQTT Transport
303 │ Active │ 80 │ 4.0.0.202212302153 │ openHAB Core :: Bundles :: Serial Transport
304 │ Active │ 80 │ 4.0.0.202212302154 │ openHAB Core :: Bundles :: Serial Transport for RXTX
305 │ Active │ 80 │ 4.0.0.202212302156 │ openHAB Core :: Bundles :: Serial Transport for RFC2217
306 │ Active │ 80 │ 4.0.0.202212302153 │ openHAB Core :: Bundles :: UPnP Transport
318 │ Installed │ 80 │ 4.0.0.202301012156 │ openHAB Core :: Bundles :: REST Interface :: Core
(uninstalling 318 and restarting 178 works fine)
I am out of ideas:
-
How can I deploy this single bundle org.openhab.core.io.rest.core so it doesn’t complain, respectively why is it complaining at all at the moment?
-
… as a later and second topic: If I want to change something in org.openhab.core and in org.openhab.core.io.rest.core, what is the recommended approach during development to deploy these?
Thanks in advance for the support,
Stefan