# Monitoring Undertow using Elastic APM java agent is not giving any transaction data

**URL:** <https://discuss.elastic.co/t/monitoring-undertow-using-elastic-apm-java-agent-is-not-giving-any-transaction-data/242455>\
**Category:** APM\
**Tags:** java\
**Created:** [July 24, 2020, 6:12am UTC](https://discuss.elastic.co/t/monitoring-undertow-using-elastic-apm-java-agent-is-not-giving-any-transaction-data/242455 "2020-07-24T06:12:11Z")\
**Posts on this page:** 6\
**Page:** 2

<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:** [August 16, 2020, 6:35am UTC](https://discuss.elastic.co/t/monitoring-undertow-using-elastic-apm-java-agent-is-not-giving-any-transaction-data/242455/21 "2020-08-16T06:35:42Z")

</div>

> [@khgupta3](#):
>
> By doing that, dependency build was not working

What was not working? What error did you get?

---

<div class="post-metadata">

**Author:** ![khgupta3](https://avatars.discourse-cdn.com/v4/letter/k/b3f665/32.png) [@khgupta3](https://discuss.elastic.co/u/khgupta3)\
**Post date:** [August 17, 2020, 12:37pm UTC](https://discuss.elastic.co/t/monitoring-undertow-using-elastic-apm-java-agent-is-not-giving-any-transaction-data/242455/22 "2020-08-17T12:37:33Z")

</div>

Hi Eyal,

Post removal “provided” build wise we didn’t got any issue. But still deployment level we have same problem.

JbossFuse: \> osgi:update 412  
Error executing command: Unresolved constraint in bundle bil-xxxx [412] : Unable to resolve 407.3: missing requirement [407.3] osgi.wiring.package; (osgi.wiring.package=co.elastic.apm.opentracing)  
JbossFuse: \>

So, removing scope didn't helped.

---

<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:** [August 17, 2020, 1:34pm UTC](https://discuss.elastic.co/t/monitoring-undertow-using-elastic-apm-java-agent-is-not-giving-any-transaction-data/242455/23 "2020-08-17T13:34:51Z")

</div>

I'm not familiar enough with Fuse to assist further on this dependency problem. Generally speaking, you need to do whatever you would have done when adding any other dependency, like JDBC driver or HTTP client.

Besides, you should upgrade the agent to [the latest version](https://www.elastic.co/guide/en/apm/agent/java/current/release-notes-1.x.html#release-notes-1.18.0.rc1) as suggested above, otherwise you may have real OSGi problems with the agent itself.

---

<div class="post-metadata">

**Author:** ![khgupta3](https://avatars.discourse-cdn.com/v4/letter/k/b3f665/32.png) [@khgupta3](https://discuss.elastic.co/u/khgupta3)\
**Post date:** [August 19, 2020, 8:37am UTC](https://discuss.elastic.co/t/monitoring-undertow-using-elastic-apm-java-agent-is-not-giving-any-transaction-data/242455/24 "2020-08-19T08:37:27Z")

</div>

Thanks Eyal. Let's forget about Fuse as of now but just how to implement Opentracing.

I did upgraded the version now to 1.18.0.RC1. Defined the Tracer, dependencies and then JAVA\_OPTS to give java agent name, service name and APM Server IP.

But get below error. It should not be localhost, I guess we need to define APM Server IP somewhere in Tracer itself. Any suggestions here?

**2020-08-19 14:00:22,667 [main] WARN co.elastic.apm.agent.configuration.StartupInfo - To enable all features and decrease startup time, please configure application\_packages**

**2020-08-19 14:00:25,638 [main] INFO co.elastic.apm.agent.impl.ElasticApmTracer - Tracer switched to RUNNING state**

**Red Hat Fuse starting up. Press Enter to open the shell now...**

**2020-08-19 14:00:26,406 [elastic-apm-server-healthcheck] WARN co.elastic.apm.agent.report.ApmServerHealthChecker - Elastic APM server [http://localhost:8200/](http://localhost:8200/) is not available (Connection refused: connect)**

**2020-08-19 14:00:27,403 [elastic-apm-remote-config-poller] ERROR co.elastic.apm.agent.configuration.ApmServerConfigurationSource - Connection refused: connect**

---

<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:** [August 19, 2020, 10:01am UTC](https://discuss.elastic.co/t/monitoring-undertow-using-elastic-apm-java-agent-is-not-giving-any-transaction-data/242455/25 "2020-08-19T10:01:30Z")

</div>

> [@khgupta3](#):
>
> Let's forget about Fuse as of now but just how to implement Opentracing

I did my best suggesting how to implement OpenTracing on camel above. It seems what you got stuck at is a Fuse dependency problem. The OpenTracing bridge classes (`co.elastic.apm.opentracing` package) should be reachable from your application code. It may require you to modify Fuse OSGi settings. I can't assist further on that.

> [@khgupta3](#):
>
> I guess we need to define APM Server IP somewhere in Tracer itself. Any suggestions here?

No, same configurations that you used before that worked to enabled communication with APM server should work now as well. Set the agent's `log_level` to `DEBUG` and see what happens. Your settings may not be picked up properly.

---

<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:** [September 9, 2020, 6:01am UTC](https://discuss.elastic.co/t/monitoring-undertow-using-elastic-apm-java-agent-is-not-giving-any-transaction-data/242455/26 "2020-09-09T06:01:45Z")

</div>

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

[Previous page](https://discuss.elastic.co/t/monitoring-undertow-using-elastic-apm-java-agent-is-not-giving-any-transaction-data/242455.md?page=1)
