Skip to content

Fix Felix Web Console PreferencesConfigurationPrinter not enabled#176

Merged
vharseko merged 3 commits into
OpenIdentityPlatform:masterfrom
vharseko:BackingStoreException
May 14, 2026
Merged

Fix Felix Web Console PreferencesConfigurationPrinter not enabled#176
vharseko merged 3 commits into
OpenIdentityPlatform:masterfrom
vharseko:BackingStoreException

Conversation

@vharseko
Copy link
Copy Markdown
Member

Problem

On OpenIDM startup the Felix Web Console logs the following message:

INFO: org.apache.felix.webconsole.internal.compendium.PreferencesConfigurationPrinter not enabled. Reason: Class org/osgi/service/prefs/BackingStoreException missing

The root cause is that the distribution does not ship any bundle exporting the org.osgi.service.prefs package (OSGi Preferences Service API), which is required by the built-in PreferencesConfigurationPrinter in org.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:

  • provides an implementation of the OSGi Preferences Service;
  • transitively pulls in org.osgi:org.osgi.service.prefs, which exports the org.osgi.service.prefs package (including the BackingStoreException class).

With this bundle in place, PreferencesConfigurationPrinter is properly enabled in the Felix Web Console.

Changes

  • pom.xml — added dependency management entry for org.apache.felix:org.apache.felix.prefs:1.1.0.
  • openidm-zip/pom.xml — added the dependency so the bundle is packaged into the openidm/bundle directory of the distribution.

Verification

mvn -pl openidm-zip -am -DskipTests package completes successfully. The resulting ZIP now contains the required bundles:

openidm/bundle/org.apache.felix.org.apache.felix.prefs-1.1.0.jar
openidm/bundle/org.osgi.org.osgi.service.prefs-1.1.1.jar

After starting OpenIDM, the PreferencesConfigurationPrinter not enabled ... BackingStoreException missing message no longer appears in the logs.

vharseko added 3 commits May 13, 2026 12:06
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
@vharseko vharseko requested a review from maximthomas May 13, 2026 10:27
@vharseko vharseko merged commit 2842321 into OpenIdentityPlatform:master May 14, 2026
10 of 15 checks passed
@vharseko vharseko deleted the BackingStoreException branch May 14, 2026 16:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants