# Shield esusers is not using -Des.path.plugins

**URL:** https://discuss.elastic.co/t/shield-esusers-is-not-using-des-path-plugins/21882
**Category:** Elasticsearch
**Created:** [January 28, 2015, 6:03pm UTC](https://discuss.elastic.co/t/shield-esusers-is-not-using-des-path-plugins/21882 "2015-01-28T18:03:34Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Jettro\_Coenradie](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jettro_coenradie/32/59704_2.png) [@Jettro\_Coenradie](https://discuss.elastic.co/u/Jettro_Coenradie)
#### Post date: [January 28, 2015, 6:03pm UTC](https://discuss.elastic.co/t/shield-esusers-is-not-using-des-path-plugins/21882/1 "2015-01-28T18:03:34Z")

</div>

Hi,  
I am experimenting with Shield. I have a local setup where my plugins are  
not in the usual location. Using the ES\_JAVA\_OPTS with -Des.path.plugins  
does work when installing the plugin, but the esusers tool does not seem to  
use the path and comes with a message that it cannot find a certain class.

The message is:  
Error: Could not find or load main class  
org.elasticsearch.shield.authc.esusers.tool.ESUsersTool

Is this by design or a bug?

thanks Jettro

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/90fc4cc7-c6a7-4041-8383-a643d43afc74%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/90fc4cc7-c6a7-4041-8383-a643d43afc74%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

### Author: ![cybervedaa](https://avatars.discourse-cdn.com/v4/letter/c/a4c791/32.png) [@cybervedaa](https://discuss.elastic.co/u/cybervedaa)
#### Post date: [February 1, 2015, 6:49pm UTC](https://discuss.elastic.co/t/shield-esusers-is-not-using-des-path-plugins/21882/2 "2015-02-01T18:49:54Z")

</div>

Im stuck with the same problem. I tried adding $ES\_HOME/plugins/sheild/ to  
my CLASSPATH as well, but still no go.  
i also set the path to the plugins directory in my elasticsearch.yml file  
like so :  
path.plugins: /usr/local/elasticsearch/plugins/

Help!

On Wednesday, January 28, 2015 at 10:03:34 AM UTC-8, Jettro Coenradie wrote:

> Hi,  
> I am experimenting with Shield. I have a local setup where my plugins are  
> not in the usual location. Using the ES\_JAVA\_OPTS with -Des.path.plugins  
> does work when installing the plugin, but the esusers tool does not seem to  
> use the path and comes with a message that it cannot find a certain class.
> 
> The message is:  
> Error: Could not find or load main class  
> org.elasticsearch.shield.authc.esusers.tool.ESUsersTool
> 
> Is this by design or a bug?
> 
> thanks Jettro

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/fbcd49a9-ee0d-4d92-9ce5-9c1b3c158d94%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/fbcd49a9-ee0d-4d92-9ce5-9c1b3c158d94%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

### Author: ![cybervedaa](https://avatars.discourse-cdn.com/v4/letter/c/a4c791/32.png) [@cybervedaa](https://discuss.elastic.co/u/cybervedaa)
#### Post date: [February 2, 2015, 9:48pm UTC](https://discuss.elastic.co/t/shield-esusers-is-not-using-des-path-plugins/21882/3 "2015-02-02T21:48:55Z")

</div>

Its an embarrassingly silly typo, lol.  
Jettro, i see you did the same. Its shield and NOT sheild.

On Sunday, February 1, 2015 at 10:49:54 AM UTC-8, [cyber...@gmail.com](mailto:cyber...@gmail.com) wrote:

> Im stuck with the same problem. I tried adding $ES\_HOME/plugins/sheild/ to  
> my CLASSPATH as well, but still no go.  
> i also set the path to the plugins directory in my elasticsearch.yml file  
> like so :  
> path.plugins: /usr/local/elasticsearch/plugins/
> 
> Help!
> 
> On Wednesday, January 28, 2015 at 10:03:34 AM UTC-8, Jettro Coenradie  
> wrote:
> 
> > Hi,  
> > I am experimenting with Shield. I have a local setup where my plugins are  
> > not in the usual location. Using the ES\_JAVA\_OPTS with -Des.path.plugins  
> > does work when installing the plugin, but the esusers tool does not seem to  
> > use the path and comes with a message that it cannot find a certain class.
> > 
> > The message is:  
> > Error: Could not find or load main class  
> > org.elasticsearch.shield.authc.esusers.tool.ESUsersTool
> > 
> > Is this by design or a bug?
> > 
> > thanks Jettro

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/6496f643-b825-4810-99a9-54fb11818cae%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/6496f643-b825-4810-99a9-54fb11818cae%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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:35am UTC](https://discuss.elastic.co/t/shield-esusers-is-not-using-des-path-plugins/21882/4 "2017-07-06T00:35:18Z")

</div>


