You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "Poornima (Jira)" <ji...@apache.org> on 2022/09/16 11:19:00 UTC

[jira] [Created] (LOG4J2-3600) ERROR Unable to locate plugin type for ClogAppenderFilter

Poornima created LOG4J2-3600:
--------------------------------

             Summary: ERROR Unable to locate plugin type for ClogAppenderFilter
                 Key: LOG4J2-3600
                 URL: https://issues.apache.org/jira/browse/LOG4J2-3600
             Project: Log4j 2
          Issue Type: Bug
          Components: Log4j 1.2 bridge
         Environment: Log4j2 with Wildfly23
            Reporter: Poornima


Getting below error. Tried many options from google, nothing is working

^2022-09-16 15:57:20,981 ERROR [stderr] (ServerService Thread Pool -- 89) 2022-09-16 15:57:20,981 ServerService Thread Pool -- 89 ERROR Unable to locate plugin type for ClogAppenderFilter^
^2022-09-16 15:57:20,998 ERROR [stderr] (ServerService Thread Pool -- 89) 2022-09-16 15:57:20,998 ServerService Thread Pool -- 89 ERROR Unable to locate plugin for ClogAppenderFilter^
^2022-09-16 15:57:21,092 ERROR [stderr] (ServerService Thread Pool -- 89) 2022-09-16 15:57:21,092 ServerService Thread Pool -- 89 ERROR Could not create plugin of type class org.apache.logging.log4j.core.appender.ConsoleAppender for element Console: java.lang.NullPointerException java.lang.NullPointerException^
^2022-09-16 15:57:21,092 ERROR [stderr] (ServerService Thread Pool -- 89)        at org.apache.logging.log4j@2.17.1//org.apache.logging.log4j.core.config.plugins.visitors.PluginElementVisitor.findNamedNode(PluginElementVisitor.java:104)^
^2022-09-16 15:57:21,110 ERROR [stderr] (ServerService Thread Pool -- 89)        at org.apache.logging.log4j@2.17.1//org.apache.logging.log4j.core.config.plugins.visitors.PluginElementVisitor.visit(PluginElementVisitor.java:88)^
^2022-09-16 15:57:21,110 ERROR [stderr] (ServerService Thread Pool -- 89)        at org.apache.logging.log4j@2.17.1//org.apache.logging.log4j.core.config.plugins.util.PluginBuilder.injectFields(PluginBuilder.java:187)^
^2022-09-16 15:57:21,111 ERROR [stderr] (ServerService Thread Pool -- 89)        at org.apache.logging.log4j@2.17.1//org.apache.logging.log4j.core.config.plugins.util.PluginBuilder.build(PluginBuilder.java:121)^
^2022-09-16 15:57:21,111 ERROR [stderr] (ServerService Thread Pool -- 89)        at org.apache.logging.log4j@2.17.1//org.apache.logging.log4j.core.config.AbstractConfiguration.createPluginObject(AbstractConfiguration.java:1120)^
^2022-09-16 15:57:21,111 ERROR [stderr] (ServerService Thread Pool -- 89)        at org.apache.logging.log4j@2.17.1//org.apache.logging.log4j.core.config.AbstractConfiguration.createConfiguration(AbstractConfiguration.java:1045)^
^2022-09-16 15:57:21,111 ERROR [stderr] (ServerService Thread Pool -- 89)        at org.apache.logging.log4j@2.17.1//org.apache.logging.log4j.core.config.AbstractConfiguration.createConfiguration(AbstractConfiguration.java:1037)^
^2022-09-16 15:57:21,111 ERROR [stderr] (ServerService Thread Pool -- 89)        at org.apache.logging.log4j@2.17.1//org.apache.logging.log4j.core.config.AbstractConfiguration.doConfigure(AbstractConfiguration.java:651)^
^2022-09-16 15:57:21,111 ERROR [stderr] (ServerService Thread Pool -- 89)        at org.apache.logging.log4j@2.17.1//org.apache.logging.log4j.core.config.AbstractConfiguration.initialize(AbstractConfiguration.java:247)^
^2022-09-16 15:57:21,111 ERROR [stderr] (ServerService Thread Pool -- 89)        at org.apache.logging.log4j@2.17.1//org.apache.logging.log4j.core.config.AbstractConfiguration.start(AbstractConfiguration.java:293)^
^2022-09-16 15:57:21,111 ERROR [stderr] (ServerService Thread Pool -- 89)        at org.apache.logging.log4j@2.17.1//org.apache.logging.log4j.core.LoggerContext.setConfiguration(LoggerContext.java:626)^
^2022-09-16 15:57:21,111 ERROR [stderr] (ServerService Thread Pool -- 89)        at org.apache.logging.log4j@2.17.1//org.apache.logging.log4j.core.LoggerContext.start(LoggerContext.java:302)^
^2022-09-16 15:57:21,111 ERROR [stderr] (ServerService Thread Pool -- 89)        at deployment.Some.ear//com.motive.modelViewPlatform.configurationService.LogInitializer.setupDbLog4jProperties(LogInitializer.java:171)^
^2022-09-16 15:57:21,111 ERROR [stderr] (ServerService Thread Pool -- 89)        at deployment.Some.ear//com.motive.modelViewPlatform.configurationService.LogInitializer.setLogLevels(LogInitializer.java:60)^
^2022-09-16 15:57:21,111 ERROR [stderr] (ServerService Thread Pool -- 89)        at deployment.Some.ear.ConfigurationManager-220.1.0.0-SNAPSHOT.war//com.motive.serviceview.configurationmanager.webapp.StartupListener.onApplicationEvent(StartupListener.java:47)^
^2022-09-16 15:57:21,111 ERROR [stderr] (ServerService Thread Pool -- 89)        at deployment.Some.ear.ConfigurationManager-220.1.0.0-SNAPSHOT.war//com.motive.serviceview.configurationmanager.webapp.StartupListener.onApplicationEvent(StartupListener.java:29)^
^2022-09-16 15:57:21,111 ERROR [stderr] (ServerService Thread Pool -- 89)        at deployment.Some.ear//org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:176)^
^2022-09-16 15:57:21,111 ERROR [stderr] (ServerService Thread Pool -- 89)        at deployment.Some.ear//org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:169)^
^2022-09-16 15:57:21,111 ERROR [stderr] (ServerService Thread Pool -- 89)        at deployment.Some.ear//org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:143)^
^2022-09-16 15:57:21,120 ERROR [stderr] (ServerService Thread Pool -- 89)        at deployment.Some.ear//org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:421)^
^2022-09-16 15:57:21,120 ERROR [stderr] (ServerService Thread Pool -- 89)        at deployment.Some.ear//org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:378)^
^2022-09-16 15:57:21,120 ERROR [stderr] (ServerService Thread Pool -- 89)        at deployment.Some.ear//org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:938)^
^2022-09-16 15:57:21,121 ERROR [stderr] (ServerService Thread Pool -- 89)        at deployment.Some.ear//org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:586)^
^2022-09-16 15:57:21,121 ERROR [stderr] (ServerService Thread Pool -- 89)        at deployment.Some.ear//org.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContext(FrameworkServlet.java:702)^
^2022-09-16 15:57:21,122 ERROR [stderr] (ServerService Thread Pool -- 89)        at deployment.Some.ear//org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:668)^
^2022-09-16 15:57:21,122 ERROR [stderr] (ServerService Thread Pool -- 89)        at deployment.Some.ear//org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:716)^
^2022-09-16 15:57:21,122 ERROR [stderr] (ServerService Thread Pool -- 89)        at deployment.Some.ear//org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:591)^
^2022-09-16 15:57:21,122 ERROR [stderr] (ServerService Thread Pool -- 89)        at deployment.Some.ear//org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:530)^
^2022-09-16 15:57:21,122 ERROR [stderr] (ServerService Thread Pool -- 89)        at deployment.Some.ear//org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:170)^
^2022-09-16 15:57:21,124 ERROR [stderr] (ServerService Thread Pool -- 89)        at javax.servlet.api@2.0.0.Final//javax.servlet.GenericServlet.init(GenericServlet.java:180)^
^2022-09-16 15:57:21,137 ERROR [stderr] (ServerService Thread Pool -- 89)        at io.undertow.servlet@2.2.5.Final//io.undertow.servlet.core.LifecyleInterceptorInvocation.proceed(LifecyleInterceptorInvocation.java:117)^
^2022-09-16 15:57:21,139 ERROR [stderr] (ServerService Thread Pool -- 89)        at org.wildfly.extension.undertow@23.0.2.Final//org.wildfly.extension.undertow.security.RunAsLifecycleInterceptor.init(RunAsLifecycleInterceptor.java:78)^
^2022-09-16 15:57:21,139 ERROR [stderr] (ServerService Thread Pool -- 89)        at io.undertow.servlet@2.2.5.Final//io.undertow.servlet.core.LifecyleInterceptorInvocation.proceed(LifecyleInterceptorInvocation.java:103)^
^2022-09-16 15:57:21,140 ERROR [stderr] (ServerService Thread Pool -- 89)        at io.undertow.servlet@2.2.5.Final//io.undertow.servlet.core.ManagedServlet$DefaultInstanceStrategy.start(ManagedServlet.java:305)^
^2022-09-16 15:57:21,140 ERROR [stderr] (ServerService Thread Pool -- 89)        at io.undertow.servlet@2.2.5.Final//io.undertow.servlet.core.ManagedServlet.createServlet(ManagedServlet.java:145)^
^2022-09-16 15:57:21,141 ERROR [stderr] (ServerService Thread Pool -- 89)        at io.undertow.servlet@2.2.5.Final//io.undertow.servlet.core.DeploymentManagerImpl$2.call(DeploymentManagerImpl.java:588)^
^2022-09-16 15:57:21,141 ERROR [stderr] (ServerService Thread Pool -- 89)        at io.undertow.servlet@2.2.5.Final//io.undertow.servlet.core.DeploymentManagerImpl$2.call(DeploymentManagerImpl.java:559)^
^2022-09-16 15:57:21,142 ERROR [stderr] (ServerService Thread Pool -- 89)        at io.undertow.servlet@2.2.5.Final//io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:42)^
^2022-09-16 15:57:21,143 ERROR [stderr] (ServerService Thread Pool -- 89)        at io.undertow.servlet@2.2.5.Final//io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43)^
^2022-09-16 15:57:21,144 ERROR [stderr] (ServerService Thread Pool -- 89)        at org.wildfly.extension.undertow@23.0.2.Final//org.wildfly.extension.undertow.security.SecurityContextThreadSetupAction.lambda$create$0(SecurityContextThreadSetupAction.java:105)^
^2022-09-16 15:57:21,144 ERROR [stderr] (ServerService Thread Pool -- 89)        at org.wildfly.extension.undertow@23.0.2.Final//org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1530)^
^2022-09-16 15:57:21,144 ERROR [stderr] (ServerService Thread Pool -- 89)        at org.wildfly.extension.undertow@23.0.2.Final//org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1530)^
^2022-09-16 15:57:21,145 ERROR [stderr] (ServerService Thread Pool -- 89)        at org.wildfly.extension.undertow@23.0.2.Final//org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1530)^
^2022-09-16 15:57:21,145 ERROR [stderr] (ServerService Thread Pool -- 89)        at org.wildfly.extension.undertow@23.0.2.Final//org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1530)^
^2022-09-16 15:57:21,145 ERROR [stderr] (ServerService Thread Pool -- 89)        at io.undertow.servlet@2.2.5.Final//io.undertow.servlet.core.DeploymentManagerImpl.start(DeploymentManagerImpl.java:601)^
^2022-09-16 15:57:21,145 ERROR [stderr] (ServerService Thread Pool -- 89)        at org.wildfly.extension.undertow@23.0.2.Final//org.wildfly.extension.undertow.deployment.UndertowDeploymentService.startContext(UndertowDeploymentService.java:97)^
^2022-09-16 15:57:21,145 ERROR [stderr] (ServerService Thread Pool -- 89)        at org.wildfly.extension.undertow@23.0.2.Final//org.wildfly.extension.undertow.deployment.UndertowDeploymentService$1.run(UndertowDeploymentService.java:78)^
^2022-09-16 15:57:21,146 ERROR [stderr] (ServerService Thread Pool -- 89)        at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)^
^2022-09-16 15:57:21,146 ERROR [stderr] (ServerService Thread Pool -- 89)        at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)^
^2022-09-16 15:57:21,146 ERROR [stderr] (ServerService Thread Pool -- 89)        at org.jboss.threads@2.4.0.Final//org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)^
^2022-09-16 15:57:21,147 ERROR [stderr] (ServerService Thread Pool -- 89)        at org.jboss.threads@2.4.0.Final//org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1990)^
^2022-09-16 15:57:21,148 ERROR [stderr] (ServerService Thread Pool -- 89)        at org.jboss.threads@2.4.0.Final//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1486)^
^2022-09-16 15:57:21,148 ERROR [stderr] (ServerService Thread Pool -- 89)        at org.jboss.threads@2.4.0.Final//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1377)^
^2022-09-16 15:57:21,148 ERROR [stderr] (ServerService Thread Pool -- 89)        at java.base/java.lang.Thread.run(Thread.java:834)^
^2022-09-16 15:57:21,148 ERROR [stderr] (ServerService Thread Pool -- 89)        at org.jboss.threads@2.4.0.Final//org.jboss.threads.JBossThread.run(JBossThread.java:513)^
^2022-09-16 15:57:21,149 ERROR [stderr] (ServerService Thread Pool -- 89)^
^2022-09-16 15:57:21,150 ERROR [stderr] (ServerService Thread Pool -- 89) 2022-09-16 15:57:21,150 ServerService Thread Pool -- 89 ERROR Unable to invoke factory method in class org.apache.logging.log4j.core.appender.ConsoleAppender for element Console: java.lang.IllegalStateException: No factory method found for class org.apache.logging.log4j.core.appender.ConsoleAppender java.lang.IllegalStateException: No factory method found for class org.apache.logging.log4j.core.appender.ConsoleAppender^
^2022-09-16 15:57:21,150 ERROR [stderr] (ServerService Thread Pool -- 89)        at org.apache.logging.log4j@2.17.1//org.apache.logging.log4j.core.config.plugins.util.PluginBuilder.findFactoryMethod(PluginBuilder.java:236)^
^2022-09-16 15:57:21,150 ERROR [stderr] (ServerService Thread Pool -- 89)        at org.apache.logging.log4j@2.17.1//org.apache.logging.log4j.core.config.plugins.util.PluginBuilder.build(PluginBuilder.java:134)^
^2022-09-16 15:57:21,150 ERROR [stderr] (ServerService Thread Pool -- 89)        at org.apache.logging.log4j@2.17.1//org.apache.logging.log4j.core.config.AbstractConfiguration.createPluginObject(AbstractConfiguration.java:1120)^
^2022-09-16 15:57:21,150 ERROR [stderr] (ServerService Thread Pool -- 89)        at org.apache.logging.log4j@2.17.1//org.apache.logging.log4j.core.config.AbstractConfiguration.createConfiguration(AbstractConfiguration.java:1045)^
^2022-09-16 15:57:21,153 ERROR [stderr] (ServerService Thread Pool -- 89)        at org.apache.logging.log4j@2.17.1//org.apache.logging.log4j.core.config.AbstractConfiguration.createConfiguration(AbstractConfiguration.java:1037)^
^2022-09-16 15:57:21,154 ERROR [stderr] (ServerService Thread Pool -- 89)        at org.apache.logging.log4j@2.17.1//org.apache.logging.log4j.core.config.AbstractConfiguration.doConfigure(AbstractConfiguration.java:651)^
^2022-09-16 15:57:21,154 ERROR [stderr] (ServerService Thread Pool -- 89)        at org.apache.logging.log4j@2.17.1//org.apache.logging.log4j.core.config.AbstractConfiguration.initialize(AbstractConfiguration.java:247)^
^2022-09-16 15:57:21,169 ERROR [stderr] (ServerService Thread Pool -- 89)        at org.apache.logging.log4j@2.17.1//org.apache.logging.log4j.core.config.AbstractConfiguration.start(AbstractConfiguration.java:293)^
^2022-09-16 15:57:21,170 ERROR [stderr] (ServerService Thread Pool -- 89)        at org.apache.logging.log4j@2.17.1//org.apache.logging.log4j.core.LoggerContext.setConfiguration(LoggerContext.java:626)^
^2022-09-16 15:57:21,171 ERROR [stderr] (ServerService Thread Pool -- 89)        at org.apache.logging.log4j@2.17.1//org.apache.logging.log4j.core.LoggerContext.start(LoggerContext.java:302)^
^2022-09-16 15:57:21,171 ERROR [stderr] (ServerService Thread Pool -- 89)        at deployment.Some.ear//com.motive.modelViewPlatform.configurationService.LogInitializer.setupDbLog4jProperties(LogInitializer.java:171)^
^2022-09-16 15:57:21,172 ERROR [stderr] (ServerService Thread Pool -- 89)        at deployment.Some.ear//com.motive.modelViewPlatform.configurationService.LogInitializer.setLogLevels(LogInitializer.java:60)^
^2022-09-16 15:57:21,172 ERROR [stderr] (ServerService Thread Pool -- 89)        at deployment.Some.ear.ConfigurationManager-220.1.0.0-SNAPSHOT.war//com.motive.serviceview.configurationmanager.webapp.StartupListener.onApplicationEvent(StartupListener.java:47)^
^2022-09-16 15:57:21,172 ERROR [stderr] (ServerService Thread Pool -- 89)        at deployment.Some.ear.ConfigurationManager-220.1.0.0-SNAPSHOT.war//com.motive.serviceview.configurationmanager.webapp.StartupListener.onApplicationEvent(StartupListener.java:29)^
^2022-09-16 15:57:21,172 ERROR [stderr] (ServerService Thread Pool -- 89)        at deployment.Some.ear//org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:176)^
^2022-09-16 15:57:21,173 ERROR [stderr] (ServerService Thread Pool -- 89)        at deployment.Some.ear//org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:169)^
^2022-09-16 15:57:21,174 ERROR [stderr] (ServerService Thread Pool -- 89)        at deployment.Some.ear//org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:143)^
^2022-09-16 15:57:21,175 ERROR [stderr] (ServerService Thread Pool -- 89)        at deployment.Some.ear//org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:421)^
^2022-09-16 15:57:21,175 ERROR [stderr] (ServerService Thread Pool -- 89)        at deployment.Some.ear//org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:378)^
^2022-09-16 15:57:21,175 ERROR [stderr] (ServerService Thread Pool -- 89)        at deployment.Some.ear//org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:938)^
^2022-09-16 15:57:21,175 ERROR [stderr] (ServerService Thread Pool -- 89)        at deployment.Some.ear//org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:586)^
^2022-09-16 15:57:21,177 ERROR [stderr] (ServerService Thread Pool -- 89)        at deployment.Some.ear//org.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContext(FrameworkServlet.java:702)^
^2022-09-16 15:57:21,177 ERROR [stderr] (ServerService Thread Pool -- 89)        at deployment.Some.ear//org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:668)^
^2022-09-16 15:57:21,177 ERROR [stderr] (ServerService Thread Pool -- 89)        at deployment.Some.ear//org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:716)^
^2022-09-16 15:57:21,177 ERROR [stderr] (ServerService Thread Pool -- 89)        at deployment.Some.ear//org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:591)^
^2022-09-16 15:57:21,179 ERROR [stderr] (ServerService Thread Pool -- 89)        at deployment.Some.ear//org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:530)^
^2022-09-16 15:57:21,179 ERROR [stderr] (ServerService Thread Pool -- 89)        at deployment.Some.ear//org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:170)^
^2022-09-16 15:57:21,180 ERROR [stderr] (ServerService Thread Pool -- 89)        at javax.servlet.api@2.0.0.Final//javax.servlet.GenericServlet.init(GenericServlet.java:180)^
^2022-09-16 15:57:21,180 ERROR [stderr] (ServerService Thread Pool -- 89)        at io.undertow.servlet@2.2.5.Final//io.undertow.servlet.core.LifecyleInterceptorInvocation.proceed(LifecyleInterceptorInvocation.java:117)^
^2022-09-16 15:57:21,181 ERROR [stderr] (ServerService Thread Pool -- 89)        at org.wildfly.extension.undertow@23.0.2.Final//org.wildfly.extension.undertow.security.RunAsLifecycleInterceptor.init(RunAsLifecycleInterceptor.java:78)^
^2022-09-16 15:57:21,181 ERROR [stderr] (ServerService Thread Pool -- 89)        at io.undertow.servlet@2.2.5.Final//io.undertow.servlet.core.LifecyleInterceptorInvocation.proceed(LifecyleInterceptorInvocation.java:103)^
^2022-09-16 15:57:21,181 ERROR [stderr] (ServerService Thread Pool -- 89)        at io.undertow.servlet@2.2.5.Final//io.undertow.servlet.core.ManagedServlet$DefaultInstanceStrategy.start(ManagedServlet.java:305)^
^2022-09-16 15:57:21,182 ERROR [stderr] (ServerService Thread Pool -- 89)        at io.undertow.servlet@2.2.5.Final//io.undertow.servlet.core.ManagedServlet.createServlet(ManagedServlet.java:145)^
^2022-09-16 15:57:21,182 ERROR [stderr] (ServerService Thread Pool -- 89)        at io.undertow.servlet@2.2.5.Final//io.undertow.servlet.core.DeploymentManagerImpl$2.call(DeploymentManagerImpl.java:588)^
^2022-09-16 15:57:21,183 ERROR [stderr] (ServerService Thread Pool -- 89)        at io.undertow.servlet@2.2.5.Final//io.undertow.servlet.core.DeploymentManagerImpl$2.call(DeploymentManagerImpl.java:559)^
^2022-09-16 15:57:21,183 ERROR [stderr] (ServerService Thread Pool -- 89)        at io.undertow.servlet@2.2.5.Final//io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:42)^
^2022-09-16 15:57:21,183 ERROR [stderr] (ServerService Thread Pool -- 89)        at io.undertow.servlet@2.2.5.Final//io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43)^
^2022-09-16 15:57:21,184 ERROR [stderr] (ServerService Thread Pool -- 89)        at org.wildfly.extension.undertow@23.0.2.Final//org.wildfly.extension.undertow.security.SecurityContextThreadSetupAction.lambda$create$0(SecurityContextThreadSetupAction.java:105)^
^2022-09-16 15:57:21,190 ERROR [stderr] (ServerService Thread Pool -- 89)        at org.wildfly.extension.undertow@23.0.2.Final//org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1530)^
^2022-09-16 15:57:21,196 ERROR [stderr] (ServerService Thread Pool -- 89)        at org.wildfly.extension.undertow@23.0.2.Final//org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1530)^
^2022-09-16 15:57:21,197 ERROR [stderr] (ServerService Thread Pool -- 89)        at org.wildfly.extension.undertow@23.0.2.Final//org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1530)^
^2022-09-16 15:57:21,198 ERROR [stderr] (ServerService Thread Pool -- 89)        at org.wildfly.extension.undertow@23.0.2.Final//org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1530)^
^2022-09-16 15:57:21,199 ERROR [stderr] (ServerService Thread Pool -- 89)        at io.undertow.servlet@2.2.5.Final//io.undertow.servlet.core.DeploymentManagerImpl.start(DeploymentManagerImpl.java:601)^
^2022-09-16 15:57:21,199 ERROR [stderr] (ServerService Thread Pool -- 89)        at org.wildfly.extension.undertow@23.0.2.Final//org.wildfly.extension.undertow.deployment.UndertowDeploymentService.startContext(UndertowDeploymentService.java:97)^
^2022-09-16 15:57:21,200 ERROR [stderr] (ServerService Thread Pool -- 89)        at org.wildfly.extension.undertow@23.0.2.Final//org.wildfly.extension.undertow.deployment.UndertowDeploymentService$1.run(UndertowDeploymentService.java:78)^
^2022-09-16 15:57:21,200 ERROR [stderr] (ServerService Thread Pool -- 89)        at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)^
^2022-09-16 15:57:21,200 ERROR [stderr] (ServerService Thread Pool -- 89)        at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)^
^2022-09-16 15:57:21,201 ERROR [stderr] (ServerService Thread Pool -- 89)        at org.jboss.threads@2.4.0.Final//org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)^
^2022-09-16 15:57:21,201 ERROR [stderr] (ServerService Thread Pool -- 89)        at org.jboss.threads@2.4.0.Final//org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1990)^
^2022-09-16 15:57:21,201 ERROR [stderr] (ServerService Thread Pool -- 89)        at org.jboss.threads@2.4.0.Final//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1486)^
^2022-09-16 15:57:21,202 ERROR [stderr] (ServerService Thread Pool -- 89)        at org.jboss.threads@2.4.0.Final//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1377)^
^2022-09-16 15:57:21,202 ERROR [stderr] (ServerService Thread Pool -- 89)        at java.base/java.lang.Thread.run(Thread.java:834)^
^2022-09-16 15:57:21,202 ERROR [stderr] (ServerService Thread Pool -- 89)        at org.jboss.threads@2.4.0.Final//org.jboss.threads.JBossThread.run(JBossThread.java:513)^
^2022-09-16 15:57:21,203 ERROR [stderr] (ServerService Thread Pool -- 89)^
^2022-09-16 15:57:21,203 ERROR [stderr] (ServerService Thread Pool -- 89) 2022-09-16 15:57:21,203 ServerService Thread Pool -- 89 ERROR Null object returned for Console in Appenders.^
^2022-09-16 15:57:21,205 ERROR [stderr] (ServerService Thread Pool -- 89) 2022-09-16 15:57:21,205 ServerService Thread Pool -- 89 ERROR Unable to locate appender "DEFAULT" for l^

