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).
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?
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)
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
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.