# Plugin \[lang-mustache\] must be at least a jvm or site plugin

**URL:** <https://discuss.elastic.co/t/plugin-lang-mustache-must-be-at-least-a-jvm-or-site-plugin/66979>\
**Category:** Elasticsearch\
**Created:** [November 23, 2016, 1:19pm UTC](https://discuss.elastic.co/t/plugin-lang-mustache-must-be-at-least-a-jvm-or-site-plugin/66979 "2016-11-23T13:19:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![zaahirlaher](https://avatars.discourse-cdn.com/v4/letter/z/59ef9b/32.png) [@zaahirlaher](https://discuss.elastic.co/u/zaahirlaher)\
**Post date:** [November 23, 2016, 1:19pm UTC](https://discuss.elastic.co/t/plugin-lang-mustache-must-be-at-least-a-jvm-or-site-plugin/66979/1 "2016-11-23T13:19:30Z")

</div>

Hi

I'm trying to use spring to write/search elasticsearch. Im running Elastic 5.0.1, with spring-data-elasticsearch 2.0.5.

I've configured spring as follows:

@EnableElasticsearchRepositories(basePackages = "my/package")  
...  
@Bean  
public ElasticsearchOperations elasticsearchTemplate() {  
return new ElasticsearchTemplate(nodeBuilder().local(true).node().client());  
}

When I start my application (webapp deployed on tomcat) I get this: java.lang.IllegalArgumentException: Plugin [lang-mustache] must be at least a jvm or site plugin.

I've put the lang-mustache-5.0.1.jar in my classpath using [setenv.sh](http://setenv.sh).

Any ideas?

---

<div class="post-metadata">

**Author:** ![mainec](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mainec/32/5557_2.png) [@mainec](https://discuss.elastic.co/u/mainec)\
**Post date:** [November 23, 2016, 1:33pm UTC](https://discuss.elastic.co/t/plugin-lang-mustache-must-be-at-least-a-jvm-or-site-plugin/66979/2 "2016-11-23T13:33:16Z")

</div>

If I'm reading the following correctly:

> **[spring-projects/spring-data-elasticsearch](https://github.com/spring-projects/spring-data-elasticsearch)**
>
> spring-data-elasticsearch - Spring Data Elasticsearch

The 2.x release of spring-data for elasticsearch is only compatible with elasticsearch 2.x, so not sure if what you are trying is supposed to work.

---

<div class="post-metadata">

**Author:** ![zaahirlaher](https://avatars.discourse-cdn.com/v4/letter/z/59ef9b/32.png) [@zaahirlaher](https://discuss.elastic.co/u/zaahirlaher)\
**Post date:** [November 23, 2016, 1:56pm UTC](https://discuss.elastic.co/t/plugin-lang-mustache-must-be-at-least-a-jvm-or-site-plugin/66979/3 "2016-11-23T13:56:35Z")

</div>

Wow, I should I have read that.

Thanks!

---

<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:** [December 21, 2016, 1:56pm UTC](https://discuss.elastic.co/t/plugin-lang-mustache-must-be-at-least-a-jvm-or-site-plugin/66979/4 "2016-12-21T13:56:52Z")

</div>

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