The content of log4j2.properties

^status = warn^
^dest = err^
^name = PropertiesConfig^

^filters = threshold^
^filter.threshold.type = ThresholdFilter^
^filter.threshold.level = debug^


^appenders = DEFAULT^

^appender.DEFAULT.type = Console^
^appender.DEFAULT.name = DEFAULT^
^appender.DEFAULT.layout.type = PatternLayout^
^appender.DEFAULT.layout.alwaysWriteExceptions = false^
^appender.DEFAULT.layout.pattern = %d\{yyyy-MM-dd'T'HH:mm:ss.SSSZ} %tz $${env:logging_hostname:-localhost} %-5level [%thread] %X\{soaTraceId} %logger\{32}(:%line) - %msg %ex\{separator(${env:logging_exception_lineseparator:-\n})}%n^

^appender.DEFAULT.filter.clogappender.type = ClogAppenderFilter^
^appender.DEFAULT.filter.clogappender.onMatch = DENY^
^appender.DEFAULT.filter.clogappender.onMismatch = ACCEPT^
^appender.DEFAULT.filter.clogappender.level = ALL^

^rootLogger.level = WARN^
^rootLogger.appenderRef.DEFAULT.ref = DEFAULT^

 

The 


^@Plugin(name = "ClogAppenderFilter", category = Node.CATEGORY, elementType = Filter.ELEMENT_TYPE,^
        ^printObject = true)^
