Remove dead logback.configurationFile reference and silence noisy pax-web INFO logs#177
Merged
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
…ax-web INFO logs
Select-String in PowerShell is case-insensitive by default, so the Windows smoke-test step was matching benign INFO records such as "ErrorServletComponent activate" / "Registered servlet at /error" against the ERROR|SEVERE|Exception|Throwable pattern and failing the build. The equivalent Unix step uses `grep -E`, which is case-sensitive, so the same lines pass on Linux/macOS. Add the -CaseSensitive flag to both Select-String invocations in the "Test on Windows" step of .github/workflows/build.yml so the check behaves identically across OSes.
maximthomas
approved these changes
May 14, 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.
Summary
The
OPENIDM_OPTSset in shell/batch launchers, Dockerfiles and the GitHub Actionsworkflow contained
-Dlogback.configurationFile=conf/logging-config.groovy, butthat file does not exist in the project (it was removed years ago — see commit
0bc8f2ac1"Removed usage of logback, reverted to original logging in trunk").Because the configured file is missing, Logback silently falls back to its default
BasicConfigurator, which dumps DEBUG-level output toSystem.err. On Windowsstartup.batlaunches Java viastart "OpenIDM" java …in a separate console,whose output is captured verbatim by the GitHub Actions runner — that is why the
Windows job log looked dramatically more verbose than the Linux/macOS one.
In addition, several
org.ops4j.pax.web.*loggers emitINFOrecords duringservlet/error-page registration (e.g.
HttpServiceEnabled,JettyServerWrapper)that bloat
openidm0.log.0without adding diagnostic value.Changes
-Dlogback.configurationFile=conf/logging-config.groovy(and
conf\logging-config.xmlin the Windows service installer) from:openidm-zip/pom.xml(experimental-buildprofile)openidm-zip/src/main/resources/startup.shopenidm-zip/src/main/resources/bin/install-service.batDockerfile,Dockerfile-alpine.github/workflows/build.yml(UI smoke-tests step)org.ops4j.pax.web.level=WARNINGtoopenidm-zip/src/main/resources/conf/logging.properties.openidm-zip/pom.xmlto 2026.Why the slash was not the cause
-D…=conf/logging-config.groovyworks the same on Windows as on Unix — the JVMaccepts forward slashes in file paths and Logback's
ContextInitializerresolves the value as a classpath resource / URL / file regardless of OS. The
difference between platforms came from the missing file plus how
startroutesstdout/stderr on Windows, not from the path separator.
Verification
startup.sh) starts cleanly;openidm0.log.0nolonger contains
org.ops4j.pax.web.*INFO records for servlet/error-pageregistration.
startup.bat) produces output of the same volumeas the Unix one; no Logback
BasicConfiguratorDEBUG dump.Risk
Low. The removed system property pointed at a non-existent file and therefore
had no functional effect; logging behaviour is unchanged where the file was
absent (i.e. everywhere). The new JUL filter only raises the threshold for the
already-noisy
org.ops4j.pax.webpackage toWARNING.