JBoss 5.2.0 - receives JVM memory events but services aren't identified - java.lang.NoSuchMethodError

Kibana version:

Elasticsearch version: 6.5.4

APM Server version: 6.5.4

APM Agent language and version: Java 1.4.0.

Browser version: Microsoft Edge 40.15063.674.0

Fresh install or upgraded from other version?: Fresh install

Description of the problem including expected versus actual behavior. Please include screenshots (if relevant):


Installed Java agent (version mentioned above) on RHEL - added Java properties to a JBoss EAP 5.2.0 instance and started. APM-index created in Kibana - and events are received from instrumented JVM; BUT only memory events (heap size, GC-info etc.).

No services shows up in APM "tab" and no APM-events (other than those mentioned above). So; agent gathers JVM-info fine, but can't instrument application. Logs attached in screenshot.

Java properties:

Elastic APM

JAVA_OPTS="{JAVA_OPTS} -javaagent:/tmp/elastic-apm-agent-1.4.0.jar" JAVA_OPTS="{JAVA_OPTS} -Delastic.apm.service_name=xx"
JAVA_OPTS="{JAVA_OPTS} -Delastic.apm.server_url=http://xx:9094" JAVA_OPTS="{JAVA_OPTS} -Delastic.apm.application_packages=xx"

Provide logs and/or server output (if relevant): From instrumented application:
019-02-26 14:14:22,704 INFO [main] [org.apache.coyote.http11.Http11Protocol] - Starting Coyote HTTP/1.1 on http-0.0.0.0-8080
2019-02-26 14:14:22,728 INFO [main] [org.apache.coyote.http11.Http11Protocol] - Starting Coyote HTTP/1.1 on http-0.0.0.0-8443
2019-02-26 14:14:22,731 INFO [main] [org.jboss.bootstrap.microcontainer.ServerImpl] - JBoss (Microcontainer) [5.2.0 (build: SVNTag=JBPAPP_5_2_0 date=201211232041)] Started in 1m:53s:902ms
2019-02-26 14:14:22,796 ERROR [http-0.0.0.0-8080-1] [STDERR] - java.lang.NoSuchMethodError: javax.servlet.ServletRequest.getDispatcherType()Ljavax/servlet/DispatcherType;
2019-02-26 14:14:22,797 ERROR [http-0.0.0.0-8080-1] [STDERR] - at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:181)
2019-02-26 14:14:22,797 ERROR [http-0.0.0.0-8080-1] [STDERR] - at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
2019-02-26 14:14:22,797 ERROR [http-0.0.0.0-8080-1] [STDERR] - at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
2019-02-26 14:14:22,797 ERROR [http-0.0.0.0-8080-1] [STDERR] - at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:183)
2019-02-26 14:14:22,797 ERROR [http-0.0.0.0-8080-1] [STDERR] - at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:95)
2019-02-26 14:14:22,797 ERROR [http-0.0.0.0-8080-1] [STDERR] - at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
2019-02-26 14:14:22,797 ERROR [http-0.0.0.0-8080-1] [STDERR] - at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
2019-02-26 14:14:22,797 ERROR [http-0.0.0.0-8080-1] [STDERR] - at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
2019-02-26 14:14:22,797 ERROR [http-0.0.0.0-8080-1] [STDERR] - at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
2019-02-26 14:14:22,797 ERROR [http-0.0.0.0-8080-1] [STDERR] - at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
2019-02-26 14:14:22,797 ERROR [http-0.0.0.0-8080-1] [STDERR] - at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
2019-02-26 14:14:22,797 ERROR [http-0.0.0.0-8080-1] [STDERR] - at org.jboss.web.tomcat.service.request.ActiveRequestResponseCacheValve.internalProcess(ActiveRequestResponseCacheValve.java:74)
2019-02-26 14:14:22,797 ERROR [http-0.0.0.0-8080-1] [STDERR] - at org.jboss.web.tomcat.service.request.ActiveRequestResponseCacheValve.invoke(ActiveRequestResponseCacheValve.java:47)
2019-02-26 14:14:22,797 ERROR [http-0.0.0.0-8080-1] [STDERR] - at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
2019-02-26 14:14:22,797 ERROR [http-0.0.0.0-8080-1] [STDERR] - at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
2019-02-26 14:14:22,797 ERROR [http-0.0.0.0-8080-1] [STDERR] - at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:599)
2019-02-26 14:14:22,797 ERROR [http-0.0.0.0-8080-1] [STDERR] - at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:451)
2019-02-26 14:14:22,797 ERROR [http-0.0.0.0-8080-1] [STDERR] - at java.lang.Thread.run(Thread.java:748)

Hi and thanks for trying us out :slight_smile:
Please take a look at our supported technologies page.
We don't support your JBoss version, which seems to be using an unsupported Servlet API version (seems like that from the error you get - java.lang.NoSuchMethodError: javax.servlet.ServletRequest.getDispatcherType()Ljavax/servlet/DispatcherType)

1 Like

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