Commit e39caf9
Seed default ConfigAdmin entry for the JAX-RS whiteboard runtime in launch/app
org.eclipse.osgitech.rest.servlet.whiteboard's
JakartarsServletWhiteboardRuntimeComponent has
configuration-policy="require": it never activates without a matching
ConfigAdmin configuration, which means it never publishes the
JakartarsServiceRuntime service, which means
org.openhab.core.io.rest.internal.resources.RootResource (which
@references that service) stays permanently unsatisfied - so /rest
404s even though individual REST resources underneath it still
register fine.
The Karaf distribution already ships the equivalent default at
distributions/openhab/src/main/resources/userdata/etc/
JakartarsServletWhiteboardRuntimeComponent.cfg; launch/app never had
one. Since launch/app uses Felix's own file-based ConfigAdmin
(felix.cm.dir) rather than Karaf's fileinstall-watched *.cfg
directory, the equivalent has to be seeded directly in Felix's own
persistence format.
Verified end-to-end on a scratch instance: the component goes from
"no config" to "active", RootResource goes from "unsatisfied
(reference)" to "active", and /rest now returns the real REST API
root listing instead of 404.
launch/app/runtime/userdata is otherwise gitignored (per-instance
runtime state); carved out a precise exception so only this one seed
file is tracked, everything else (logs, machine-specific bundle cache
paths, etc.) stays ignored as before.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>1 parent c5a9eab commit e39caf9
2 files changed
Lines changed: 8 additions & 1 deletion
File tree
- launch/app/runtime/userdata/config
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
0 commit comments