NoSuchMethodError with Java Agent and bootclasspath in JBoss EAP 7
Issue
To use our Java Agent on EAP 7.2.9, we have to set a bootclasspath to the EAP logging jar like this:
-Xbootclasspath/p:/${jboss.home.dir}/modules/system/layers/base/org/jboss/logmanager/main/jboss-logmanager-2.1.5.Final-redhat-00001.jar
When starting there is a problem with a missing method.
Caused by: java.lang.NoSuchMethodError: org.jboss.logmanager.LogContext.getLogContextSelector()Lorg/jboss/logmanager/LogContextSelector;
After trying with a newer version of the library jboss-logmanager-2.1.18.Final-redhat-00001.jar
, the error is gone. Is it a known bug? Is the configuration correct?
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 7.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.