APM java agent on JBoss 6

Hello all,

i have problems to use the apm-java-agent within a jboss6 application server. I know this server isn't listed in the officaly supported webservers, but i hope someone can help.
The problem lies probably not with the apm-java-agent itself but with the way i integrated the agent.

I can add the java agent to the start configuration of the jboss server and it instruments the parts that should be instrument (JDBC and Servlet container).

The problem comes when i try to call a url from an app that is deployed in the jboss 6 server. With a call there is always a NoClassDefFound Error in the Logs for the Elastic APM Classes. But this is only the case for the JDBC Span, i get a transaction for this request in the apm server.

I have set the java agent argument in the run.conf.bat

set "JAVA_OPTS=%JAVA_OPTS% -javaagent:U:\Projects\ElkStack\apm\elastic-apm-agent-0.6.1.jar"

I also tried to include the agent jar in the classpath but that was not helpfull (server not starting).

Hi and thanks for the report!

I'm afraid there is not easy fix or workaround for this. The problem lies in the way JBoss loads classes.
But I'll look into that problem and see how easy it is to add support for JBoss.

Could you tell me the exact version you are using?


We are using jboss 6.1.0 (I known not the newest version :grin:)
apm-agent: 0.6.1
Elastic Stack (ES+Kibana+APM-Server): 6.2.4

Is JBoss 6.1.0 Java 7 compatible? I could not find information about that, but I think it might not be. The Java agent only supports Java 7+ applications.

don't know if it is officialy supported but when i use a JVM Version 7 it starts and the applications are working
(can't say if that is true for all features)

edit: https://access.redhat.com/articles/111663
here is till java 7 for jboss 6.1

But that page is about JBoss EAP, the enterprise version of JBoss. JBoss AS is the community version and is called WildFly as of version 8. I could not find any information about JBoss AS Java compatibility so far :thinking:

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.