# Thanks for helping \>\> \[spring-elasticsearch\] : Error creating bean with name 'esNode'

**URL:** <https://discuss.elastic.co/t/thanks-for-helping-spring-elasticsearch-error-creating-bean-with-name-esnode/13326>\
**Category:** Elasticsearch\
**Created:** [August 26, 2013, 12:28pm UTC](https://discuss.elastic.co/t/thanks-for-helping-spring-elasticsearch-error-creating-bean-with-name-esnode/13326 "2013-08-26T12:28:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Prasanth\_Nair](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/prasanth_nair/32/2102_2.png) [@Prasanth\_Nair](https://discuss.elastic.co/u/Prasanth_Nair)\
**Post date:** [August 26, 2013, 12:28pm UTC](https://discuss.elastic.co/t/thanks-for-helping-spring-elasticsearch-error-creating-bean-with-name-esnode/13326/1 "2013-08-26T12:28:09Z")

</div>

I was trying to integrate elastic search onto spring by  
following [https://github.com/dadoonet/spring-elasticsearch](https://github.com/dadoonet/spring-elasticsearch) and got this \*Error  
creating bean with name 'esNode' \*Exception, not sure what is going wrong  
as I could not find any similar trails before...  
Thanks so much for guiding folks.

_\<\<\>\>_  
Mac  
JDK 1.6  
elasticsearch-0.90.3  
POM \>\>

fr.pilato.spring

spring-elasticsearch

0.2.0

org.elasticsearch

elasticsearch

0.90.0

_Here is the config (app context):_

\<util:map id="esproperties"\>

\</util:map\>

\<elasticsearch:node id="esNode" properties="esproperties" /\>

\<elasticsearch:client id="esClient" node="esNode" /\>

I auto wired esclient

@Autowired

private Client esClient;

When I'm starting tomcat I'm getting this exception

17:35:01,580 ERROR  
[org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:220)]

- Context initialization failed

org.springframework.beans.factory.BeanCreationException: Error creating  
bean with name 'esNode': Invocation of init method failed; nested exception  
is java.lang.NoSuchFieldError: LUCENE\_36

at  
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1420)

at  
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)  
thx  
Prash.

