Why Elaticsearch 2 has problem with Spring data elasticsearch

Hi , I am new for elasticsearch. I used old version of elasticsearch (1.4.4) with spring data elasticsearch, It is working fine. This can connect each other for further communication. It is not working when i go for Elasticsearch new version(version 2). I don't know the problem. Please help me any one to solve this problem.

<?xml version="1.0" encoding="UTF-8"?>

<!-- node configurations -->
<elasticsearch:transport-client id="client"
    cluster-name="my-application" cluster-nodes="192.168.1.28:9300" />
    
<!--<elasticsearch:transport-client id="client" cluster-name="elasticsearch" 
    cluster-nodes="127.0.0.1:9300"/> -->
    
<!-- Node related configuration can be done by adding setting properties -->    
<bean id="elasticIndexBean" class="in.rishoncomm.elastic.objectstore.ElasticIndexBean">
    <property name="indexPrefix" value="la" />
    <property name="settings">
        <map>
            <entry key="number_of_shards" value="1" />
            <entry key="number_of_replicas" value="1" />
        </map>
    </property>
</bean>
<bean name="elasticsearchTemplate"
    class="org.springframework.data.elasticsearch.core.ElasticsearchTemplate">
    <constructor-arg name="client" ref="client" />
</bean>

Probably because of this - https://www.elastic.co/guide/en/elasticsearch/reference/2.3/breaking_20_network_changes.html#_bind_to_localhost

i may not connect If it ip binding problem. It is working properly in command line view.

Following drive i used. This may be problem.

org.elasticsearch elasticsearch 1.4.2

now using

org.elasticsearch elasticsearch 2.2.2

But Still i have problem .

Actually i am using Spring data elasticsearch. Here the exception raised for new elasticsearch driver.

Caused by: java.lang.NoClassDefFoundError: org/elasticsearch/common/settings/ImmutableSettings
g.springframework.data.elasticsearch.client.TransportClientFactoryBean.settings(TransportClientFactoryBean.java:106)

Spring data elasticsearch version :

org.springframework.data spring-data-elasticsearch 1.3.4.RELEASE

I don't know what to do.

Is there is possible to use spring data elasticsearch?