After configuring the APM Java agent with a JBoss EAP, JBoss AS, or WildFly application server, the server may fail to start with a LogManager-related exception.
You may encounter one of the following errors.
java.lang.IllegalStateException: The LogManager was not properly installed(you must set the "java.util.logging.manager" system property to"org.jboss.logmanager.LogManager")
java.lang.IllegalStateException: JBAS011592: The logging subsystem requires the log
manager to be org.jboss.logmanager.LogManager. The subsystem has not been 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"
The APM Java agent's premain() method runs before the application server starts. During agent initialization, if the JVM's java.util.logging framework is initialized before JBoss or WildFly installs its own LogManager, the JVM permanently locks in the default LogManager implementation.
When the application server later verifies that the JBoss LogManager is installed, it detects the wrong implementation and terminates the startup process.
Because this behavior depends on startup timing, network conditions, and system load, the issue may occur intermittently rather than on every server startup.
Configure the required JVM options before starting the application server.
standalone.conf.host.xml.Add the following system property:
-Djava.util.logging.manager=org.jboss.logmanager.LogManager
Update the jboss.modules.system.pkgs property to include the JBoss LogManager package.

-Djboss.modules.system.pkgs=org.jboss.byteman,com.manageengine,org.jboss.logmanager
Append the JBoss LogManager JAR using the following JVM option:
-Xbootclasspath/a:<JBOSS_HOME>/<path_to_jboss-logmanager_jar>/jboss-logmanager-<version>.jar
Replace <JBOSS_HOME>, <path_to_jboss-logmanager_jar>, and <version> with the appropriate values for your installation.
If you are using JDK 9 or later, add the following JVM option:
-Dsun.util.logging.disableCallerCheck=true
After applying the above changes, restart the JBoss or WildFly server for the configuration to take effect.
This issue occurs because the JVM initializes the default Java LogManager before JBoss or WildFly installs its own logging implementation. Configuring the required JVM properties ensures that the correct JBoss LogManager is loaded during startup, allowing the application server and the APM Java agent to coexist without startup failures.