Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-5199

CLI, shaded jar can't start embedded when logging json formater configured

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 14.0.0.Final
    • None
    • CLI
    • None

      We are in a context where the logging.properties file contains a JSON formatter.

      The CLI fat jar is started: java -jar ./bin/client/jboss-cli-client.jar

      embed-server --jboss-home=my-jboss-home

      Cannot start embedded server: Failed to instantiate class "org.jboss.logmanager.formatters.JsonFormatter" for formatter "JSON": java.lang.reflect.InvocationTargetException: javax/json/Json: javax.json

       
      The CLI shaded JAR should contain the following dependency:org.glassfish:jakarta.json

      This also impacts bootable JAR maven plugin.

              jdenise@redhat.com Jean Francois Denise
              jdenise@redhat.com Jean Francois Denise
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: