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

**URL:** <https://discuss.elastic.co/t/jboss-5-2-0-receives-jvm-memory-events-but-services-arent-identified-java-lang-nosuchmethoderror/170019>\
**Category:** APM\
**Tags:** elastic-stack-monitoring\
**Created:** [February 26, 2019, 2:09pm UTC](https://discuss.elastic.co/t/jboss-5-2-0-receives-jvm-memory-events-but-services-arent-identified-java-lang-nosuchmethoderror/170019 "2019-02-26T14:09:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mwessman](https://avatars.discourse-cdn.com/v4/letter/m/d9b06d/32.png) [@mwessman](https://discuss.elastic.co/u/mwessman)\
**Post date:** [February 26, 2019, 2:09pm UTC](https://discuss.elastic.co/t/jboss-5-2-0-receives-jvm-memory-events-but-services-arent-identified-java-lang-nosuchmethoderror/170019/1 "2019-02-26T14:09:16Z")

</div>

**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)**:

 ![Java_agent_exceptions](https://us1.discourse-cdn.com/elastic/original/3X/a/6/a6c7e67305ce1097637f70aba06d9f192136d700.png)  
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)

---

<div class="post-metadata">

**Author:** ![Eyal\_Koren](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/eyal_koren/32/36830_2.png) [@Eyal\_Koren](https://discuss.elastic.co/u/Eyal_Koren)\
**Post date:** [February 26, 2019, 2:16pm UTC](https://discuss.elastic.co/t/jboss-5-2-0-receives-jvm-memory-events-but-services-arent-identified-java-lang-nosuchmethoderror/170019/2 "2019-02-26T14:16:26Z")

</div>

Hi and thanks for trying us out 🙂  
Please take a look at [our supported technologies page](https://www.elastic.co/guide/en/apm/agent/java/current/supported-technologies-details.html).  
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`)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [March 19, 2019, 10:16am UTC](https://discuss.elastic.co/t/jboss-5-2-0-receives-jvm-memory-events-but-services-arent-identified-java-lang-nosuchmethoderror/170019/3 "2019-03-19T10:16:28Z")

</div>

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