[jboss-jira] [JBoss JIRA] (WFLY-3152) Failed initializing module org.jboss.as.logging

jaikiran pai (JIRA) issues at jboss.org
Mon Oct 20 07:02:35 EDT 2014


    [ https://issues.jboss.org/browse/WFLY-3152?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13013333#comment-13013333 ] 

jaikiran pai commented on WFLY-3152:
------------------------------------

{code}
if (!java.util.logging.LogManager.getLogManager().getClass().getName().equals(org.jboss.logmanager.LogManager.class.getName())) {
            throw LoggingLogger.ROOT_LOGGER.extensionNotInitialized();
        }
{code}
I think one small improvement that could be done to that logging message is to log the current logmanager being used, so that it could act as a hint on which LogManager is being picked up and causing this issue.

Max, if this is reproducible somewhere on your system, please add -verbose:class to your startup command (somewhere before or after the -D system properties) and redirect the startup output to a file (because the verbose logging is going to be too much). Once it has been successfully reproduced, please attach the verbose classloading output file to this JIRA. It  should be straightforward to figure out who's triggering the LogManager static block initialization and when.


>  Failed initializing module org.jboss.as.logging
> ------------------------------------------------
>
>                 Key: WFLY-3152
>                 URL: https://issues.jboss.org/browse/WFLY-3152
>             Project: WildFly
>          Issue Type: Bug
>            Reporter: Huu Loi Lai
>            Priority: Blocker
>
> I try to run integration test with arquillian and wildfly and I get following erros:
> 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:99)
>         at org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:591)
>         at org.jboss.as.controller.AbstractOperationContext.doCompleteStep(AbstractOperationContext.java:469)
>         at org.jboss.as.controller.AbstractOperationContext.completeStepInternal(AbstractOperationContext.java:273)
>         at org.jboss.as.controller.AbstractOperationContext.executeOperation(AbstractOperationContext.java:268)
>         at org.jboss.as.controller.ModelControllerImpl.boot(ModelControllerImpl.java:314)
>         at org.jboss.as.controller.AbstractControllerService.boot(AbstractControllerService.java:294)
>         at org.jboss.as.server.ServerService.boot(ServerService.java:356)
>         at org.jboss.as.server.ServerService.boot(ServerService.java:331)
>         at org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:256)
>         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:192)
>         at org.jboss.as.controller.extension.ParallelExtensionAddHandler$1.execute(ParallelExtensionAddHandler.java:91)
>         ... 10 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:103)
>         at org.jboss.as.controller.extension.ExtensionAddHandler.initializeExtension(ExtensionAddHandler.java:98)
>         at org.jboss.as.controller.extension.ParallelExtensionAddHandler$ExtensionInitializeTask.call(ParallelExtensionAddHandler.java:127)
>         at org.jboss.as.controller.extension.ParallelExtensionAddHandler$ExtensionInitializeTask.call(ParallelExtensionAddHandler.java:113)
>         at java.util.concurrent.FutureTask.run(FutureTask.java:266)
>         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>         at java.lang.Thread.run(Thread.java:744)
>         at org.jboss.threads.JBossThread.run(JBossThread.java:122)



--
This message was sent by Atlassian JIRA
(v6.3.1#6329)


More information about the jboss-jira mailing list