Jboss logging error
search cancel

Jboss logging error

book

Article ID: 249542

calendar_today

Updated On:

Products

CA Application Performance Management (APM / Wily / Introscope)

Issue/Introduction

Seconds later I hit another error. But it seems like more of a wildfly-thing. 

INFO: JBoss MSC version 1.4.12.Final
 EM org.jboss.threads.Version <clinit>
INFO: JBoss Threads version 2.4.0.Final
 EM org.jboss.as.server.ApplicationServerService start
INFO: WFLYSRV0049: WildFly Full 23.0.1.Final (WildFly Core 15.0.1.Final) starting
 EM org.wildfly.security.Version <clinit>
INFO: ELY00001: WildFly Elytron version 1.15.3.Final
 EM org.jboss.as.controller.AbstractOperationContext executeStep
ERROR: WFLYCTL0013: Operation ("parallel-extension-add") failed - address: ([])
java.lang.RuntimeException: WFLYCTL0079: Failed initializing module org.jboss.as.logging
        at [email protected].1.Final//org.jboss.as.controller.extension.ParallelExtensionAddHandler$1.execute(ParallelExtensionAddHandler.java:115)
        at [email protected].1.Final//org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:1040)
        at [email protected].1.Final//org.jboss.as.controller.AbstractOperationContext.processStages(AbstractOperationContext.java:779)
        at [email protected].1.Final//org.jboss.as.controller.AbstractOperationContext.executeOperation(AbstractOperationContext.java:468)
        at [email protected].1.Final//org.jboss.as.controller.OperationContextImpl.executeOperation(OperationContextImpl.java:1415)
        at [email protected].1.Final//org.jboss.as.controller.ModelControllerImpl.boot(ModelControllerImpl.java:503)
        at [email protected].1.Final//org.jboss.as.controller.AbstractControllerService.boot(AbstractControllerService.java:515)
        at [email protected].1.Final//org.jboss.as.controller.AbstractControllerService.boot(AbstractControllerService.java:477)
        at [email protected].Final//org.jboss.as.server.ServerService.boot(ServerService.java:459)
        at [email protected].Final//org.jboss.as.server.ServerService.boot(ServerService.java:412)
        at [email protected].1.Final//org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:416)
        at java.base/java.lang.Thread.run(Thread.java:829)
Caused by: java.util.concurrent.ExecutionException: java.lang.IllegalStateException: WFLYLOG0078: The logging subsystem requires the log manager to be org.jboss.logmanager.LogManager. The subsystem has not be initialized and cannot be used. To use JBoss Log Manager you must add the system property "java.util.logging.manager" and set it to "org.jboss.logmanager.LogManager"
        at java.base/java.util.concurrent.FutureTask.report(FutureTask.java:122)
        at java.base/java.util.concurrent.FutureTask.get(FutureTask.java:191)
        at [email protected].1.Final//org.jboss.as.controller.extension.ParallelExtensionAddHandler$1.execute(ParallelExtensionAddHandler.java:107)
        ... 11 more
Caused by: java.lang.IllegalStateException: WFLYLOG0078: The logging subsystem requires the log manager to be org.jboss.logmanager.LogManager. The subsystem has not be initialized and cannot be used. To use JBoss Log Manager you must add the system property "java.util.logging.manager" and set it to "org.jboss.logmanager.LogManager"
        at [email protected].Final//org.jboss.as.logging.LoggingExtension.initialize(LoggingExtension.java:184)
        at [email protected].1.Final//org.jboss.as.controller.extension.ExtensionAddHandler.initializeExtension(ExtensionAddHandler.java:131)
        at [email protected].1.Final//org.jboss.as.controller.extension.ExtensionAddHandler.initializeExtension(ExtensionAddHandler.java:103)
        at [email protected].1.Final//org.jboss.as.controller.extension.ParallelExtensionAddHandler$ExtensionInitializeTask.call(ParallelExtensionAddHandler.java:144)
        at [email protected].1.Final//org.jboss.as.controller.extension.ParallelExtensionAddHandler$ExtensionInitializeTask.call(ParallelExtensionAddHandler.java:127)
        at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
        at [email protected]//org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
        at [email protected]//org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1990)
        at [email protected]//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1486)
        at [email protected]//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1377)
        at java.base/java.lang.Thread.run(Thread.java:829)
        at [email protected]//org.jboss.threads.JBossThread.run(JBossThread.java:513)

EM org.jboss.as.server.ServerService$4 logExit
FATAL: WFLYSRV0056: Server boot has failed in an unrecoverable manner; exiting. See previous messages for details.

I have tried adding 100 variations of the following "solution" to the start script, as Google suggests... but still getting the same error.

JAVA_OPTS="$JAVA_OPTS -Djava.util.logging.manager=org.jboss.logmanager.LogManager"
JAVA_OPTS="$JAVA_OPTS -Xbootclasspath/a:/opt/jboss/wildfly/modules/system/layers/base/org/jboss/logmanager/main/jboss-logmanager-2.1.4.Final.jar"

Environment

Release : 10.8

Component : Introscope

Resolution

In reviewing your startup script again, I noticed that you mentioned about Java 11.  I am currently using Java 8 and have no issues with Wildfly 15.  I am using RHEL 8.6.

So I installed Java 11 and reproduced your issue.  So something between Java 8 and 11 it does not like LogManager.

Through trial and error I was able to get these settings to work and Wildfly 15 to start up and log both in the Wildfly log and our Agent logging.  I was also able to see the Agent in the Investigator.  

 

JAVA_OPT1="-Djboss.modules.system.pkgs=org.jboss.logmanager,org.jboss.byteman,com.wily,com.wily.*"
JAVA_OPT2="-javaagent:/opt/wildfly-15.0.1.Final/wily10-8/wily/Agent.jar"
JAVA_OPT3="-Dsun.util.logging.disableCallerCheck=true"
JAVA_OPT4="-DagentProfile=/opt/wildfly-15.0.1.Final/wily10-8/wily/releases/2022.3/core/config/IntroscopeAgent.profile"
JAVA_OPT5="-Djava.util.logging.manager=org.jboss.logmanager.LogManager"
JAVA_OPT6="-Dcom.wily.org.apache.commons.logging.Log=com.wily.org.apache.commons.logging.impl.NoOpLog"

JAVA_OPT7="-Xbootclasspath/a:/opt/wildfly-15.0.1.Final/modules/system/layers/base/org/jboss/logmanager/main/jboss-logmanager-2.1.5.Final.jar:/opt/wildfly-15.0.1.Final/modules/system/layers/base/org/wildfly/common/main/wildfly-common-1.4.0.Final.jar:/opt/wildfly-15.0.1.Final/modules/system/layers/base/org/jboss/log4j/logmanager/main/log4j-jboss-logmanager-1.1.6.Final.jar"


JAVA_OPTS="$JAVA_OPTS $JAVA_OPT1 $JAVA_OPT2 $JAVA_OPT3 $JAVA_OPT4 $JAVA_OPT5 $JAVA_OPT6 $JAVA_OPT7"