# Elasticsearch 2.3.5 with Liferay 7 portlet class

**URL:** <https://discuss.elastic.co/t/elasticsearch-2-3-5-with-liferay-7-portlet-class/73730>\
**Category:** Elasticsearch\
**Created:** [February 2, 2017, 5:50pm UTC](https://discuss.elastic.co/t/elasticsearch-2-3-5-with-liferay-7-portlet-class/73730 "2017-02-02T17:50:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![balubollam](https://avatars.discourse-cdn.com/v4/letter/b/a587f6/32.png) [@balubollam](https://discuss.elastic.co/u/balubollam)\
**Post date:** [February 2, 2017, 5:50pm UTC](https://discuss.elastic.co/t/elasticsearch-2-3-5-with-liferay-7-portlet-class/73730/1 "2017-02-02T17:50:30Z")

</div>

Hi everyone,

Iam using elasticsearch jars 2.3.5 in liferay 7 portlet class i.e in my java class Get getting below exception..

Error:{#transport#-1}{ip}{ip:9300}, disconnecting...  
RemoteTransportException[[Failed to deserialize response of type [org.elasticsearch.action.admin.cluster.node.liveness.LivenessResponse]]]; nested: TransportSerializationException[Failed to deserialize response of type [org.elasticsearch.action.admin.cluster.node.liveness.LivenessResponse]]; nested: NoClassDefFoundError[Could not initialize class org.elasticsearch.common.lucene.Lucene];  
Caused by: TransportSerializationException[Failed to deserialize response of type [org.elasticsearch.action.admin.cluster.node.liveness.LivenessResponse]]; nested: NoClassDefFoundError[Could not initialize class org.elasticsearch.common.lucene.Lucene];

i have elasticsearch in VM which have java 1.7

My liferay server have 1.8 Java

Please anyone help me out..

---

<div class="post-metadata">

**Author:** ![abeyad](https://avatars.discourse-cdn.com/v4/letter/a/278dde/32.png) [@abeyad](https://discuss.elastic.co/u/abeyad)\
**Post date:** [February 2, 2017, 8:20pm UTC](https://discuss.elastic.co/t/elasticsearch-2-3-5-with-liferay-7-portlet-class/73730/2 "2017-02-02T20:20:04Z")

</div>

You have classpath issues somewhere if you can't find org.elasticsearch.common.lucene.Lucene

You will need to identify the source of that.

---

<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:** [March 2, 2017, 8:20pm UTC](https://discuss.elastic.co/t/elasticsearch-2-3-5-with-liferay-7-portlet-class/73730/3 "2017-03-02T20:20:09Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
