# APM Server unable to get data from my servlet based application

**URL:** <https://discuss.elastic.co/t/apm-server-unable-to-get-data-from-my-servlet-based-application/213126>\
**Category:** APM\
**Tags:** java\
**Created:** [December 27, 2019, 4:38am UTC](https://discuss.elastic.co/t/apm-server-unable-to-get-data-from-my-servlet-based-application/213126 "2019-12-27T04:38:46Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Varshini](https://avatars.discourse-cdn.com/v4/letter/v/96bed5/32.png) [@Varshini](https://discuss.elastic.co/u/Varshini)\
**Post date:** [December 27, 2019, 4:38am UTC](https://discuss.elastic.co/t/apm-server-unable-to-get-data-from-my-servlet-based-application/213126/1 "2019-12-27T04:38:46Z")

</div>

Hello,  
I have installed elasticsearch and kibana of version 7.0.0 and then attached apm server of version 7.5.0. I have a servlet based application running on tomcat server on windows According to this document, [https://www.elastic.co/guide/en/apm/agent/java/1.x/setup-javaagent.html#setup-tomcat-windows](https://www.elastic.co/guide/en/apm/agent/java/1.x/setup-javaagent.html#setup-tomcat-windows)  
I have created a file setenv.bat file in bin tomcat folder. The application is running fine but I can't able to get data from apm agent to my apm server.  
Here I wanted to know what is service name and application packages need to be given and where can I find these values from my application and where I need to put file, setenv.bat.

Please kindly help me in this issue.

---

<div class="post-metadata">

**Author:** ![nugusbayevkk](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nugusbayevkk/32/126683_2.png) [@nugusbayevkk](https://discuss.elastic.co/u/nugusbayevkk)\
**Post date:** [December 27, 2019, 6:06am UTC](https://discuss.elastic.co/t/apm-server-unable-to-get-data-from-my-servlet-based-application/213126/2 "2019-12-27T06:06:02Z")

</div>

Hi,  
In application\_packages you can set root package of your application [config](https://www.elastic.co/guide/en/apm/agent/java/1.x/config-stacktrace.html) .  
In service\_name you can set any value according to [config-service-name](https://www.elastic.co/guide/en/apm/agent/java/current/config-core.html#config-service-name).  
In addition I recommend setting log\_level to DEBUG ([ref](https://www.elastic.co/guide/en/apm/agent/java/current/config-logging.html))  
export CATALINA\_OPTS="$CATALINA\_OPTS -Delastic.apm.log\_level=DEBUG"

---

<div class="post-metadata">

**Author:** ![Varshini](https://avatars.discourse-cdn.com/v4/letter/v/96bed5/32.png) [@Varshini](https://discuss.elastic.co/u/Varshini)\
**Post date:** [December 27, 2019, 6:15am UTC](https://discuss.elastic.co/t/apm-server-unable-to-get-data-from-my-servlet-based-application/213126/3 "2019-12-27T06:15:46Z")

</div>

Hello,  
Thanks for the quick reply.  
Actually I don't have much idea about the application.I haven't build this application. To test APM, I have downloaded from internet.  
Can I know the root package of application from web.xml file or from any other file?  
And about service \_name, the name can be any custom name....that no need to be related to my application?

---

<div class="post-metadata">

**Author:** ![nugusbayevkk](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nugusbayevkk/32/126683_2.png) [@nugusbayevkk](https://discuss.elastic.co/u/nugusbayevkk)\
**Post date:** [December 27, 2019, 6:20am UTC](https://discuss.elastic.co/t/apm-server-unable-to-get-data-from-my-servlet-based-application/213126/4 "2019-12-27T06:20:32Z")

</div>

Can you give url of your downloaded project?

> [@Varshini](#):
>
> And about service \_name, the name can be any custom name....that no need to be related to my application?

Yes.

---

<div class="post-metadata">

**Author:** ![Varshini](https://avatars.discourse-cdn.com/v4/letter/v/96bed5/32.png) [@Varshini](https://discuss.elastic.co/u/Varshini)\
**Post date:** [December 27, 2019, 8:21am UTC](https://discuss.elastic.co/t/apm-server-unable-to-get-data-from-my-servlet-based-application/213126/5 "2019-12-27T08:21:18Z")

</div>

Hello,

Can we have a quick call on this please? We wanted to show how this is running.  
Thank you.

---

<div class="post-metadata">

**Author:** ![nugusbayevkk](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nugusbayevkk/32/126683_2.png) [@nugusbayevkk](https://discuss.elastic.co/u/nugusbayevkk)\
**Post date:** [December 27, 2019, 8:29am UTC](https://discuss.elastic.co/t/apm-server-unable-to-get-data-from-my-servlet-based-application/213126/6 "2019-12-27T08:29:04Z")

</div>

you can get root package from src dir of your downloaded project.  
For example, `com.example` .

---

<div class="post-metadata">

**Author:** ![Maheswari](https://avatars.discourse-cdn.com/v4/letter/m/db5fbb/32.png) [@Maheswari](https://discuss.elastic.co/u/Maheswari)\
**Post date:** [December 30, 2019, 10:56am UTC](https://discuss.elastic.co/t/apm-server-unable-to-get-data-from-my-servlet-based-application/213126/7 "2019-12-30T10:56:32Z")

</div>

Hi,  
We have found the root package and created files elasticapm.properties and setenv.bat as follows.  
elasticapm.properties  
service\_name=my-cool-service  
application\_packages=com.smartbear  
server\_urls=http://10.169.152.250:8200  
log\_level=DEBUG  
log\_file=D:/Smartbear/collaborator\_svr/tomcat/logs/apm.log

setenv.bat  
set CATALINA\_OPTS=%CATALINA\_OPTS% -javaagent:D:/Smartbear/collaborator\_svr/tomcat/bin/elastic-apm-agent-1.12.0.jar

and added javaagent flag as follows

java -javaagent:D:/Smartbear/collaborator\_svr/tomcat/bin/elastic-apm-agent-1.12.0.jar

However am not getting any data to my apm server.

Note: Apm-server is running on centos machine and application is running on a remote windows machine.

Please find logs .

---

<div class="post-metadata">

**Author:** ![Maheswari](https://avatars.discourse-cdn.com/v4/letter/m/db5fbb/32.png) [@Maheswari](https://discuss.elastic.co/u/Maheswari)\
**Post date:** [December 30, 2019, 10:59am UTC](https://discuss.elastic.co/t/apm-server-unable-to-get-data-from-my-servlet-based-application/213126/8 "2019-12-30T10:59:31Z")

</div>

2019-12-30 11:12:00.001 [apm-server-healthcheck] DEBUG co.elastic.apm.agent.report.ApmServerHealthChecker - Starting healthcheck to [http://10.169.152.250:8200/](http://10.169.152.250:8200/)  
2019-12-30 11:12:00.048 [main] DEBUG co.elastic.apm.agent.impl.payload.SystemInfo - container ID is null  
2019-12-30 11:12:00.097 [main] INFO co.elastic.apm.agent.configuration.StartupInfo - Starting Elastic APM 1.12.0 as my-cool-service on Java 1.8.0\_40 (Oracle Corporation) Windows Server 2012 R2 6.3  
2019-12-30 11:12:00.097 [main] DEBUG co.elastic.apm.agent.configuration.StartupInfo - service\_name: 'my-cool-service' (source: D:\Smartbear\collaborator\_svr\tomcat\bin/elasticapm.properties)  
2019-12-30 11:12:00.097 [apm-remote-config-poller] DEBUG co.elastic.apm.agent.configuration.ApmServerConfigurationSource - Reloading configuration from APM Server [http://10.169.152.250:8200/config/v1/agents](http://10.169.152.250:8200/config/v1/agents)  
2019-12-30 11:12:00.097 [main] DEBUG co.elastic.apm.agent.configuration.StartupInfo - server\_urls: '[http://10.169.152.250:8200](http://10.169.152.250:8200)' (source: D:\Smartbear\collaborator\_svr\tomcat\bin/elasticapm.properties)  
2019-12-30 11:12:00.097 [main] DEBUG co.elastic.apm.agent.configuration.StartupInfo - application\_packages: 'com.smartbear' (source: D:\Smartbear\collaborator\_svr\tomcat\bin/elasticapm.properties)  
2019-12-30 11:12:00.097 [main] DEBUG co.elastic.apm.agent.configuration.StartupInfo - log\_level: 'DEBUG' (source: D:\Smartbear\collaborator\_svr\tomcat\bin/elasticapm.properties)  
2019-12-30 11:12:00.097 [main] DEBUG co.elastic.apm.agent.configuration.StartupInfo - log\_file: 'D:/Smartbear/collaborator\_svr/tomcat/logs/apm.log' (source: D:\Smartbear\collaborator\_svr\tomcat\bin/elasticapm.properties)  
2019-12-30 11:12:00.189 [main] DEBUG co.elastic.apm.agent.jmx.JmxMetricTracker - Deferring initialization of JMX metric tracking until capture\_jmx\_metrics is set.  
2019-12-30 11:12:00.267 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.httpclient.ApacheHttpClientInstrumentation  
2019-12-30 11:12:00.267 [main] DEBUG co.elastic.apm.agent.bci.bytebuddy.CustomElementMatchers - org.apache.http.impl.execchain.ClientExecChain was loaded by Bootstrap ClassLoader  
2019-12-30 11:12:00.267 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.httpclient.ApacheHttpAsyncClientInstrumentation  
2019-12-30 11:12:00.267 [main] DEBUG co.elastic.apm.agent.bci.bytebuddy.CustomElementMatchers - org.apache.http.nio.client.HttpAsyncClient was loaded by Bootstrap ClassLoader  
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.httpclient.ApacheHttpAsyncClientRedirectInstrumentation  
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.httpclient.LegacyApacheHttpClientInstrumentation  
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.plugin.api.ElasticApmApiInstrumentation$StartTransactionInstrumentation  
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.plugin.api.ElasticApmApiInstrumentation$StartTransactionWithRemoteParentInstrumentation  
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.plugin.api.ElasticApmApiInstrumentation$CurrentTransactionInstrumentation  
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.plugin.api.ElasticApmApiInstrumentation$CurrentSpanInstrumentation  
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.plugin.api.ElasticApmApiInstrumentation$CaptureExceptionInstrumentation  
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.plugin.api.TransactionInstrumentation$SetUserInstrumentation  
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.plugin.api.TransactionInstrumentation$EnsureParentIdInstrumentation  
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.plugin.api.TransactionInstrumentation$SetResultInstrumentation  
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.plugin.api.TransactionInstrumentation$AddCustomContextInstrumentation  
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.plugin.api.AbstractSpanInstrumentation$SetNameInstrumentation  
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.plugin.api.AbstractSpanInstrumentation$SetTypeInstrumentation  
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.plugin.api.AbstractSpanInstrumentation$SetTypesInstrumentation  
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.plugin.api.AbstractSpanInstrumentation$DoCreateSpanInstrumentation  
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.plugin.api.AbstractSpanInstrumentation$SetStartTimestampInstrumentation  
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.plugin.api.AbstractSpanInstrumentation$EndInstrumentation  
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.plugin.api.AbstractSpanInstrumentation$EndWithTimestampInstrumentation  
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.plugin.api.AbstractSpanInstrumentation$CaptureExceptionInstrumentation  
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.plugin.api.AbstractSpanInstrumentation$GetIdInstrumentation  
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.plugin.api.AbstractSpanInstrumentation$GetTraceIdInstrumentation  
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.plugin.api.AbstractSpanInstrumentation$AddStringLabelInstrumentation  
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.plugin.api.AbstractSpanInstrumentation$AddNumberLabelInstrumentation  
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.plugin.api.AbstractSpanInstrumentation$AddBooleanLabelInstrumentation  
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.plugin.api.AbstractSpanInstrumentation$ActivateInstrumentation  
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.plugin.api.AbstractSpanInstrumentation$IsSampledInstrumentation  
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.plugin.api.AbstractSpanInstrumentation$InjectTraceHeadersInstrumentation  
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.plugin.api.CaptureExceptionInstrumentation  
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.plugin.api.ApiScopeInstrumentation  
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.plugin.api.CaptureTransactionInstrumentation  
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.bytebuddy.CustomElementMatchers - co.elastic.apm.api.CaptureTransaction was loaded by Bootstrap ClassLoader  
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.plugin.api.CaptureSpanInstrumentation  
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.bytebuddy.CustomElementMatchers - co.elastic.apm.api.CaptureSpan was loaded by Bootstrap ClassLoader  
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.plugin.api.TracedInstrumentation  
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.bytebuddy.CustomElementMatchers - co.elastic.apm.api.Traced was loaded by Bootstrap ClassLoader  
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.plugin.api.LegacySpanInstrumentation$SetNameInstrumentation

---

<div class="post-metadata">

**Author:** ![Maheswari](https://avatars.discourse-cdn.com/v4/letter/m/db5fbb/32.png) [@Maheswari](https://discuss.elastic.co/u/Maheswari)\
**Post date:** [December 30, 2019, 11:00am UTC](https://discuss.elastic.co/t/apm-server-unable-to-get-data-from-my-servlet-based-application/213126/9 "2019-12-30T11:00:37Z")

</div>

2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.plugin.api.LegacySpanInstrumentation$SetNameInstrumentation  
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.plugin.api.LegacySpanInstrumentation$SetTypeInstrumentation  
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.plugin.api.LegacySpanInstrumentation$DoCreateSpanInstrumentation  
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.plugin.api.LegacySpanInstrumentation$EndInstrumentation  
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.plugin.api.LegacySpanInstrumentation$CaptureExceptionInstrumentation  
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.plugin.api.LegacySpanInstrumentation$GetIdInstrumentation  
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.plugin.api.LegacySpanInstrumentation$GetTraceIdInstrumentation  
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.plugin.api.LegacySpanInstrumentation$AddTagInstrumentation  
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.plugin.api.LegacySpanInstrumentation$ActivateInstrumentation  
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.plugin.api.LegacySpanInstrumentation$IsSampledInstrumentation  
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.asynchttpclient.AbstractAsyncHttpClientInstrumentation$AsyncHttpClientInstrumentation  
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.bytebuddy.CustomElementMatchers - org.asynchttpclient.AsyncHandler was loaded by Bootstrap ClassLoader  
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.asynchttpclient.AbstractAsyncHttpClientInstrumentation$AsyncHandlerOnCompletedInstrumentation  
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.bytebuddy.CustomElementMatchers - org.asynchttpclient.AsyncHandler was loaded by Bootstrap ClassLoader  
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.asynchttpclient.AbstractAsyncHttpClientInstrumentation$AsyncHandlerOnThrowableInstrumentation  
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.bytebuddy.CustomElementMatchers - org.asynchttpclient.AsyncHandler was loaded by Bootstrap ClassLoader  
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.asynchttpclient.AbstractAsyncHttpClientInstrumentation$AsyncHandlerOnStatusReceivedInstrumentation  
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.bytebuddy.CustomElementMatchers - org.asynchttpclient.AsyncHandler was loaded by Bootstrap ClassLoader  
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.error.logging.Slf4jLoggingInstrumentation  
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.concurrent.ExecutorInstrumentation$ExecutorRunnableInstrumentation  
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.concurrent.ExecutorInstrumentation$ExecutorCallableInstrumentation  
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.jaxrs.JaxRsTransactionNameInstrumentation  
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.bytebuddy.CustomElementMatchers - javax.ws.rs.Path was loaded by Bootstrap ClassLoader  
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.jaxws.JaxWsTransactionNameInstrumentation  
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.bytebuddy.CustomElementMatchers - javax.jws.WebService was loaded by Bootstrap ClassLoader from jar:file:/D:/Java/jre1.8.0\_40/lib/rt.jar!/javax/jws/WebService.class  
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.jdbc.ConnectionInstrumentation  
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.jdbc.StatementInstrumentation$ExecuteWithQueryInstrumentation  
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.jdbc.StatementInstrumentation$ExecuteUpdateWithQueryInstrumentation  
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.jdbc.StatementInstrumentation$ExecuteUpdateNoQueryInstrumentation  
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.jdbc.StatementInstrumentation$AddBatchInstrumentation  
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.jdbc.StatementInstrumentation$ExecuteBatchInstrumentation  
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.jdbc.StatementInstrumentation$ExecutePreparedStatementInstrumentation  
2019-12-30 11:12:00.282 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.redis.jedis.JedisInstrumentation  
2019-12-30 11:12:00.298 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.redis.jedis.JedisSpanNameInstrumentation  
2019-12-30 11:12:00.298 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.jsf.JsfLifecycleInstrumentation$JsfLifecycleExecuteInstrumentation  
2019-12-30 11:12:00.298 [main] DEBUG co.elastic.apm.agent.bci.bytebuddy.CustomElementMatchers - javax.faces.lifecycle.Lifecycle was loaded by Bootstrap ClassLoader  
2019-12-30 11:12:00.298 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.jsf.JsfLifecycleInstrumentation$JsfLifecycleRenderInstrumentation  
2019-12-30 11:12:00.298 [main] DEBUG co.elastic.apm.agent.bci.bytebuddy.CustomElementMatchers - javax.faces.lifecycle.Lifecycle was loaded by Bootstrap ClassLoader  
2019-12-30 11:12:00.298 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.hibernate.search.v5\_x.HibernateSearch5Instrumentation  
2019-12-30 11:12:00.298 [main] DEBUG co.elastic.apm.agent.bci.bytebuddy.CustomElementMatchers - org.hibernate.search.FullTextQuery was loaded by Bootstrap ClassLoader  
2019-12-30 11:12:00.298 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.es.restclient.v5\_6.ElasticsearchClientSyncInstrumentation  
2019-12-30 11:12:00.298 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.es.restclient.v5\_6.ElasticsearchClientAsyncInstrumentation  
2019-12-30 11:12:00.298 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.es.restclient.v6\_4.ElasticsearchClientSyncInstrumentation  
2019-12-30 11:12:00.298 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.es.restclient.v6\_4.ElasticsearchClientAsyncInstrumentation  
2019-12-30 11:12:00.298 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.mongoclient.ConnectionCommandInstrumentation  
2019-12-30 11:12:00.298 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.mongoclient.ConnectionInstrumentation  
2019-12-30 11:12:00.298 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.mule4.Mule4OverrideClassLoaderLookupInstrumentation  
2019-12-30 11:12:00.298 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.okhttp.OkHttpClientInstrumentation  
2019-12-30 11:12:00.298 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.okhttp.OkHttp3ClientInstrumentation  
2019-12-30 11:12:00.298 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.okhttp.OkHttpClientAsyncInstrumentation  
2019-12-30 11:12:00.298 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.okhttp.OkHttp3ClientAsyncInstrumentation

---

<div class="post-metadata">

**Author:** ![nugusbayevkk](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nugusbayevkk/32/126683_2.png) [@nugusbayevkk](https://discuss.elastic.co/u/nugusbayevkk)\
**Post date:** [January 6, 2020, 7:44am UTC](https://discuss.elastic.co/t/apm-server-unable-to-get-data-from-my-servlet-based-application/213126/10 "2020-01-06T07:44:34Z")

</div>

Hi, Did you try to request some url of your application?

---

<div class="post-metadata">

**Author:** ![felixbarny](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/felixbarny/32/27341_2.png) [@felixbarny](https://discuss.elastic.co/u/felixbarny)\
**Post date:** [January 7, 2020, 9:33am UTC](https://discuss.elastic.co/t/apm-server-unable-to-get-data-from-my-servlet-based-application/213126/11 "2020-01-07T09:33:41Z")

</div>

Hi 👋

all configuration options besides `server_urls` are optional. To me, it seems the url might not be valid/reachable.

As you can see in [https://www.elastic.co/guide/en/apm/agent/java/current/trouble-shooting.html#trouble-shooting-logging](https://www.elastic.co/guide/en/apm/agent/java/current/trouble-shooting.html#trouble-shooting-logging), it's expected to see a log line similar to this one in the logs:

```auto
[apm-server-healthcheck] INFO co.elastic.apm.agent.report.ApmServerHealthChecker - Elastic APM server is available: {"build_date":"2018-11-05T07:58:08Z","build_sha":"dffb98a72a262ca22adad0152f0245ea743ea904","version":"7.0.0-alpha1"}

```

Could you please upload your complete your complete log file? See also [https://www.elastic.co/guide/en/apm/agent/java/current/trouble-shooting.html](https://www.elastic.co/guide/en/apm/agent/java/current/trouble-shooting.html)

---

<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:** [January 28, 2020, 5:33am UTC](https://discuss.elastic.co/t/apm-server-unable-to-get-data-from-my-servlet-based-application/213126/12 "2020-01-28T05:33:45Z")

</div>

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