Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
2.1
-
None
-
None
-
- OS: Ubuntu 14.10
- JDK: Java(TM) SE Runtime Environment (build 1.8.0_40-ea-b15)
Description
I have started to see the following stack track after an upgrade to the mentioned JDK in the environment:
ERROR StatusLogger No log4j2 configuration file found. Using default configuration: logging only errors to the console. ERROR StatusLogger Could not reconfigure JMX java.lang.NoClassDefFoundError: sun/management/ExtendedPlatformComponent at java.lang.management.ManagementFactory.getPlatformMBeanServer(ManagementFactory.java:494) at org.apache.logging.log4j.core.jmx.Server.reregisterMBeansAfterReconfigure(Server.java:120) at org.apache.logging.log4j.core.LoggerContext.setConfiguration(LoggerContext.java:370) at org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:420) at org.apache.logging.log4j.core.LoggerContext.start(LoggerContext.java:138) at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:147) at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:41) at org.apache.logging.log4j.LogManager.getContext(LogManager.java:175)
I use a custom org.apache.logging.log4j.core.config.ConfigurationFactory to configure my setup with @Order(0) and not using XML configuration.
There is no explicit mention of moving/deleting such such in the release notes of the referenced JDK version.
Is there anyway I can disable this JMX server internally configured by log4j2?