miércoles, 21 de noviembre de 2012

Error Spring injection

Error:

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'recoverPass': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: org.activiti.engine.ProcessEngine com.avon.mx.reaco.security.core.user.RecoveryPasswordService.processEngine; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No matching bean of type [org.activiti.engine.ProcessEngine] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}


Solution: 

Insert (required=false) in above the attribute to be wired
@Autowired (required=false)

No hay comentarios:

Publicar un comentario