Diego Lovison created ISPN-11906:
------------------------------------
Summary: ClassNotFoundException jul.LogManager when enabling JXM Remote
Connection
Key: ISPN-11906
URL:
https://issues.redhat.com/browse/ISPN-11906
Project: Infinispan
Issue Type: Bug
Components: Server
Affects Versions: 11.0.0.CR1
Reporter: Diego Lovison
When starting the server with {{./server.sh -Dcom.sun.management.jmxremote.port=9999
-Dcom.sun.management.jmxremote.authenticate=false
-Dcom.sun.management.jmxremote.ssl=false}}
We have the following output
{noformat}
Could not load Logmanager "org.apache.logging.log4j.jul.LogManager"
java.lang.ClassNotFoundException: org.apache.logging.log4j.jul.LogManager
at
java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581)
at
java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
at java.logging/java.util.logging.LogManager$1.run(LogManager.java:239)
at java.logging/java.util.logging.LogManager$1.run(LogManager.java:223)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.logging/java.util.logging.LogManager.<clinit>(LogManager.java:223)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at
java.management/sun.management.ManagementFactoryHelper$LoggingMXBeanAccess.getMXBeanImplementation(ManagementFactoryHelper.java:238)
at
java.management/sun.management.ManagementFactoryHelper$LoggingMXBeanAccess.<init>(ManagementFactoryHelper.java:254)
at
java.management/sun.management.ManagementFactoryHelper$PlatformLoggingImpl.getInstance(ManagementFactoryHelper.java:334)
at
java.management/sun.management.ManagementFactoryHelper$PlatformLoggingImpl.<clinit>(ManagementFactoryHelper.java:337)
at
java.management/sun.management.ManagementFactoryHelper.getPlatformLoggingMXBean(ManagementFactoryHelper.java:156)
at
java.management/java.lang.management.DefaultPlatformMBeanProvider$9.nameToMBeanMap(DefaultPlatformMBeanProvider.java:386)
at
java.management/java.lang.management.ManagementFactory.lambda$getPlatformMBeanServer$0(ManagementFactory.java:487)
at
java.base/java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:271)
at
java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:177)
at
java.base/java.util.HashMap$ValueSpliterator.forEachRemaining(HashMap.java:1675)
at
java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484)
at
java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)
at
java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150)
at
java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173)
at
java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at
java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:497)
at
java.management/java.lang.management.ManagementFactory.getPlatformMBeanServer(ManagementFactory.java:488)
at
jdk.management.agent/sun.management.jmxremote.ConnectorBootstrap.startRemoteConnectorServer(ConnectorBootstrap.java:475)
at jdk.management.agent/jdk.internal.agent.Agent.startAgent(Agent.java:447)
at jdk.management.agent/jdk.internal.agent.Agent.startAgent(Agent.java:599)
May 25, 2020 1:51:57 PM org.infinispan.server.Bootstrap logJVMInformation
INFO: JVM OpenJDK 64-Bit Server VM AdoptOpenJDK 11.0.7+10
May 25, 2020 1:51:57 PM org.infinispan.server.Bootstrap logJVMInformation
INFO: JVM arguments = [-server, -Dcom.sun.management.jmxremote.port=9999,
-Dcom.sun.management.jmxremote.authenticate=false,
-Dcom.sun.management.jmxremote.ssl=false, -Xms64m, -Xmx512m, -XX:MetaspaceSize=64M,
-Djava.net.preferIPv4Stack=true, -Djava.awt.headless=true,
-Dvisualvm.display.name=infinispan-server,
-Djava.util.logging.manager=org.apache.logging.log4j.jul.LogManager,
-Dinfinispan.server.home.path=/Users/dlovison/Documents/GitHub/infinispan/infinispan/server/runtime/target/infinispan-server-11.0.0-SNAPSHOT,
-classpath,
:/Users/dlovison/Documents/GitHub/infinispan/infinispan/server/runtime/target/infinispan-server-11.0.0-SNAPSHOT/boot/infinispan-server-runtime-11.0.0-SNAPSHOT-loader.jar,
org.infinispan.server.loader.Loader, org.infinispan.server.Bootstrap]
May 25, 2020 1:51:57 PM org.infinispan.server.Bootstrap logJVMInformation
INFO: PID = 7869
13:51:58,238 INFO (main) [org.infinispan.SERVER] ISPN080000: Infinispan Server starting
13:51:58,241 INFO (main) [org.infinispan.SERVER] ISPN080017: Server configuration:
/Users/dlovison/Documents/GitHub/infinispan/infinispan/server/runtime/target/infinispan-server-11.0.0-SNAPSHOT/server/conf/infinispan.xml
13:51:58,241 INFO (main) [org.infinispan.SERVER] ISPN080032: Logging configuration:
/Users/dlovison/Documents/GitHub/infinispan/infinispan/server/runtime/target/infinispan-server-11.0.0-SNAPSHOT/server/conf/log4j2.xml
13:51:59,123 INFO (main) [org.infinispan.SERVER] ISPN080027: Loaded extension
'query-dsl-filter-converter-factory'
13:51:59,123 INFO (main) [org.infinispan.SERVER] ISPN080027: Loaded extension
'continuous-query-filter-converter-factory'
13:51:59,125 INFO (main) [org.infinispan.SERVER] ISPN080027: Loaded extension
'iteration-filter-converter-factory'
13:51:59,126 INFO (main) [org.infinispan.SERVER] ISPN080027: Loaded extension
'jdk.nashorn.api.scripting.NashornScriptEngineFactory'
13:52:00,083 INFO (main) [org.infinispan.CONTAINER] ISPN000128: Infinispan version:
Infinispan 'N/A' 11.0.0-SNAPSHOT
13:52:00,088 INFO (main) [org.infinispan.CONTAINER] ISPN000389: Loaded global state,
version=11.0.0-SNAPSHOT timestamp=2020-05-25T16:41:19.238424Z
13:52:00,271 INFO (main) [org.infinispan.CLUSTER] ISPN000078: Starting JGroups channel
cluster with stack tcp
13:52:02,398 INFO (main) [org.jgroups.protocols.pbcast.GMS] Diegos-MacBook-Pro-7753: no
members discovered after 2007 ms: creating cluster as coordinator
13:52:02,411 INFO (main) [org.infinispan.CLUSTER] ISPN000094: Received new cluster view
for channel cluster: [Diegos-MacBook-Pro-7753|0] (1) [Diegos-MacBook-Pro-7753]
13:52:02,487 INFO (main) [org.infinispan.CLUSTER] ISPN000079: Channel cluster local
address is Diegos-MacBook-Pro-7753, physical addresses are [10.97.116.49:7800]
13:52:02,853 INFO (main) [org.infinispan.CONTAINER] ISPN000104: Using
EmbeddedTransactionManager
13:52:03,222 INFO (ForkJoinPool.commonPool-worker-3) [org.infinispan.SERVER] ISPN080018:
Protocol HotRod (internal)
13:52:03,323 INFO (main) [org.infinispan.SERVER] ISPN080018: Protocol REST (internal)
13:52:03,468 INFO (main) [org.infinispan.SERVER] ISPN080004: Protocol SINGLE_PORT
listening on 127.0.0.1:11222
13:52:03,469 INFO (main) [org.infinispan.SERVER] ISPN080034: Server
'Diegos-MacBook-Pro-7753' listening on
http://127.0.0.1:11222
13:52:03,469 INFO (main) [org.infinispan.SERVER] ISPN080001: Infinispan Server
11.0.0-SNAPSHOT started in 5227ms
{noformat}
The server is able to start but we should remove the ClassNotFoundException
--
This message was sent by Atlassian Jira
(v7.13.8#713008)