Uploaded image for project: 'Red Hat Data Grid'
  1. Red Hat Data Grid
  2. JDG-4726

ClassNotFoundException: org.apache.logging.log4j.jul.LogManager when we enable JMX

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • RHDG 8.4 GA
    • RHDG 8.2 CR1
    • Server
    • None
    • False
    • False
    • Undefined

      The following exception is being throw when we enable JMX

      Could not load Logmanager "org.apache.logging.log4j.jul.LogManager"
      java.lang.ClassNotFoundException: org.apache.logging.log4j.jul.LogManager
      	at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
      	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
      	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:846)
      	at sun.management.Agent.startAgent(Agent.java:262)
      	at sun.management.Agent.startAgent(Agent.java:452)
      Jul 19, 2021 9:07:48 AM org.infinispan.server.Bootstrap logJVMInformation
      

      Command to reproduce:

      ./server.sh -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=9999 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false
      

              ttarrant@redhat.com Tristan Tarrant
              gustavolira Gustavo Lira Silva
              Gustavo Lira Silva Gustavo Lira Silva
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: