JBoss EAP fails to initialize with log message "WARNING: Failed to load the specified log manager class org.jboss.logmanager.LogManager" when an agent uses JUL

Solution Verified - Updated -

Issue

  • Using one of the following system properties, and I get the IllegalStateException below:
-Dcom.sun.management.jmxremote=x
-Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.management.jmxremote.authenticate=false
  • Getting below logManager error on startup of EAP 6.
WARNING: Failed to load the specified log manager class org.jboss.logmanager.LogManager
Oct 14, 2014 5:04:56 PM org.jboss.msc.service.ServiceContainerImpl <clinit>
INFO: JBoss MSC version 1.1.5.Final-redhat-1
Oct 14, 2014 5:04:56 PM org.jboss.as.server.ApplicationServerService start
INFO: JBAS015899: JBoss EAP 6.3.1.GA (AS 7.4.1.Final-redhat-3) starting
Oct 14, 2014 5:04:58 PM org.jboss.as.controller.AbstractOperationContext executeStep
ERROR: JBAS014612: Operation ("parallel-extension-add") failed - address: ([])
java.lang.RuntimeException: JBAS014670: Failed initializing module org.jboss.as.logging
    at org.jboss.as.controller.extension.ParallelExtensionAddHandler$1.execute(ParallelExtensionAddHandler.java:111)
    at org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:611)
    at org.jboss.as.controller.AbstractOperationContext.doCompleteStep(AbstractOperationContext.java:489)
    at org.jboss.as.controller.AbstractOperationContext.completeStepInternal(AbstractOperationContext.java:290)
    at org.jboss.as.controller.AbstractOperationContext.executeOperation(AbstractOperationContext.java:285)
    at org.jboss.as.controller.OperationContextImpl.executeOperation(OperationContextImpl.java:1132)
    at org.jboss.as.controller.ModelControllerImpl.boot(ModelControllerImpl.java:299)
    at org.jboss.as.controller.AbstractControllerService.boot(AbstractControllerService.java:292)
    at org.jboss.as.server.ServerService.boot(ServerService.java:346)
    at org.jboss.as.server.ServerService.boot(ServerService.java:321)
    at org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:254)
    at java.lang.Thread.run(Thread.java:744)
Caused by: java.util.concurrent.ExecutionException: java.lang.IllegalStateException: JBAS011592: 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.util.concurrent.FutureTask.report(FutureTask.java:122)
    at java.util.concurrent.FutureTask.get(FutureTask.java:188)
    at org.jboss.as.controller.extension.ParallelExtensionAddHandler$1.execute(ParallelExtensionAddHandler.java:103)
    ... 11 more
Caused by: java.lang.IllegalStateException: JBAS011592: 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 org.jboss.as.logging.LoggingExtension.initialize(LoggingExtension.java:106)
    at org.jboss.as.controller.extension.ExtensionAddHandler.initializeExtension(ExtensionAddHandler.java:97)
    at org.jboss.as.controller.extension.ParallelExtensionAddHandler$ExtensionInitializeTask.call(ParallelExtensionAddHandler.java:139)
    at org.jboss.as.controller.extension.ParallelExtensionAddHandler$ExtensionInitializeTask.call(ParallelExtensionAddHandler.java:125)
    at java.util.concurrent.FutureTask.run(FutureTask.java:262)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:744)
    at org.jboss.threads.JBossThread.run(JBossThread.java:122)

Oct 14, 2014 5:04:58 PM org.jboss.as.server.ServerService boot
FATAL: JBAS015957: Server boot has failed in an unrecoverable manner; exiting. See previous messages for details.
  • Installed a Java agent (e.g. Wily Introscope) via the -javaagent JVM command-line parameter. When trying to boot JBoss, getting the following error stack trace:
java.lang.IllegalStateException: The LogManager was not properly installed (you must set the "java.util.logging.manager" system property to "org.jboss.logmanager.LogManager")
    at org.jboss.logmanager.Logger.getLogger(Logger.java:61)
    at org.jboss.as.server.Main.main(Main.java:84)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:601)
    at org.jboss.modules.Module.run(Module.java:270)
    at org.jboss.modules.Main.main(Main.java:294)

For reference , here is a very basic Java agent implementation http://bit.ly/UjXkN6 where the issue is easily reproducible

  • JBoss fails to start after numerous attempts. The following message is captured in the logs when startup fails
WARNING: Failed to load the specified log manager class org.jboss.logmanager.LogManager
Oct 14, 2014 4:53:04 PM org.jboss.msc.service.ServiceContainerImpl <clinit>
INFO: JBoss MSC version 1.1.5.Final-redhat-1
Oct 14, 2014 4:53:05 PM org.jboss.as.server.ApplicationServerService start
INFO: JBAS015899: JBoss EAP 6.3.0.GA (AS 7.4.0.Final-redhat-19) starting
Oct 14, 2014 4:53:29 PM org.jboss.as.controller.AbstractOperationContext executeStep
ERROR: JBAS014612: Operation ("parallel-extension-add") failed - address: ([])
java.lang.RuntimeException: JBAS014670: Failed initializing module org.jboss.as.logging
    at org.jboss.as.controller.extension.ParallelExtensionAddHandler$1.execute(ParallelExtensionAddHandler.java:111)
    at org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:611)
    at org.jboss.as.controller.AbstractOperationContext.doCompleteStep(AbstractOperationContext.java:489)
    at org.jboss.as.controller.AbstractOperationContext.completeStepInternal(AbstractOperationContext.java:290)
    at org.jboss.as.controller.AbstractOperationContext.executeOperation(AbstractOperationContext.java:285)
    at org.jboss.as.controller.OperationContextImpl.executeOperation(OperationContextImpl.java:1132)
    at org.jboss.as.controller.ModelControllerImpl.boot(ModelControllerImpl.java:299)
    at org.jboss.as.controller.AbstractControllerService.boot(AbstractControllerService.java:292)
    at org.jboss.as.server.ServerService.boot(ServerService.java:346)
    at org.jboss.as.server.ServerService.boot(ServerService.java:321)
    at org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:254)
    at java.lang.Thread.run(Thread.java:744)
Caused by: java.util.concurrent.ExecutionException: java.lang.IllegalStateException: JBAS011592: 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.util.concurrent.FutureTask.report(FutureTask.java:122)
    at java.util.concurrent.FutureTask.get(FutureTask.java:188)
    at org.jboss.as.controller.extension.ParallelExtensionAddHandler$1.execute(ParallelExtensionAddHandler.java:103)
    ... 11 more
.. .. ..
.. .. ..

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 8.x
    • 7.x
    • 6.x
  • JDK
    • 11
    • 8
    • 7
    • 6

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