^public class ClogAppenderFilter extends AbstractFilter {^

    ^private Level level;^

    ^static final String CLOG_APPENDER = "CLOG";^

    ^private ClogAppenderFilter(final Level level, final Result onMatch,^
            ^final Result onMismatch) {^
        ^super(onMatch, onMismatch);^
        ^this.level = level;^
    ^}^

    ^@Override^
    ^public Result filter(final Logger logger, final Level testLevel, final Marker marker,^
            ^final String msg,^
            ^final Object... params) {^
        ^return filter(testLevel);^
    ^}^

    ^@Override^
    ^public Result filter(final Logger logger, final Level testLevel, final Marker marker,^
            ^final Object msg,^
            ^final Throwable t) {^
        ^return filter(testLevel);^
    ^}^

    ^@Override^
    ^public Result filter(final Logger logger, final Level testLevel, final Marker marker,^
            ^final Message msg,^
            ^final Throwable t) {^
        ^return filter(testLevel);^
    ^}^

    ^@Override^
    ^public Result filter(final LogEvent event) {^
        ^return filter(event.getLevel());^
    ^}^

    ^private Result filter(final Level testLevel) {^
        ^this.level = testLevel;^
        ^String appenderType = System.getenv("logging_appender");^
        ^return CLOG_APPENDER.equals(appenderType) ? onMatch : onMismatch;^
    ^}^

    ^public Level getLevel() {^
        ^return level;^
    ^}^

    ^@Override^
    ^public String toString() {^
        ^return level.toString();^
    ^}^

    ^/**^
     ^* Create a ThresholdFilter.^
     ^*^ 
     ^* @param level The log Level.^
     ^* @param match The action to take on a match.^
     ^* @param mismatch The action to take on a mismatch.^
     ^* @return The created ThresholdFilter.^
     ^*/^
    ^@PluginFactory^
    ^public static ClogAppenderFilter createFilter(^
            ^@PluginAttribute("level") final Level level,^
            ^@PluginAttribute("onMatch") final Result match,^
            ^@PluginAttribute("onMismatch") final Result mismatch) {^
        ^final Level actualLevel = level == null ? Level.ERROR : level;^
        ^final Result onMatch = match == null ? Result.NEUTRAL : match;^
        ^final Result onMismatch = mismatch == null ? Result.DENY : mismatch;^
        ^return new ClogAppenderFilter(actualLevel, onMatch, onMismatch);^
    ^}^
^}^

 

