AnsweredAssumed Answered

Error creating bean with name 'contentHitsAspect'

Question asked by maqsood on Nov 19, 2009
Latest reply on Feb 2, 2011 by mitpatoliya
Hi,

I am trying to implement content hits custom aspect from alfresco SDK. Following are the steps I followed as mentioned.
1. compiled SDK CustomAspect and exported to a jar.
2. kept the jar file at    Alfresco\tomcat\webapps\alfresco\WEB-INF\lib
3. contentHitsModel.xml and content-hits-context.xml kept at    Alfresco\tomcat\shared\classes\alfresco\extension
4. restarted alfresco server.

I got the following error on console:

ERROR [org.springframework.web.context.ContextLoader] Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'contentHitsAspect' defined in URL [jar:file:/C:/Alfresco/tomcat/webapps/alfresco/WEB-INF/lib/custom-aspect.jar!/alfresco/extension/content-hits-context.xml]: Cannot resolve reference to bean 'threadPoolExecutor' while setting bean property 'threadExecuter'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'threadPoolExecutor' is defined
Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'threadPoolExecutor' is defined
   at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:356)
   at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedBeanDefinition(AbstractBeanFactory.java:916)
   at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:243)
   at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)

Any help appreciated.
Thanks in advace.

Outcomes