Advertisement
Guest User

Untitled

a guest
May 16th, 2013
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.03 KB | None | 0 0
  1. org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.jtalks.poulpe.model.dao.hibernate.BranchHibernateDaoTest': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.jtalks.common.model.dao.hibernate.GenericDao org.jtalks.poulpe.model.dao.hibernate.BranchHibernateDaoTest.branchGenericDao; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No matching bean of type [org.jtalks.common.model.dao.hibernate.GenericDao] 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), @org.springframework.beans.factory.annotation.Qualifier(value=branchGenericDao)}
  2. at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:285)
  3. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1074)
  4. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireBeanProperties(AbstractAutowireCapableBeanFactory.java:374)
  5. at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.injectDependencies(DependencyInjectionTestExecutionListener.java:110)
  6. at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.prepareTestInstance(DependencyInjectionTestExecutionListener.java:75)
  7. at org.springframework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:321)
  8. at org.springframework.test.context.testng.AbstractTestNGSpringContextTests.springTestContextPrepareTestInstance(AbstractTestNGSpringContextTests.java:133)
  9. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  10. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
  11. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  12. at java.lang.reflect.Method.invoke(Method.java:601)
  13. at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:74)
  14. at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:525)
  15. at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:202)
  16. at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:130)
  17. at org.testng.internal.TestMethodWorker.invokeBeforeClassMethods(TestMethodWorker.java:173)
  18. at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:105)
  19. at org.testng.TestRunner.runWorkers(TestRunner.java:1147)
  20. at org.testng.TestRunner.privateRun(TestRunner.java:749)
  21. at org.testng.TestRunner.run(TestRunner.java:600)
  22. at org.testng.SuiteRunner.runTest(SuiteRunner.java:317)
  23. at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:312)
  24. at org.testng.SuiteRunner.privateRun(SuiteRunner.java:274)
  25. at org.testng.SuiteRunner.run(SuiteRunner.java:223)
  26. at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
  27. at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
  28. at org.testng.TestNG.runSuitesSequentially(TestNG.java:1039)
  29. at org.testng.TestNG.runSuitesLocally(TestNG.java:964)
  30. at org.testng.TestNG.run(TestNG.java:900)
  31. at org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:110)
  32. at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:205)
  33. at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:174)
  34. at org.testng.RemoteTestNGStarter.main(RemoteTestNGStarter.java:111)
  35. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  36. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
  37. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  38. at java.lang.reflect.Method.invoke(Method.java:601)
  39. at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120)
  40. Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.jtalks.common.model.dao.hibernate.GenericDao org.jtalks.poulpe.model.dao.hibernate.BranchHibernateDaoTest.branchGenericDao; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No matching bean of type [org.jtalks.common.model.dao.hibernate.GenericDao] 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), @org.springframework.beans.factory.annotation.Qualifier(value=branchGenericDao)}
  41. at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:502)
  42. at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:84)
  43. at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:282)
  44. ... 37 more
  45. Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No matching bean of type [org.jtalks.common.model.dao.hibernate.GenericDao] 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), @org.springframework.beans.factory.annotation.Qualifier(value=branchGenericDao)}
  46. at org.springframework.beans.factory.support.DefaultListableBeanFactory.raiseNoSuchBeanDefinitionException(DefaultListableBeanFactory.java:920)
  47. at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:789)
  48. at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:703)
  49. at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:474)
  50. ... 39 more
  51. null
  52. null
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement