2 Replies Latest reply on Nov 10, 2016 12:31 PM by Helen Chen

    wildfly failed to start after adding jmxremote.port jvm param

    Helen Chen Novice

      Hi there,

       

      I'm using Wildfly 10.0.0.Final on Solaris 10 machine with java 1.8.0_66-b17, running in standalone mode. It has been working well. Now I want to use java mission control from my local machine remotely connect to Wildfly so I can monitor Wildfly. After I tried to add JVM params for JMC, I couldn't start Wildfly any more.

       

      What I did is described below. I must did something wrong. What do I need to do to make remote connect jmc work? Do I need to set JVM params? if not then what port should I use to connect to JMC remotely?

       

      I added the following configuration to the standalone.conf file

      JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote.port=7091 -Dcom.sun.management.jmxremote.rmi.port=7091 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false "

       

      when I tried to start Wildfly, it gaves error:

      WARNING: Failed to load the specified log manager class org.jboss.logmanager.LogManager
      Jul 01, 2016 8:19:12 AM org.jboss.msc.service.ServiceContainerImpl <clinit>
      INFO: JBoss MSC version 1.2.6.Final
      Jul 01, 2016 8:19:12 AM org.jboss.as.server.ApplicationServerService start
      INFO: WFLYSRV0049: WildFly Full 10.0.0.Final (WildFly Core 2.0.10.Final) starting
      Jul 01, 2016 8:19:13 AM 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 org.jboss.as.controller.extension.ParallelExtensionAddHandler$1.execute(ParallelExtensionAddHandler.java:115)
              at org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:890)
              at org.jboss.as.controller.AbstractOperationContext.processStages(AbstractOperationContext.java:659)
              at org.jboss.as.controller.AbstractOperationContext.executeOperation(AbstractOperationContext.java:370)
              at org.jboss.as.controller.OperationContextImpl.executeOperation(OperationContextImpl.java:1344)
              at org.jboss.as.controller.ModelControllerImpl.boot(ModelControllerImpl.java:459)
              at org.jboss.as.controller.AbstractControllerService.boot(AbstractControllerService.java:387)
              at org.jboss.as.controller.AbstractControllerService.boot(AbstractControllerService.java:349)
              at org.jboss.as.server.ServerService.boot(ServerService.java:392)
              at org.jboss.as.server.ServerService.boot(ServerService.java:365)
              at org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:299)
              at java.lang.Thread.run(Thread.java:745)
      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.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: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 org.jboss.as.logging.LoggingExtension.initialize(LoggingExtension.java:147)
              at org.jboss.as.controller.extension.ExtensionAddHandler.initializeExtension(ExtensionAddHandler.java:131)
              at org.jboss.as.controller.extension.ExtensionAddHandler.initializeExtension(ExtensionAddHandler.java:104)
              at org.jboss.as.controller.extension.ParallelExtensionAddHandler$ExtensionInitializeTask.call(ParallelExtensionAddHandler.java:144)
              at org.jboss.as.controller.extension.ParallelExtensionAddHandler$ExtensionInitializeTask.call(ParallelExtensionAddHandler.java:127)
              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:745)
              at org.jboss.threads.JBossThread.run(JBossThread.java:320)

      Jul 01, 2016 8:19:13 AM org.jboss.as.server.ServerService boot
      FATAL: WFLYSRV0056: Server boot has failed in an unrecoverable manner; exiting. See previous messages for details.
      Jul 01, 2016 8:19:13 AM org.jboss.as.server.BootstrapImpl$ShutdownHook shutdown
      INFO: WFLYSRV0220: Server shutdown has been requested.

       

      based on error message, I added logging param like the following

      JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote.port=7091 -Dcom.sun.management.jmxremote.rmi.port=7091 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Djava.util.logging.manager=org.jboss.logmanager.LogManager"

       

      I got the following errors:

      Could not load Logmanager "org.jboss.logmanager.LogManager"
      java.lang.ClassNotFoundException: org.jboss.logmanager.LogManager
              at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
              at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
              at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
              at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
              at java.util.logging.LogManager$1.run(LogManager.java:195)
              at java.util.logging.LogManager$1.run(LogManager.java:181)
              at java.security.AccessController.doPrivileged(Native Method)
              at java.util.logging.LogManager.<clinit>(LogManager.java:181)
              at java.util.logging.Logger.demandLogger(Logger.java:448)
              at java.util.logging.Logger.getLogger(Logger.java:502)
              at com.sun.jmx.remote.util.ClassLogger.<init>(ClassLogger.java:55)
              at sun.management.jmxremote.ConnectorBootstrap.<clinit>(ConnectorBootstrap.java:814)
              at sun.management.Agent.startAgent(Agent.java:257)
              at sun.management.Agent.startAgent(Agent.java:447)
      WARNING: Failed to load the specified log manager class org.jboss.logmanager.LogManager
      Jul 01, 2016 8:21:00 AM org.jboss.msc.service.ServiceContainerImpl <clinit>
      INFO: JBoss MSC version 1.2.6.Final
      Jul 01, 2016 8:21:00 AM org.jboss.as.server.ApplicationServerService start
      INFO: WFLYSRV0049: WildFly Full 10.0.0.Final (WildFly Core 2.0.10.Final) starting
      Jul 01, 2016 8:21:02 AM 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 org.jboss.as.controller.extension.ParallelExtensionAddHandler$1.execute(ParallelExtensionAddHandler.java:115)
              at org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:890)
              at org.jboss.as.controller.AbstractOperationContext.processStages(AbstractOperationContext.java:659)
              at org.jboss.as.controller.AbstractOperationContext.executeOperation(AbstractOperationContext.java:370)
              at org.jboss.as.controller.OperationContextImpl.executeOperation(OperationContextImpl.java:1344)
              at org.jboss.as.controller.ModelControllerImpl.boot(ModelControllerImpl.java:459)
              at org.jboss.as.controller.AbstractControllerService.boot(AbstractControllerService.java:387)
              at org.jboss.as.controller.AbstractControllerService.boot(AbstractControllerService.java:349)
              at org.jboss.as.server.ServerService.boot(ServerService.java:392)
              at org.jboss.as.server.ServerService.boot(ServerService.java:365)
              at org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:299)
              at java.lang.Thread.run(Thread.java:745)
      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.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: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 org.jboss.as.logging.LoggingExtension.initialize(LoggingExtension.java:147)
              at org.jboss.as.controller.extension.ExtensionAddHandler.initializeExtension(ExtensionAddHandler.java:131)
              at org.jboss.as.controller.extension.ExtensionAddHandler.initializeExtension(ExtensionAddHandler.java:104)
              at org.jboss.as.controller.extension.ParallelExtensionAddHandler$ExtensionInitializeTask.call(ParallelExtensionAddHandler.java:144)
              at org.jboss.as.controller.extension.ParallelExtensionAddHandler$ExtensionInitializeTask.call(ParallelExtensionAddHandler.java:127)
              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:745)
              at org.jboss.threads.JBossThread.run(JBossThread.java:320)

      Jul 01, 2016 8:21:02 AM org.jboss.as.server.ServerService boot
      FATAL: WFLYSRV0056: Server boot has failed in an unrecoverable manner; exiting. See previous messages for details.

       

      Thanks, Helen