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


(Zaahir) #1

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.

Any ideas?


(Isabel Drost-Fromm) #2

If I'm reading the following correctly:

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.


(Zaahir) #3

Wow, I should I have read that.

Thanks!


(system) #4

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