# Tomcat and Elastic Search

**URL:** <https://discuss.elastic.co/t/tomcat-and-elastic-search/7899>\
**Category:** Elasticsearch\
**Created:** [May 29, 2012, 8:01pm UTC](https://discuss.elastic.co/t/tomcat-and-elastic-search/7899 "2012-05-29T20:01:07Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rajesh\_Jain](https://avatars.discourse-cdn.com/v4/letter/r/7993a0/32.png) [@Rajesh\_Jain](https://discuss.elastic.co/u/Rajesh_Jain)\
**Post date:** [May 29, 2012, 8:01pm UTC](https://discuss.elastic.co/t/tomcat-and-elastic-search/7899/1 "2012-05-29T20:01:07Z")

</div>

Can I run ES as a webapp within a tomcat container?

Thanks  
Rajesh

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [May 29, 2012, 8:27pm UTC](https://discuss.elastic.co/t/tomcat-and-elastic-search/7899/2 "2012-05-29T20:27:49Z")

</div>

You probably can write your own war with a Servlet which start an ES node.

What is your use case ?

David 😉  
Twitter : @dadoonet / @elasticsearchfr

Le 29 mai 2012 à 22:01, Rajesh Jain [rjain15@gmail.com](mailto:rjain15@gmail.com) a écrit :

> Can I run ES as a webapp within a tomcat container?
> 
> Thanks  
> Rajesh

---

<div class="post-metadata">

**Author:** ![mvg](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mvg/32/98890_2.png) [@mvg](https://discuss.elastic.co/u/mvg)\
**Post date:** [May 29, 2012, 10:15pm UTC](https://discuss.elastic.co/t/tomcat-and-elastic-search/7899/3 "2012-05-29T22:15:00Z")

</div>

You can use the transport wares plugin which basically does the same:

> **[GitHub - elastic/elasticsearch-transport-wares: Servlet transport for...](https://github.com/elastic/elasticsearch-transport-wares)**
>
> Servlet transport for Elasticsearch. Contribute to elastic/elasticsearch-transport-wares development by creating an account on GitHub.

Add the elasticsearch-transport-wares as dependency to your web  
project and you can configure the provided servlet in your web.xml  
file.

Martijn

On 29 May 2012 22:27, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:

> You probably can write your own war with a Servlet which start an ES node.
> 
> What is your use case ?
> 
> David 😉  
> Twitter : @dadoonet / @elasticsearchfr
> 
> Le 29 mai 2012 à 22:01, Rajesh Jain [rjain15@gmail.com](mailto:rjain15@gmail.com) a écrit :
> 
> > Can I run ES as a webapp within a tomcat container?
> > 
> > Thanks  
> > Rajesh

--  
Met vriendelijke groet,

Martijn van Groningen

---

<div class="post-metadata">

**Author:** ![benjelloun](https://avatars.discourse-cdn.com/v4/letter/b/9fc348/32.png) [@benjelloun](https://discuss.elastic.co/u/benjelloun)\
**Post date:** [May 7, 2014, 7:08am UTC](https://discuss.elastic.co/t/tomcat-and-elastic-search/7899/4 "2014-05-07T07:08:29Z")

</div>

Hello,

can you describe steps to configure elasticSearch with tomcat6  
or an exemple if you can !

thanks

regards

---

<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:** [July 6, 2017, 1:31am UTC](https://discuss.elastic.co/t/tomcat-and-elastic-search/7899/5 "2017-07-06T01:31:10Z")

</div>


