Using JsonTemplateLayout in AMQ Broker causes error on startup

Solution Verified - Updated -

Issue

  • Using JsonTemplateLayout in AMQ Broker causes error on startup:

    ex-aao-container ERROR StatusConsoleListener Unable to invoke factory method in class org.apache.logging.log4j.layout.template.json.JsonTemplateLayout for element JsonTemplateLayout: java.lang.IllegalStateException: No factory method found for class org.apache.logging.log4j.layout.template.json.JsonTemplateLayout
    ex-aao-container  java.lang.IllegalStateException: No factory method found for class org.apache.logging.log4j.layout.template.json.JsonTemplateLayout
    ex-aao-container    at org.apache.logging.log4j.core.config.plugins.util.PluginBuilder.findFactoryMethod(PluginBuilder.java:260)
    

Environment

  • Red Hat AMQ Broker (AMQ Broker) 7.11
  • Red Hat OpenShift Container (Openshift) 4

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content