Using Tomcat6 - Getting error for PUT

Request URI: 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.
For more options, visit https://groups.google.com/groups/opt_out.

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

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

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

Request URI: 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.
For more options, visit 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.
For more options, visit https://groups.google.com/groups/opt_out.

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 :wink:
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 1 sept. 2013 à 19:04, Bibin Abraham <bibin.ab...@gmail.com<javascript:>>
a écrit :

Request URI: 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 <javascript:>.
For more options, visit 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.
For more options, visit https://groups.google.com/groups/opt_out.