^The jboss-deployment-structure.xml looks like this^

^<?xml version="1.0" encoding="UTF-8"?>^
^<jboss-deployment-structure>^
    ^<ear-subdeployments-isolated>false</ear-subdeployments-isolated>^
    ^<deployment>^
        ^<dependencies>^
            ^<system export="true">^
                ^<paths>^
                    ^<path name="sun/net/www/protocol/http"/>^
                ^</paths>^
            ^</system>^
            ^<module name="oracle.driver" export="true" />^
            ^<module name="javax.xml.ws.api" export="true" />^
            ^<module name="javax.jws.api" export="true" />^
            ^<module name="javax.ws.rs.api" export="true" />^
            ^<module name="com.h2database.h2" export="true" />^
            ^<module name="jdk.unsupported"/>^
            ^<module name="org.apache.logging.log4j" export="true" />^
        ^</dependencies>^
        ^<exclude-subsystems>^
            ^<subsystem name="jaxrs" />^
            ^<subsystem name="webservices" />^
            ^<subsystem name="logging" />^
        ^</exclude-subsystems>^
        ^<exclusions>^
            ^<module name="org.jboss.log4j.logmanager" />^
            ^<module name="org.apache.log4j" />^
            ^<module name="org.slf4j" />^
            ^<module name="org.apache.commons.logging" />^
        ^</exclusions>^
    ^</deployment>^
    ^<sub-deployment^
        ^name="Project.war">^
        ^<exclusions>^
            ^<module name="org.jboss.log4j.logmanager" />^
            ^<module name="org.apache.log4j" />^
            ^<module name="org.slf4j" />^
            ^<module name="org.apache.commons.logging" />^
^<module name="org.apache.logging.log4j"  />^
        ^</exclusions>^
    ^</sub-deployment>^
   ^^   
^</jboss-deployment-structure>^

If i remove the  line from Jboss-deployment-structure.xml <module name="org.apache.logging.log4j" export="true" /> then it is not throwing any error. At the same time it is  not printing any logs on the console. Could you please help me to understand what is wrong here.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)