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

I was trying to integrate elastic search onto spring by
following 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.
For more options, visit https://groups.google.com/groups/opt_out.

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

HTH

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

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

I was trying to integrate Elasticsearch onto spring by following GitHub - dadoonet/spring-elasticsearch: Spring factories for 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.
For more options, visit 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.
For more options, visit https://groups.google.com/groups/opt_out.

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.comhttp://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 wrote:

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

HTH

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

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

I was trying to integrate Elasticsearch onto spring by following
GitHub - dadoonet/spring-elasticsearch: Spring factories for 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.

For more options, visit 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.
To unsubscribe from this group and all its topics, send an email to
elasticsearch+unsubscribe@googlegroups.com.
For more options, visit 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.
For more options, visit https://groups.google.com/groups/opt_out.