# Issue with plugin loading when embedded ES in JBoss

**URL:** <https://discuss.elastic.co/t/issue-with-plugin-loading-when-embedded-es-in-jboss/25406>\
**Category:** Elasticsearch\
**Created:** [July 13, 2015, 3:31am UTC](https://discuss.elastic.co/t/issue-with-plugin-loading-when-embedded-es-in-jboss/25406 "2015-07-13T03:31:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![thibaultclem](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thibaultclem/32/3668_2.png) [@thibaultclem](https://discuss.elastic.co/u/thibaultclem)\
**Post date:** [July 13, 2015, 3:31am UTC](https://discuss.elastic.co/t/issue-with-plugin-loading-when-embedded-es-in-jboss/25406/1 "2015-07-13T03:31:41Z")

</div>

Hi guys,

After successfully embedded ES in Tomcat, I'm now trying to embedded it in JBoss but I get an issue with Plugins.  
I configure in elasticsearch.yml the path where I install my plugin:

```
path.plugins: es/plugins

```

In [JBOSS\_SERVER]/es/plugins I added two plugins: elasticsearch-head and [elasticsearch-http-basic](https://github.com/Asquera/elasticsearch-http-basic)  
When I start my JBoss I can see in the logs that only the head plugins is loaded. I tested with others plugins (even official plugin) and it's always the same: Only site plugins are loaded, not the jar plugins.

For information I use the elasticsearch-transport-wares (2.6) to embedded ES in a war that I deploy in JBoss and I didn't do any speacial configuration to JBoss.  
The ES is working well (I can index/search) but my problem is only that I cannot use plugins (except site plugins). I didn't get this issue on Tomcat where all my plugins was loaded.

Does anyone can help me ?

Thanks

Thib

---

<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:** [July 13, 2015, 3:46am UTC](https://discuss.elastic.co/t/issue-with-plugin-loading-when-embedded-es-in-jboss/25406/2 "2015-07-13T03:46:11Z")

</div>

Put your plugin as a dependency for your War project.

---

<div class="post-metadata">

**Author:** ![thibaultclem](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thibaultclem/32/3668_2.png) [@thibaultclem](https://discuss.elastic.co/u/thibaultclem)\
**Post date:** [July 13, 2015, 7:58am UTC](https://discuss.elastic.co/t/issue-with-plugin-loading-when-embedded-es-in-jboss/25406/3 "2015-07-13T07:58:49Z")

</div>

Exactly ! Thanks a lot David

---

<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, 12:01am UTC](https://discuss.elastic.co/t/issue-with-plugin-loading-when-embedded-es-in-jboss/25406/4 "2017-07-06T00:01:55Z")

</div>


