We are using the Java APM agent v1.1.0 for monitoring a webapp in Wildfly 9.0.2.FINAL running on OpenJDK 8.
Everything works fine, until the the apm-agent-api is thrown into the mix. Whenever we access the ElasticApm class, it throws a ClassNotFoundException.
I've created a tiny HelloWorld example for reproducing the exception on github.
The Agent api is correctly included in the application war. However the api classes are simply not loaded.
I have the suspicion that this is related to the enabled bootdelegation for co.elastic.apm.*. That may make it so that these classes can only be loaded from the bootstrap class loader and not from the application class loader where the API module is at.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.