Skip to content

ConsoleAppender's JANSI native support (withJansi) do not work after Jansi migration from FuseSource to JLine #1043

Closed

Description

@NilsRenaud

The Jansi project has been migrated from https://github.com/fusesource/jansi to https://github.com/jline/jline3/blob/master/jansi/ unfortunately updating the package names.
This package name update breaks ConsoleAppender's native support of JANSI (<withJansi>) resulting on this warning log message:

11:25:00,427 |-WARN in ch.qos.logback.core.ConsoleAppender[STDOUT] - Failed to create AnsiPrintStream. Falling back on the default stream. java.lang.ClassNotFoundException: org.fusesource.jansi.AnsiConsole
        at java.lang.ClassNotFoundException: org.fusesource.jansi.AnsiConsole
        at      at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641)
        at      at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)
        at      at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:526)
        at      at ch.qos.logback.core.ConsoleAppender.wrapWithJansi(ConsoleAppender.java:117)
        at      at ch.qos.logback.core.ConsoleAppender.start(ConsoleAppender.java:99)
        at      at ch.qos.logback.core.model.processor.AppenderModelHandler.postHandle(AppenderModelHandler.java:85)
        at      at ch.qos.logback.core.model.processor.DefaultProcessor.secondPhaseTraverse(DefaultProcessor.java:260)
        at      at ch.qos.logback.core.model.processor.DefaultProcessor.secondPhaseTraverse(DefaultProcessor.java:256)
        at      at ch.qos.logback.core.model.processor.DefaultProcessor.traversalLoop(DefaultProcessor.java:88)
        at      at ch.qos.logback.core.model.processor.DefaultProcessor.process(DefaultProcessor.java:104)
        at      at ch.qos.logback.core.joran.GenericXMLConfigurator.processModel(GenericXMLConfigurator.java:239)
        at      at ch.qos.logback.core.joran.GenericXMLConfigurator.doConfigure(GenericXMLConfigurator.java:195)
        at      at ch.qos.logback.core.joran.GenericXMLConfigurator.doConfigure(GenericXMLConfigurator.java:139)
        at      at ch.qos.logback.core.joran.GenericXMLConfigurator.doConfigure(GenericXMLConfigurator.java:76)

cc @gnodet (JANSI maintainer)

Activity

  1. gnodet commented on Jun 22, 2026

    @gnodet

    One possibility would be to try the new class name and fall back to the old one ?

  2. added a commit that references this issue on Jul 24, 2026
    693c6bc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions