# Setting up APM agent on Spring Application with War File Deployment to Tomcat

**URL:** <https://discuss.elastic.co/t/setting-up-apm-agent-on-spring-application-with-war-file-deployment-to-tomcat/170665>\
**Category:** APM\
**Created:** [March 4, 2019, 1:01am UTC](https://discuss.elastic.co/t/setting-up-apm-agent-on-spring-application-with-war-file-deployment-to-tomcat/170665 "2019-03-04T01:01:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![hamadkh](https://avatars.discourse-cdn.com/v4/letter/h/e79b87/32.png) [@hamadkh](https://discuss.elastic.co/u/hamadkh)\
**Post date:** [March 4, 2019, 1:01am UTC](https://discuss.elastic.co/t/setting-up-apm-agent-on-spring-application-with-war-file-deployment-to-tomcat/170665/1 "2019-03-04T01:01:31Z")

</div>

If you are asking about a problem you are experiencing, please use the following template, as it will help us help you. If you have a different problem, please delete all of this text 🙂

**Kibana version** :  
Version: 6.2.4  
**Elasticsearch version** :  
Version: 6.2.4  
**APM Server version** :  
apm-server-6.6.1  
**APM Agent language and version** :  
Java  
**Browser version** :  
Chrome latest  
**Original install method (e.g. download page, yum, deb, from source, etc.) and version**:

**Fresh install or upgraded from other version?**

**Is there anything special in your setup?** For example, are you using the Logstash or Kafka outputs? Are you using a load balancer in front of the APM Servers? Have you changed index pattern, generated custom templates, changed agent configuration etc.

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

I could not locate in documentation clear steps to attach amp agent to java application that does not consist of main entry point eg. mvc spring maven project that uses war file to deploy to tomcat server. Also if there are examples of implementation of using the Public api also available.

Thanks

---

<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:** [March 4, 2019, 7:04am UTC](https://discuss.elastic.co/t/setting-up-apm-agent-on-spring-application-with-war-file-deployment-to-tomcat/170665/2 "2019-03-04T07:04:07Z")

</div>

Hi 👋

check this out: [https://www.elastic.co/guide/en/apm/agent/java/current/setup-javaagent.html#setup-tomcat](https://www.elastic.co/guide/en/apm/agent/java/current/setup-javaagent.html#setup-tomcat)

Cheers,  
Felix

---

<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 25, 2019, 3:04am UTC](https://discuss.elastic.co/t/setting-up-apm-agent-on-spring-application-with-war-file-deployment-to-tomcat/170665/3 "2019-03-25T03:04:42Z")

</div>

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