# Testing 2.3.0 - script\_lang not supported \[groovy\]

**URL:** <https://discuss.elastic.co/t/testing-2-3-0-script-lang-not-supported-groovy/46259>\
**Category:** Elasticsearch\
**Created:** [April 4, 2016, 4:08pm UTC](https://discuss.elastic.co/t/testing-2-3-0-script-lang-not-supported-groovy/46259 "2016-04-04T16:08:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Matt\_Chambers](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/matt_chambers/32/607_2.png) [@Matt\_Chambers](https://discuss.elastic.co/u/Matt_Chambers)\
**Post date:** [April 4, 2016, 4:08pm UTC](https://discuss.elastic.co/t/testing-2-3-0-script-lang-not-supported-groovy/46259/1 "2016-04-04T16:08:26Z")

</div>

```
<dependency>
  <groupId>org.codehaus.groovy</groupId>
  <artifactId>groovy-all</artifactId>
  <version>2.4.6</version>
</dependency>

```

Configuration:

```
            .put("script.inline", true)
            .put("script.indexed", true)
            .put("script.update", true)
            .put("script.search", true)
            .put("script.engine.groovy.indexed.aggs", true)
            .put("script.engine.groovy.indexed.search", true)
            .put("script.engine.groovy.indexed.update", true)
            .put("script.engine.groovy.indexed.plugin", true);

```

Exception:

```
java.lang.IllegalArgumentException: script_lang not supported [groovy]
at org.elasticsearch.script.ScriptService.validateScriptLanguage(ScriptService.java:337)
at org.elasticsearch.script.ScriptService.putScriptToIndex(ScriptService.java:392)

```

I set a breakpoint in ScriptService and I can see it has the correct configuration but the only supported language it has is "native"

Here is code triggering it:

```
    client.preparePutIndexedScript()
            .setScriptLang("groovy")
            .setId("asset_append_export")
            .setSource(script1)
            .get();
```

---

<div class="post-metadata">

**Author:** ![Matt\_Chambers](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/matt_chambers/32/607_2.png) [@Matt\_Chambers](https://discuss.elastic.co/u/Matt_Chambers)\
**Post date:** [April 5, 2016, 2:24am UTC](https://discuss.elastic.co/t/testing-2-3-0-script-lang-not-supported-groovy/46259/2 "2016-04-05T02:24:45Z")

</div>

Figured it out, I forgot about this. ElasticSearch 2.2+ no longer supports embedded client with plugins compiled into the same war/jar. It really sucks because it was a really cool when it worked. You could basically combine elastic, spring boot, and a bunch of custom plugins to make standalone clusterable application servers that you could deploy as a single jar file.

You can get away with it up to 2.1 which is I guess where all my software is now stuck.

---

<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 5, 2017, 11:02pm UTC](https://discuss.elastic.co/t/testing-2-3-0-script-lang-not-supported-groovy/46259/3 "2017-07-05T23:02:25Z")

</div>


