Fix Felix Web Console PreferencesConfigurationPrinter not enabled#176
Merged
vharseko merged 3 commits intoMay 14, 2026
Merged
Conversation
Add org.apache.felix.prefs bundle to provide org.osgi.service.prefs package (including BackingStoreException class) at runtime, fixing: INFO: org.apache.felix.webconsole.internal.compendium.PreferencesConfigurationPrinter not enabled. Reason: Class org/osgi/service/prefs/BackingStoreException missing
maximthomas
approved these changes
May 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
On OpenIDM startup the Felix Web Console logs the following message:
The root cause is that the distribution does not ship any bundle exporting the
org.osgi.service.prefspackage (OSGi Preferences Service API), which is required by the built-inPreferencesConfigurationPrinterinorg.apache.felix.webconsole. As a result, that section of the Web Console stays disabled.Fix
Add the Apache Felix Preferences bundle (
org.apache.felix:org.apache.felix.prefs:1.1.0), which:org.osgi:org.osgi.service.prefs, which exports theorg.osgi.service.prefspackage (including theBackingStoreExceptionclass).With this bundle in place,
PreferencesConfigurationPrinteris properly enabled in the Felix Web Console.Changes
pom.xml— added dependency management entry fororg.apache.felix:org.apache.felix.prefs:1.1.0.openidm-zip/pom.xml— added the dependency so the bundle is packaged into theopenidm/bundledirectory of the distribution.Verification
mvn -pl openidm-zip -am -DskipTests packagecompletes successfully. The resulting ZIP now contains the required bundles:After starting OpenIDM, the
PreferencesConfigurationPrinter not enabled ... BackingStoreException missingmessage no longer appears in the logs.