mstein/elasticsearch-grails-plugin — Issue #13: No bean named 'elasticSearchClient' is defined
Author: berinle
Created: 2012-02-10 16:17:36+00:00
State: open

In my sample grails application (@ https://github.com/berinle/grails-search-app), if I deploy to a stand alone tomcat server and try to update the war (by copying a newly generated war file of the application) to webapp directory, I get the error above.

Here is a snippet of the stack trace:

2012-02-10 10:56:44,005 [pool-2-thread-2] ERROR context.GrailsContextLoader - Error occurred shutting down plug-in manager: No bean named 'elasticSearchClient' is defined
org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'elasticSearchClient' is defined
at ElasticsearchGrailsPlugin$_closure3.doCall(ElasticsearchGrailsPlugin.groovy:144)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:680)

Seems the plugin can't handle re-deployments properly