sonian / elasticsearch-jetty

Apache License 2.0
284 stars 79 forks source link

java.lang.NoClassDefFoundError after configuring jetty plugin #50

Closed tugberkugurlu closed 10 years ago

tugberkugurlu commented 10 years ago

I'm trying to install this plugin on Windows. I installed it successfully with the following command:

bin/plugin -url https://oss-es-plugins.s3.amazonaws.com/elasticsearch-jetty/elasticsearch-jetty-0.90.12.zip -install elasticsearch-jetty-1.1.1

I can confirm that jetty-1.1.1 folder is under plugins folder. Then, I added the following configuration at the bottom of the config/elasticsearch.yml file:

http.type: com.sonian.elasticsearch.http.jetty.JettyHttpServerTransportModule

However, when I try to start the ES, I'm getting the below error:

C:\Utils\elasticsearch\bin>elasticsearch [2014-04-18 13:03:00,245][INFO ][node ] [Peter Petruski] ver sion[1.1.1], pid[5060], build[f1585f0/2014-04-16T14:27:12Z] [2014-04-18 13:03:00,246][INFO ][node ] [Peter Petruski] ini tializing ... [2014-04-18 13:03:00,269][INFO ][plugins ] [Peter Petruski] loa ded [jetty], sites [] {1.1.1}: Initialization Failed ...

  • ExecutionError[java.lang.NoClassDefFoundError: org/elasticsearch/ElasticSearch Exception] NoClassDefFoundError[org/elasticsearch/ElasticSearchException] ClassNotFoundException[org.elasticsearch.ElasticSearchException]

I'm running ES 1.1.1 and I guess my problem could be related to the fact that I'm installing https://oss-es-plugins.s3.amazonaws.com/elasticsearch-jetty/elasticsearch-jetty-0.90.12.zip. Is that it or something else that I'm doing wrong?

ingmaras commented 10 years ago

You're using a version of Jetty for ES 0.90.12 on ES 1.1.1. Just use this: https://oss-es-plugins.s3.amazonaws.com/elasticsearch-jetty/elasticsearch-jetty-1.1.1-beta.zip

mwilliams commented 10 years ago

@ingmaras - Thanks for filling in here! The README has been updated and ES 1.1.1 support is now in the latest release. Sorry for the trouble and delay on things.