Dificuldade com o Spring - ao iniciar servidor erro ao criar dependencias

Bom dia!

Estou desenvolvendo minha aplicação que irei apresentar como TCC e estou utilizando o Spring. Porém ao iniciar o servidor (Tomcat 6) está apresentando este erro que ainda não descobri o que é… Alguem poderia me ajudar?

Segue log:


 

INFO: Initializing Spring root WebApplicationContext

05/04/2010 10:21:48 org.apache.catalina.core.StandardContext listenerStart

SEVERE: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'EventoService': Autowiring of methods failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire method: public void siga.projecao.business.services.EventoService.setEventoRepository(siga.projecao.business.repository.EventoRepository); nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No unique bean of type [siga.projecao.business.repository.EventoRepository] is defined: Unsatisfied dependency of type [interface siga.projecao.business.repository.EventoRepository]: expected at least 1 matching bean

                at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:253)

                at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:928)

                at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:437)

                at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:383)

                at java.security.AccessController.doPrivileged(Native Method)

                at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:353)

                at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:245)

                at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:169)

                at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:242)

                at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)

                at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:400)

                at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:736)

                at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:369)

                at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:261)

                at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)

                at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)

                at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3827)

                at org.apache.catalina.core.StandardContext.start(StandardContext.java:4336)

                at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1015)

                at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)

                at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1015)

                at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)

                at org.apache.catalina.core.StandardService.start(StandardService.java:448)

                at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)

                at org.apache.catalina.startup.Catalina.start(Catalina.java:552)

                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

                at java.lang.reflect.Method.invoke(Unknown Source)

                at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)

                at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)

Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire method: public void siga.projecao.business.services.EventoService.setEventoRepository(siga.projecao.business.repository.EventoRepository); nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No unique bean of type [siga.projecao.business.repository.EventoRepository] is defined: Unsatisfied dependency of type [interface siga.projecao.business.repository.EventoRepository]: expected at least 1 matching bean

                at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredMethodElement.inject(AutowiredAnnotationBeanPostProcessor.java:532)

                at org.springframework.beans.factory.annotation.InjectionMetadata.injectMethods(InjectionMetadata.java:87)

                at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:250)

                ... 30 more

Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No unique bean of type [siga.projecao.business.repository.EventoRepository] is defined: Unsatisfied dependency of type [interface siga.projecao.business.repository.EventoRepository]: expected at least 1 matching bean

                at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:575)

                at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredMethodElement.inject(AutowiredAnnotationBeanPostProcessor.java:496)

                ... 32 more

05/04/2010 10:21:48 org.apache.catalina.core.StandardContext start

SEVERE: Error listenerStart

 

[]s

Como o erro diz No unique bean of type [siga.projecao.business.repository.EventoRepository]
É bem provável que você tenha definido 2 beans com o mesmo nome, porém classes diferentes, dá uma conferida no teu applicationContext.xml

Você esta fazendo um autowire na classe EventoService que precisa de um objeto do tipo EventoRepository, porem você não tem nenhum Bean desse tipo.