Bug#1151146: jboss-logging: FTBFS: java.lang.ClassCastException: class org.apache.logging.log4j.simple.SimpleLoggerContext cannot be cast to class org.apache.logging.log4j.core.LoggerContext (org.apache.logging.log4j.simple.SimpleLoggerContext and org.apache.logging.log4j.core.LoggerContext are in unnamed module of loader 'app')

Santiago Vila sanvila at debian.org
Sat Oct 17 14:38:13 BST 2026


Package: src:jboss-logging
Version: 3.5.3-2
Severity: serious
Tags: ftbfs forky sid

Dear maintainer:

During a rebuild of all packages in unstable, this package failed to build.

Below you will find the last part of the build log (probably the most
relevant part, but not necessarily). If required, the full build log
is available here:

https://people.debian.org/~sanvila/build-logs/202610/

About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.

If you cannot reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.

If this is really a bug in one of the build-depends, please use
reassign and add an affects on src:jboss-logging, so that this is still
visible in the BTS web page for this package.

Thanks.

--------------------------------------------------------------------------------
[...]
[ERROR] testMdc  Time elapsed: 0.001 s  <<< ERROR!
java.lang.ClassCastException: class org.apache.logging.log4j.simple.SimpleLoggerContext cannot be cast to class org.apache.logging.log4j.core.LoggerContext (org.apache.logging.log4j.simple.SimpleLoggerContext and org.apache.logging.log4j.core.LoggerContext are in unnamed module of loader 'app')
	at org.jboss.logging.Log4j2ProviderTestCase.setupLogContext(Log4j2ProviderTestCase.java:58)

[ERROR] testNdc  Time elapsed: 0.002 s  <<< ERROR!
java.lang.ClassCastException: class org.apache.logging.log4j.simple.SimpleLoggerContext cannot be cast to class org.apache.logging.log4j.core.LoggerContext (org.apache.logging.log4j.simple.SimpleLoggerContext and org.apache.logging.log4j.core.LoggerContext are in unnamed module of loader 'app')
	at org.jboss.logging.Log4j2ProviderTestCase.setupLogContext(Log4j2ProviderTestCase.java:58)

[INFO] Running org.jboss.logging.JulProviderTestCase
[INFO] Tests run: 10, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.041 s - in org.jboss.logging.JulProviderTestCase
[INFO] 
[INFO] Results:
[INFO] 
[ERROR] Errors: 
[ERROR]   Log4j2ProviderTestCase.setupLogContext:58 ClassCast class org.apache.logging.l...
[ERROR]   Log4j2ProviderTestCase.setupLogContext:58 ClassCast class org.apache.logging.l...
[ERROR]   Log4j2ProviderTestCase.setupLogContext:58 ClassCast class org.apache.logging.l...
[ERROR]   Log4j2ProviderTestCase.setupLogContext:58 ClassCast class org.apache.logging.l...
[ERROR]   Log4j2ProviderTestCase.setupLogContext:58 ClassCast class org.apache.logging.l...
[ERROR]   Log4j2ProviderTestCase.setupLogContext:58 ClassCast class org.apache.logging.l...
[ERROR]   Log4j2ProviderTestCase.setupLogContext:58 ClassCast class org.apache.logging.l...
[ERROR]   Log4j2ProviderTestCase.setupLogContext:58 ClassCast class org.apache.logging.l...
[ERROR]   Log4j2ProviderTestCase.setupLogContext:58 ClassCast class org.apache.logging.l...
[ERROR]   Log4j2ProviderTestCase.setupLogContext:58 ClassCast class org.apache.logging.l...
[INFO] 
[ERROR] Tests run: 51, Failures: 0, Errors: 10, Skipped: 0
[INFO] 
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  03:05 min
[INFO] Finished at: 2026-10-17T13:01:18Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.3:test (default) on project jboss-logging: There are test failures.
[ERROR] 
[ERROR] Please refer to /<<PKGBUILDDIR>>/target/surefire-reports for the individual test results.
[ERROR] Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream.
[ERROR] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
dh_auto_test: error: /usr/lib/jvm/default-java/bin/java -noverify -cp /usr/share/maven/boot/plexus-classworlds-2.x.jar -Dmaven.home=/usr/share/maven -Dmaven.multiModuleProjectDirectory=/<<PKGBUILDDIR>> -Dclassworlds.conf=/etc/maven/m2-debian.conf -Dproperties.file.manual=/<<PKGBUILDDIR>>/debian/maven.properties org.codehaus.plexus.classworlds.launcher.Launcher -s/etc/maven/settings-debian.xml -Ddebian.dir=/<<PKGBUILDDIR>>/debian -Dmaven.repo.local=/<<PKGBUILDDIR>>/debian/maven-repo --batch-mode test returned exit code 1
make: *** [debian/rules:4: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2
--------------------------------------------------------------------------------



More information about the pkg-java-maintainers mailing list