--  
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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [August 26, 2013, 2:27pm UTC](https://discuss.elastic.co/t/thanks-for-helping-spring-elasticsearch-error-creating-bean-with-name-esnode/13326/2 "2013-08-26T14:27:11Z")

</div>

I think it won't work with 0.90.3 but only with 0.90.2.

HTH

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

Le 26 août 2013 à 14:28, Prasanth Nair [pn@leapcourse.com](mailto:pn@leapcourse.com) a écrit :

> I was trying to integrate Elasticsearch onto spring by following [GitHub - dadoonet/spring-elasticsearch: Spring factories for elasticsearch](https://github.com/dadoonet/spring-elasticsearch) and got this Error creating bean with name 'esNode' Exception, not sure what is going wrong as I could not find any similar trails before...  
> Thanks so much for guiding folks.
> 
> \<\<\>\>  
> Mac  
> JDK 1.6  
> elasticsearch-0.90.3  
> POM \>\>
> 
> fr.pilato.spring
> 
> spring-elasticsearch
> 
> 0.2.0
> 
> org.elasticsearch
> 
> elasticsearch
> 
> 0.90.0
> 
> Here is the config (app context):
> 
> \<util:map id="esproperties"\>
> 
> \</util:map\>
> 
> \<elasticsearch:node id="esNode" properties="esproperties" /\>
> 
> \<elasticsearch:client id="esClient" node="esNode" /\>
> 
> I auto wired esclient
> 
> @Autowired
> 
> private Client esClient;
> 
> When I'm starting tomcat I'm getting this exception
> 
> 17:35:01,580 ERROR [org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:220)] - Context initialization failed
> 
> org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'esNode': Invocation of init method failed; nested exception is java.lang.NoSuchFieldError: LUCENE\_36
> 
> at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1420)
> 
> at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
> 
> ## thx Prash.
> 
> 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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> For more options, visit [https://groups.google.com/groups/opt\_out](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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Prasanth\_Nair](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/prasanth_nair/32/2102_2.png) [@Prasanth\_Nair](https://discuss.elastic.co/u/Prasanth_Nair)\
**Post date:** [August 27, 2013, 11:42am UTC](https://discuss.elastic.co/t/thanks-for-helping-spring-elasticsearch-error-creating-bean-with-name-esnode/13326/3 "2013-08-27T11:42:15Z")

</div>

Thanks for the note David, The main issue was in my POM there was solr  
dependency I created sometime back, which was hanging in there. As you  
could imagine it was clashing with ES lucene jar and hence this problem

_org.springframework.beans.factory.BeanCreationException: Error creating  
bean with name 'esNode': Invocation of init method failed; nested exception  
is java.lang.NoSuchFieldError: LUCENE\_36_

As you could imagine, the solution is to remove unwanted lucene  
introduction in POM while you are on ES.

Prasanth Nair | Co-Founder and CTO, LeapCourse |  
[www.LeapCourse.com](http://www.LeapCourse.com)[http://www.leapcourse.com/](http://www.leapcourse.com/) |  
c +91 988 004 4790  
Evoma Business Centre, Prestige Featherlite Tech Park, Plot No 148,2nd  
Phase,EPIP Zone  
Whitefield ,Bangalore 560 066

On Mon, Aug 26, 2013 at 7:57 PM, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:

> I think it won't work with 0.90.3 but only with 0.90.2.
> 
> HTH
> 
> --  
> David 😉  
> Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> 
> Le 26 août 2013 à 14:28, Prasanth Nair [pn@leapcourse.com](mailto:pn@leapcourse.com) a écrit :
> 
> I was trying to integrate Elasticsearch onto spring by following  
> [GitHub - dadoonet/spring-elasticsearch: Spring factories for elasticsearch](https://github.com/dadoonet/spring-elasticsearch) and got this \*Error  
> creating bean with name 'esNode' \*Exception, not sure what is going wrong  
> as I could not find any similar trails before...  
> Thanks so much for guiding folks.
> 
> _\<\<\>\>_  
> Mac  
> JDK 1.6  
> elasticsearch-0.90.3  
> POM \>\>
> 
> fr.pilato.spring
> 
> spring-elasticsearch
> 
> 0.2.0
> 
> org.elasticsearch
> 
> elasticsearch
> 
> 0.90.0
> 
> _Here is the config (app context):_
> 
> \<util:map id="esproperties"\>
> 
> \</util:map\>
> 
> \<elasticsearch:node id="esNode" properties="esproperties" /\>
> 
> \<elasticsearch:client id="esClient" node="esNode" /\>
> 
> I auto wired esclient
> 
> @Autowired
> 
> private Client esClient;
> 
> When I'm starting tomcat I'm getting this exception
> 
> 17:35:01,580 ERROR  
> [org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:220)]
> 
> - Context initialization failed
> 
> org.springframework.beans.factory.BeanCreationException: Error creating  
> bean with name 'esNode': Invocation of init method failed; nested exception  
> is java.lang.NoSuchFieldError: LUCENE\_36
> 
> at  
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1420)
> 
> at  
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)  
> thx  
> Prash.
> 
> --  
> 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](mailto:elasticsearch+unsubscribe@googlegroups.com).
> 
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> 
> --  
> You received this message because you are subscribed to a topic in the  
> Google Groups "elasticsearch" group.  
> To unsubscribe from this topic, visit  
> [https://groups.google.com/d/topic/elasticsearch/KOrb2yuEDT8/unsubscribe](https://groups.google.com/d/topic/elasticsearch/KOrb2yuEDT8/unsubscribe).  
> To unsubscribe from this group and all its topics, send an email to  
> [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> For more options, visit [https://groups.google.com/groups/opt\_out](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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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:** [July 6, 2017, 2:19am UTC](https://discuss.elastic.co/t/thanks-for-helping-spring-elasticsearch-error-creating-bean-with-name-esnode/13326/4 "2017-07-06T02:19:34Z")

</div>


