NoClassDefFoundError in ElasticSearch

I upgraded my project from Es 2.1.2. to Es 2.2.0 . I made the required changes in my plugin and installed it. Now when I run any request on ES , it throws NoClassDefFoundError for a class which is present in one of the JARs in the plugin.

Hi @Tipra,

from the Javadoc for throws NoClassDefFoundError:

Thrown if the Java Virtual Machine or a ClassLoader instance
tries to load in the definition of a class (as part of a normal method call
or as part of creating a new instance using the new expression)
and no definition of the class could be found.

The searched-for class definition existed when the currently
executing class was compiled, but the definition can no longer be
found.

In other words, the class was there when you compiled your plugin but it does not seem to be bundled with your plugin. Can you please double-check that the class is indeed there in the ZIP file of your plugin? Did you maybe specify scope provided in your build file?

Daniel