# Using Tomcat6 - Getting error for PUT

**URL:** <https://discuss.elastic.co/t/using-tomcat6-getting-error-for-put/13424>\
**Category:** Elasticsearch\
**Created:** [September 1, 2013, 5:04pm UTC](https://discuss.elastic.co/t/using-tomcat6-getting-error-for-put/13424 "2013-09-01T17:04:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bibin\_Abraham](https://avatars.discourse-cdn.com/v4/letter/b/4af34b/32.png) [@Bibin\_Abraham](https://discuss.elastic.co/u/Bibin_Abraham)\
**Post date:** [September 1, 2013, 5:04pm UTC](https://discuss.elastic.co/t/using-tomcat6-getting-error-for-put/13424/1 "2013-09-01T17:04:26Z")

</div>

Request URI: [http://localhost:8080//twitter/tweet/1](http://localhost:8080//twitter/tweet/1)

Request Method: PUT

Request Body:  
{  
"user" : "kimchy",  
"post\_date" : "2009-11-15T14:12:12",  
"message" : "trying out Elastic Search"  
}

Response 1(first request):  
{  
"error": "IndexCreationException[[twitter] failed to create index];  
nested:  
NoSuchMethodError[org.apache.lucene.codecs.DocValuesFormat.(Ljava/lang/String;)V];  
",  
"status": 500  
}

Response 2(second request):  
{  
"error": "IndexCreationException[[twitter] failed to create index];  
nested: NoClassDefFoundError[Could not initialize class  
org.elasticsearch.index.codec.PerFieldMappingPostingFormatCodec]; ",  
"status": 500  
}

Any idea why?

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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:** [September 1, 2013, 6:29pm UTC](https://discuss.elastic.co/t/using-tomcat6-getting-error-for-put/13424/2 "2013-09-01T18:29:25Z")

</div>

You probably have another version of Lucene in your classpath or something like that.

--  
David 😉  
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 1 sept. 2013 à 19:04, Bibin Abraham [bibin.abraham.dev@gmail.com](mailto:bibin.abraham.dev@gmail.com) a écrit :

Request URI: [http://localhost:8080//twitter/tweet/1](http://localhost:8080//twitter/tweet/1)

Request Method: PUT

Request Body:  
{  
"user" : "kimchy",  
"post\_date" : "2009-11-15T14:12:12",  
"message" : "trying out Elastic Search"  
}

Response 1(first request):  
{  
"error": "IndexCreationException[[twitter] failed to create index]; nested: NoSuchMethodError[org.apache.lucene.codecs.DocValuesFormat.(Ljava/lang/String;)V]; ",  
"status": 500  
}

Response 2(second request):  
{  
"error": "IndexCreationException[[twitter] failed to create index]; nested: NoClassDefFoundError[Could not initialize class org.elasticsearch.index.codec.PerFieldMappingPostingFormatCodec]; ",  
"status": 500  
}

## Any idea why?

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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Bibin\_Abraham](https://avatars.discourse-cdn.com/v4/letter/b/4af34b/32.png) [@Bibin\_Abraham](https://discuss.elastic.co/u/Bibin_Abraham)\
**Post date:** [September 2, 2013, 5:44am UTC](https://discuss.elastic.co/t/using-tomcat6-getting-error-for-put/13424/3 "2013-09-02T05:44:15Z")

</div>

Thanks David..It worked..I downloaded the wrong dependencies...

On Sunday, September 1, 2013 11:59:25 PM UTC+5:30, David Pilato wrote:

> You probably have another version of Lucene in your classpath or something  
> like that.
> 
> --  
> David 😉  
> Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> 
> Le 1 sept. 2013 à 19:04, Bibin Abraham \<[bibin.ab...@gmail.com](mailto:bibin.ab...@gmail.com)\<javascript:\>\>  
> a écrit :
> 
> Request URI: [http://localhost:8080//twitter/tweet/1](http://localhost:8080//twitter/tweet/1)
> 
> Request Method: PUT
> 
> Request Body:  
> {  
> "user" : "kimchy",  
> "post\_date" : "2009-11-15T14:12:12",  
> "message" : "trying out Elastic Search"  
> }
> 
> Response 1(first request):  
> {  
> "error": "IndexCreationException[[twitter] failed to create index];  
> nested:  
> NoSuchMethodError[org.apache.lucene.codecs.DocValuesFormat.(Ljava/lang/String;)V];  
> ",  
> "status": 500  
> }
> 
> Response 2(second request):  
> {  
> "error": "IndexCreationException[[twitter] failed to create index];  
> nested: NoClassDefFoundError[Could not initialize class  
> org.elasticsearch.index.codec.PerFieldMappingPostingFormatCodec]; ",  
> "status": 500  
> }
> 
> Any idea why?
> 
> --  
> 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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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, 2:18am UTC](https://discuss.elastic.co/t/using-tomcat6-getting-error-for-put/13424/4 "2017-07-06T02:18:33Z")

</div>


