After adding Javaagent in JBoss, server does not start. It throws JBoss logger exception. How do I resolve it?
Some versions of JBoss servers (both AS & EAP) throws JBoss logger exception such as the one shown below:Caused by: java.util.concurrent.ExecutionException: java.lang.IllegalStateException: JBAS011592: 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"
In most cases, this exception occurs when the server is running on Java version 6. To overcome this, add the following parameters to JVM arguments of JBoss servers:
- Modify the value of system property "jboss.modules.system.pkgs" to "org.jboss.byteman,com.manageengine,org.jboss.logmanager"
- Add the arguments "-Djava.util.logging.manager=org.jboss.logmanager.LogManager -Xbootclasspath/p:<JBOSS_HOME>/<path_to_jboss-logmanager_jar>/jboss-logmanager-<version>.jar"
Note: Please modify the jboss-logmanager jar name and path accordingly in above argument, as it varies for different versions of JBoss
These changes can be done in JBOSS_HOME/bin/standalone.sh(.conf.bat) file for standalone servers and JBOSS_HOME/domain/configuration/host.xml file for servers in domain setup
Restart your JBoss server for the changes to take effect.
Related Articles
Troubleshooting steps when the Network Module does not start properly
Follow the steps below to fix Network Module-related issues. If the issue is not resolved by the first step, try the subsequent steps until the issue is resolved. Step 1: Stop the On-Premise Poller and restart it with administrator or root ...
Configure APM Insight Javaagent in JBoss EAP 6.1.0 GA Server
There is a bug in JBoss EAP 6.1.0 which acts as a hindrance to deploy the APM Insight Java agent in the server. The bug report can be found here : https://bugzilla.redhat.com/show_bug.cgi?id=969530 We suggest you to upgrade your JBoss EAP server to ...
Resolve the error message "Metric dispatch failed. Exception: weblogic.net.http.SOAPHttpsURLConnection cannot be cast to javax.net.ssl.HttpsURLConnection is observed in agent logs"
This exception occurs specifically in weblogic servers, as it uses its own HTTP handler. To resolve this kindly add the parameter -DUseSunHttpHandler=true to the JVM arguments and restart the weblogic server instances. Example: ...
Start/stop the server monitoring agent
Follow the steps below to start, stop, or restart a server monitoring agent for Windows, Linux, FreeBSD, and OS X. Windows agent: Follow either of the two methods given below to start, stop, or restart the server monitoring agent in your Windows ...
How do you enable or disable Management Actions in your Windows server?
Management Actions can be used to start or stop VM configurations in a Hyper-V server, services in a Windows server, or sites and application pools in an IIS server. These actions can't be performed if Management Actions is disabled in the server ...