-
Bug
-
Resolution: Done
-
Undefined
-
AMQ 7.11.6.GA
-
False
-
None
-
False
-
-
+
-
-
Setting JsontTemplateLayout in log4j2 has a conflict with hawtio that uses log4j.
At the startup of the broker we have the following error:
ex-aao-ss-0 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-ss-0 ex-aao-container java.lang.IllegalStateException: No factory method found for class org.apache.logging.log4j.layout.template.json.JsonTemplateLayout ex-aao-ss-0 ex-aao-container at org.apache.logging.log4j.core.config.plugins.util.PluginBuilder.findFactoryMethod(PluginBuilder.java:260) ex-aao-ss-0 ex-aao-container at org.apache.logging.log4j.core.config.plugins.util.PluginBuilder.build(PluginBuilder.java:136) ex-aao-ss-0 ex-aao-container at org.apache.logging.log4j.core.config.AbstractConfiguration.createPluginObject(AbstractConfiguration.java:1138) ex-aao-ss-0 ex-aao-container at org.apache.logging.log4j.core.config.AbstractConfiguration.createConfiguration(AbstractConfiguration.java:1063) ex-aao-ss-0 ex-aao-container at org.apache.logging.log4j.core.config.AbstractConfiguration.createConfiguration(AbstractConfiguration.java:1055) ex-aao-ss-0 ex-aao-container at org.apache.logging.log4j.core.config.AbstractConfiguration.createConfiguration(AbstractConfiguration.java:1055) ex-aao-ss-0 ex-aao-container at org.apache.logging.log4j.core.config.AbstractConfiguration.doConfigure(AbstractConfiguration.java:664) ex-aao-ss-0 ex-aao-container at org.apache.logging.log4j.core.config.AbstractConfiguration.initialize(AbstractConfiguration.java:258) ex-aao-ss-0 ex-aao-container at org.apache.logging.log4j.core.config.AbstractConfiguration.start(AbstractConfiguration.java:304) ex-aao-ss-0 ex-aao-container at org.apache.logging.log4j.core.LoggerContext.setConfiguration(LoggerContext.java:621) ex-aao-ss-0 ex-aao-container at org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:694) ex-aao-ss-0 ex-aao-container at org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:711) ex-aao-ss-0 ex-aao-container at org.apache.logging.log4j.core.LoggerContext.start(LoggerContext.java:253) ex-aao-ss-0 ex-aao-container at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:155) ex-aao-ss-0 ex-aao-container at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:47) ex-aao-ss-0 ex-aao-container at org.apache.logging.log4j.LogManager.getContext(LogManager.java:196) ex-aao-ss-0 ex-aao-container at org.apache.logging.log4j.spi.AbstractLoggerAdapter.getContext(AbstractLoggerAdapter.java:137) ex-aao-ss-0 ex-aao-container at org.apache.logging.slf4j.Log4jLoggerFactory.getContext(Log4jLoggerFactory.java:61) ex-aao-ss-0 ex-aao-container at org.apache.logging.log4j.spi.AbstractLoggerAdapter.getLogger(AbstractLoggerAdapter.java:47) ex-aao-ss-0 ex-aao-container at org.apache.logging.slf4j.Log4jLoggerFactory.getLogger(Log4jLoggerFactory.java:33) ex-aao-ss-0 ex-aao-container at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:363) ex-aao-ss-0 ex-aao-container at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:388) ex-aao-ss-0 ex-aao-container at io.hawt.HawtioContextListener.<clinit>(HawtioContextListener.java:23) ex-aao-ss-0 ex-aao-container at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ex-aao-ss-0 ex-aao-container at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77) ex-aao-ss-0 ex-aao-container at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ex-aao-ss-0 ex-aao-container at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499) ex-aao-ss-0 ex-aao-container at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:480) ex-aao-ss-0 ex-aao-container at org.eclipse.jetty.server.handler.ContextHandler$StaticContext.createInstance(ContextHandler.java:2900) ex-aao-ss-0 ex-aao-container at org.eclipse.jetty.servlet.ServletContextHandler$Context.createInstance(ServletContextHandler.java:1292) ex-aao-ss-0 ex-aao-container at org.eclipse.jetty.servlet.ServletContextHandler$Context.createInstance(ServletContextHandler.java:1301) ex-aao-ss-0 ex-aao-container at org.eclipse.jetty.servlet.BaseHolder.createInstance(BaseHolder.java:204) ex-aao-ss-0 ex-aao-container at org.eclipse.jetty.servlet.ListenerHolder.createInstance(ListenerHolder.java:100) ex-aao-ss-0 ex-aao-container at org.eclipse.jetty.servlet.ListenerHolder.doStart(ListenerHolder.java:89) ex-aao-ss-0 ex-aao-container at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:93) ex-aao-ss-0 ex-aao-container at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:382) ex-aao-ss-0 ex-aao-container at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1304) ex-aao-ss-0 ex-aao-container at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:901) ex-aao-ss-0 ex-aao-container at org.eclipse.jetty.servlet.ServletContextHandler.doStart(ServletContextHandler.java:306) ex-aao-ss-0 ex-aao-container at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:532) ex-aao-ss-0 ex-aao-container at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:93) ex-aao-ss-0 ex-aao-container at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:171) ex-aao-ss-0 ex-aao-container at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:121) ex-aao-ss-0 ex-aao-container at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:89) ex-aao-ss-0 ex-aao-container at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:93) ex-aao-ss-0 ex-aao-container at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:171) ex-aao-ss-0 ex-aao-container at org.eclipse.jetty.server.Server.start(Server.java:470) ex-aao-ss-0 ex-aao-container at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114) ex-aao-ss-0 ex-aao-container at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:89) ex-aao-ss-0 ex-aao-container at org.eclipse.jetty.server.Server.doStart(Server.java:415) ex-aao-ss-0 ex-aao-container at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:93) ex-aao-ss-0 ex-aao-container at org.apache.activemq.artemis.component.WebServerComponent.start(WebServerComponent.java:193) ex-aao-ss-0 ex-aao-container at org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.addExternalComponent(ActiveMQServerImpl.java:997) ex-aao-ss-0 ex-aao-container at org.apache.activemq.artemis.cli.commands.Run.execute(Run.java:144) ex-aao-ss-0 ex-aao-container at org.apache.activemq.artemis.cli.Artemis.internalExecute(Artemis.java:212) ex-aao-ss-0 ex-aao-container at org.apache.activemq.artemis.cli.Artemis.execute(Artemis.java:162) ex-aao-ss-0 ex-aao-container at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ex-aao-ss-0 ex-aao-container at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ex-aao-ss-0 ex-aao-container at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ex-aao-ss-0 ex-aao-container at java.base/java.lang.reflect.Method.invoke(Method.java:568) ex-aao-ss-0 ex-aao-container at org.apache.activemq.artemis.boot.Artemis.execute(Artemis.java:144) ex-aao-ss-0 ex-aao-container at org.apache.activemq.artemis.boot.Artemis.main(Artemis.java:61) ex-aao-ss-0 ex-aao-container Initialising hawtio services
- clones
-
ENTMQBR-8872 Setting JsontTemplateLayout in log4j2 has a conflict wit hawtio that uses log4j
- Closed
- relates to
-
ENTMQBR-9534 Supports Log4J2 JsonTemplateLayout
- Refinement
-
ENTMQBR-8954 SLF4J: Class path contains multiple SLF4J bindings" warnings
- Closed