Advertisement
Guest User

Untitled

a guest
Oct 13th, 2015
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 97.25 KB | None | 0 0
  1. [INFO] --- maven-jar-plugin:2.3.2:test-jar (default) @ emrapi-api-1.9 ---
  2. [WARNING] JAR will be empty - no content was marked for inclusion!
  3. [INFO] Building jar: /media/KJoseph/Projects/openMRS/Modules/openmrs-module-emrapi/api-1.9/target/emrapi-api-1.9-1.12-SNAPSHOT-tests.jar
  4. [INFO]
  5. [INFO] --- maven-install-plugin:2.3.1:install (default-install) @ emrapi-api-1.9 ---
  6. [INFO] Installing /media/KJoseph/Projects/openMRS/Modules/openmrs-module-emrapi/api-1.9/target/emrapi-api-1.9-1.12-SNAPSHOT.jar to /home/k-joseph/.m2/repository/org/openmrs/module/emrapi-api-1.9/1.12-SNAPSHOT/emrapi-api-1.9-1.12-SNAPSHOT.jar
  7. [INFO] Installing /media/KJoseph/Projects/openMRS/Modules/openmrs-module-emrapi/api-1.9/pom.xml to /home/k-joseph/.m2/repository/org/openmrs/module/emrapi-api-1.9/1.12-SNAPSHOT/emrapi-api-1.9-1.12-SNAPSHOT.pom
  8. [INFO] Installing /media/KJoseph/Projects/openMRS/Modules/openmrs-module-emrapi/api-1.9/target/emrapi-api-1.9-1.12-SNAPSHOT-tests.jar to /home/k-joseph/.m2/repository/org/openmrs/module/emrapi-api-1.9/1.12-SNAPSHOT/emrapi-api-1.9-1.12-SNAPSHOT-tests.jar
  9. [INFO]
  10. [INFO] ------------------------------------------------------------------------
  11. [INFO] Building EMR API Module API 1.10 1.12-SNAPSHOT
  12. [INFO] ------------------------------------------------------------------------
  13. [INFO]
  14. [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ emrapi-api-1.10 ---
  15. [INFO] Deleting /media/KJoseph/Projects/openMRS/Modules/openmrs-module-emrapi/api-1.10/target
  16. [INFO]
  17. [INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ emrapi-api-1.10 ---
  18. [debug] execute contextualize
  19. [INFO] Using 'UTF-8' encoding to copy filtered resources.
  20. [INFO] Copying 1 resource
  21. [INFO]
  22. [INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ emrapi-api-1.10 ---
  23. [INFO] Compiling 7 source files to /media/KJoseph/Projects/openMRS/Modules/openmrs-module-emrapi/api-1.10/target/classes
  24. [INFO]
  25. [INFO] --- maven-resources-plugin:2.5:testResources (default-testResources) @ emrapi-api-1.10 ---
  26. [debug] execute contextualize
  27. [INFO] Using 'UTF-8' encoding to copy filtered resources.
  28. [INFO] skip non existing resourceDirectory /media/KJoseph/Projects/openMRS/Modules/openmrs-module-emrapi/api-1.10/src/test/resources
  29. [INFO] skip non existing resourceDirectory /media/KJoseph/Projects/openMRS/Modules/openmrs-module-emrapi/api-1.10/src/test/resources
  30. [INFO]
  31. [INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ emrapi-api-1.10 ---
  32. [INFO] Compiling 9 source files to /media/KJoseph/Projects/openMRS/Modules/openmrs-module-emrapi/api-1.10/target/test-classes
  33. [INFO]
  34. [INFO] --- maven-surefire-plugin:2.5:test (default-test) @ emrapi-api-1.10 ---
  35. [INFO] Surefire report directory: /media/KJoseph/Projects/openMRS/Modules/openmrs-module-emrapi/api-1.10/target/surefire-reports
  36.  
  37. -------------------------------------------------------
  38. T E S T S
  39. -------------------------------------------------------
  40. Running org.openmrs.module.emrapi.encounter.mapper.DosingInstructionsMapperTest
  41. Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.007 sec
  42. Running org.openmrs.module.emrapi.encounter.service.OrderMetadataServiceTest
  43. ERROR - TestContextManager.prepareTestInstance(324) |2015-10-13 14:54:46,023| Caught exception while allowing TestExecutionListener [org.springframework.test.context.support.DependencyInjectionTestExecutionListener@23c7f5] to prepare test instance [org.openmrs.module.emrapi.encounter.service.OrderMetadataServiceTest@11ce164]
  44. java.lang.IllegalStateException: Failed to load ApplicationContext
  45. at org.springframework.test.context.TestContext.getApplicationContext(TestContext.java:308)
  46. at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.injectDependencies(DependencyInjectionTestExecutionListener.java:109)
  47. at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.prepareTestInstance(DependencyInjectionTestExecutionListener.java:75)
  48. at org.springframework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:321)
  49. at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.createTest(SpringJUnit4ClassRunner.java:220)
  50. at org.springframework.test.context.junit4.SpringJUnit4ClassRunner$1.runReflectiveCall(SpringJUnit4ClassRunner.java:301)
  51. at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
  52. at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.methodBlock(SpringJUnit4ClassRunner.java:303)
  53. at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:240)
  54. at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
  55. at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
  56. at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
  57. at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
  58. at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
  59. at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
  60. at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)
  61. at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
  62. at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70)
  63. at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
  64. at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:180)
  65. at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:59)
  66. at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:115)
  67. at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:102)
  68. at org.apache.maven.surefire.Surefire.run(Surefire.java:180)
  69. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  70. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
  71. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  72. at java.lang.reflect.Method.invoke(Method.java:616)
  73. at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:350)
  74. at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1021)
  75. Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'awaitingAdmissionVisitQueryEvaluator': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: org.openmrs.module.emrapi.disposition.DispositionService org.openmrs.module.emrapi.adt.reporting.evaluator.AwaitingAdmissionVisitQueryEvaluator.dispositionService; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No matching bean of type [org.openmrs.module.emrapi.disposition.DispositionService] 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)}
  76. Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'emrConceptService' defined in URL [jar:file:/media/KJoseph/Projects/openMRS/Modules/openmrs-module-emrapi/api/target/emrapi-api-1.12-SNAPSHOT.jar!/moduleApplicationContext.xml]: Cannot create inner bean 'org.openmrs.module.emrapi.concept.EmrConceptServiceImpl#406b09' of type [org.openmrs.module.emrapi.concept.EmrConceptServiceImpl] while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.openmrs.module.emrapi.concept.EmrConceptServiceImpl#406b09' defined in URL [jar:file:/media/KJoseph/Projects/openMRS/Modules/openmrs-module-emrapi/api/target/emrapi-api-1.12-SNAPSHOT.jar!/moduleApplicationContext.xml]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: Lorg/openmrs/api/db/hibernate/DbSessionFactory;
  77. Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'emrPatientService' defined in URL [jar:file:/media/KJoseph/Projects/openMRS/Modules/openmrs-module-emrapi/api/target/emrapi-api-1.12-SNAPSHOT.jar!/moduleApplicationContext.xml]: Cannot create inner bean 'org.openmrs.module.emrapi.patient.EmrPatientServiceImpl#657c7b' of type [org.openmrs.module.emrapi.patient.EmrPatientServiceImpl] while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.openmrs.module.emrapi.patient.EmrPatientServiceImpl#657c7b' defined in URL [jar:file:/media/KJoseph/Projects/openMRS/Modules/openmrs-module-emrapi/api/target/emrapi-api-1.12-SNAPSHOT.jar!/moduleApplicationContext.xml]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: Lorg/openmrs/api/db/hibernate/DbSessionFactory;
  78. Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dispositionService' defined in URL [jar:file:/media/KJoseph/Projects/openMRS/Modules/openmrs-module-emrapi/api/target/emrapi-api-1.12-SNAPSHOT.jar!/moduleApplicationContext.xml]: Cannot create inner bean 'org.openmrs.module.emrapi.disposition.DispositionServiceImpl#4eff2c' of type [org.openmrs.module.emrapi.disposition.DispositionServiceImpl] while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.openmrs.module.emrapi.disposition.DispositionServiceImpl#4eff2c' defined in URL [jar:file:/media/KJoseph/Projects/openMRS/Modules/openmrs-module-emrapi/api/target/emrapi-api-1.12-SNAPSHOT.jar!/moduleApplicationContext.xml]: Cannot resolve reference to bean 'emrConceptService' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'emrConceptService' defined in URL [jar:file:/media/KJoseph/Projects/openMRS/Modules/openmrs-module-emrapi/api/target/emrapi-api-1.12-SNAPSHOT.jar!/moduleApplicationContext.xml]: Cannot create inner bean 'org.openmrs.module.emrapi.concept.EmrConceptServiceImpl#406b09' of type [org.openmrs.module.emrapi.concept.EmrConceptServiceImpl] while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.openmrs.module.emrapi.concept.EmrConceptServiceImpl#406b09' defined in URL [jar:file:/media/KJoseph/Projects/openMRS/Modules/openmrs-module-emrapi/api/target/emrapi-api-1.12-SNAPSHOT.jar!/moduleApplicationContext.xml]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: Lorg/openmrs/api/db/hibernate/DbSessionFactory;
  79. Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'emrConceptService' defined in URL [jar:file:/media/KJoseph/Projects/openMRS/Modules/openmrs-module-emrapi/api/target/emrapi-api-1.12-SNAPSHOT.jar!/moduleApplicationContext.xml]: Cannot create inner bean 'org.openmrs.module.emrapi.concept.EmrConceptServiceImpl#406b09' of type [org.openmrs.module.emrapi.concept.EmrConceptServiceImpl] while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.openmrs.module.emrapi.concept.EmrConceptServiceImpl#406b09' defined in URL [jar:file:/media/KJoseph/Projects/openMRS/Modules/openmrs-module-emrapi/api/target/emrapi-api-1.12-SNAPSHOT.jar!/moduleApplicationContext.xml]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: Lorg/openmrs/api/db/hibernate/DbSessionFactory;
  80. Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'emrPatientService' defined in URL [jar:file:/media/KJoseph/Projects/openMRS/Modules/openmrs-module-emrapi/api/target/emrapi-api-1.12-SNAPSHOT.jar!/moduleApplicationContext.xml]: Cannot create inner bean 'org.openmrs.module.emrapi.patient.EmrPatientServiceImpl#657c7b' of type [org.openmrs.module.emrapi.patient.EmrPatientServiceImpl] while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.openmrs.module.emrapi.patient.EmrPatientServiceImpl#657c7b' defined in URL [jar:file:/media/KJoseph/Projects/openMRS/Modules/openmrs-module-emrapi/api/target/emrapi-api-1.12-SNAPSHOT.jar!/moduleApplicationContext.xml]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: Lorg/openmrs/api/db/hibernate/DbSessionFactory;
  81. Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dispositionService' defined in URL [jar:file:/media/KJoseph/Projects/openMRS/Modules/openmrs-module-emrapi/api/target/emrapi-api-1.12-SNAPSHOT.jar!/moduleApplicationContext.xml]: Cannot create inner bean 'org.openmrs.module.emrapi.disposition.DispositionServiceImpl#4eff2c' of type [org.openmrs.module.emrapi.disposition.DispositionServiceImpl] while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.openmrs.module.emrapi.disposition.DispositionServiceImpl#4eff2c' defined in URL [jar:file:/media/KJoseph/Projects/openMRS/Modules/openmrs-module-emrapi/api/target/emrapi-api-1.12-SNAPSHOT.jar!/moduleApplicationContext.xml]: Cannot resolve reference to bean 'emrConceptService' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'emrConceptService' defined in URL [jar:file:/media/KJoseph/Projects/openMRS/Modules/openmrs-module-emrapi/api/target/emrapi-api-1.12-SNAPSHOT.jar!/moduleApplicationContext.xml]: Cannot create inner bean 'org.openmrs.module.emrapi.concept.EmrConceptServiceImpl#406b09' of type [org.openmrs.module.emrapi.concept.EmrConceptServiceImpl] while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.openmrs.module.emrapi.concept.EmrConceptServiceImpl#406b09' defined in URL [jar:file:/media/KJoseph/Projects/openMRS/Modules/openmrs-module-emrapi/api/target/emrapi-api-1.12-SNAPSHOT.jar!/moduleApplicationContext.xml]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: Lorg/openmrs/api/db/hibernate/DbSessionFactory;
  82. at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:285)
  83. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1074)
  84. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
  85. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
  86. at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
  87. at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
  88. at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
  89. at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
  90. at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580)
  91. at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
  92. at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
  93. at org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:84)
  94. at org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:1)
  95. at org.springframework.test.context.TestContext.loadApplicationContext(TestContext.java:280)
  96. at org.springframework.test.context.TestContext.getApplicationContext(TestContext.java:304)
  97. ... 29 more
  98. Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: org.openmrs.module.emrapi.disposition.DispositionService org.openmrs.module.emrapi.adt.reporting.evaluator.AwaitingAdmissionVisitQueryEvaluator.dispositionService; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No matching bean of type [org.openmrs.module.emrapi.disposition.DispositionService] 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)}
  99. at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:502)
  100. at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:84)
  101. at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:282)
  102. ... 43 more
  103. Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No matching bean of type [org.openmrs.module.emrapi.disposition.DispositionService] 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)}
  104. at org.springframework.beans.factory.support.DefaultListableBeanFactory.raiseNoSuchBeanDefinitionException(DefaultListableBeanFactory.java:920)
  105. at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:789)
  106. at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:703)
  107. at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:474)
  108. ... 45 more
  109. ERROR - TestContextManager.prepareTestInstance(324) |2015-10-13 14:54:52,553| Caught exception while allowing TestExecutionListener [org.springframework.test.context.support.DependencyInjectionTestExecutionListener@23c7f5] to prepare test instance [org.openmrs.module.emrapi.encounter.service.OrderMetadataServiceTest@cf323d]
  110. java.lang.IllegalStateException: Failed to load ApplicationContext
  111. at org.springframework.test.context.TestContext.getApplicationContext(TestContext.java:308)
  112. at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.injectDependencies(DependencyInjectionTestExecutionListener.java:109)
  113. at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.prepareTestInstance(DependencyInjectionTestExecutionListener.java:75)
  114. at org.springframework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:321)
  115. at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.createTest(SpringJUnit4ClassRunner.java:220)
  116. at org.springframework.test.context.junit4.SpringJUnit4ClassRunner$1.runReflectiveCall(SpringJUnit4ClassRunner.java:301)
  117. at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
  118. at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.methodBlock(SpringJUnit4ClassRunner.java:303)
  119. at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:240)
  120. at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
  121. at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
  122. at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
  123. at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
  124. at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
  125. at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
  126. at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)
  127. at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
  128. at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70)
  129. at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
  130. at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:180)
  131. at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:59)
  132. at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:115)
  133. at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:102)
  134. at org.apache.maven.surefire.Surefire.run(Surefire.java:180)
  135. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  136. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
  137. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  138. at java.lang.reflect.Method.invoke(Method.java:616)
  139. at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:350)
  140. at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1021)
  141. Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'awaitingAdmissionVisitQueryEvaluator': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: org.openmrs.module.emrapi.disposition.DispositionService org.openmrs.module.emrapi.adt.reporting.evaluator.AwaitingAdmissionVisitQueryEvaluator.dispositionService; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No matching bean of type [org.openmrs.module.emrapi.disposition.DispositionService] 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)}
  142. Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'emrConceptService' defined in URL [jar:file:/media/KJoseph/Projects/openMRS/Modules/openmrs-module-emrapi/api/target/emrapi-api-1.12-SNAPSHOT.jar!/moduleApplicationContext.xml]: Cannot create inner bean 'org.openmrs.module.emrapi.concept.EmrConceptServiceImpl#1e76345' of type [org.openmrs.module.emrapi.concept.EmrConceptServiceImpl] while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.openmrs.module.emrapi.concept.EmrConceptServiceImpl#1e76345' defined in URL [jar:file:/media/KJoseph/Projects/openMRS/Modules/openmrs-module-emrapi/api/target/emrapi-api-1.12-SNAPSHOT.jar!/moduleApplicationContext.xml]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: Lorg/openmrs/api/db/hibernate/DbSessionFactory;
  143. Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'emrPatientService' defined in URL [jar:file:/media/KJoseph/Projects/openMRS/Modules/openmrs-module-emrapi/api/target/emrapi-api-1.12-SNAPSHOT.jar!/moduleApplicationContext.xml]: Cannot create inner bean 'org.openmrs.module.emrapi.patient.EmrPatientServiceImpl#4d95c7' of type [org.openmrs.module.emrapi.patient.EmrPatientServiceImpl] while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.openmrs.module.emrapi.patient.EmrPatientServiceImpl#4d95c7' defined in URL [jar:file:/media/KJoseph/Projects/openMRS/Modules/openmrs-module-emrapi/api/target/emrapi-api-1.12-SNAPSHOT.jar!/moduleApplicationContext.xml]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: Lorg/openmrs/api/db/hibernate/DbSessionFactory;
  144. Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dispositionService' defined in URL [jar:file:/media/KJoseph/Projects/openMRS/Modules/openmrs-module-emrapi/api/target/emrapi-api-1.12-SNAPSHOT.jar!/moduleApplicationContext.xml]: Cannot create inner bean 'org.openmrs.module.emrapi.disposition.DispositionServiceImpl#1177565' of type [org.openmrs.module.emrapi.disposition.DispositionServiceImpl] while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.openmrs.module.emrapi.disposition.DispositionServiceImpl#1177565' defined in URL [jar:file:/media/KJoseph/Projects/openMRS/Modules/openmrs-module-emrapi/api/target/emrapi-api-1.12-SNAPSHOT.jar!/moduleApplicationContext.xml]: Cannot resolve reference to bean 'emrConceptService' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'emrConceptService' defined in URL [jar:file:/media/KJoseph/Projects/openMRS/Modules/openmrs-module-emrapi/api/target/emrapi-api-1.12-SNAPSHOT.jar!/moduleApplicationContext.xml]: Cannot create inner bean 'org.openmrs.module.emrapi.concept.EmrConceptServiceImpl#1e76345' of type [org.openmrs.module.emrapi.concept.EmrConceptServiceImpl] while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.openmrs.module.emrapi.concept.EmrConceptServiceImpl#1e76345' defined in URL [jar:file:/media/KJoseph/Projects/openMRS/Modules/openmrs-module-emrapi/api/target/emrapi-api-1.12-SNAPSHOT.jar!/moduleApplicationContext.xml]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: Lorg/openmrs/api/db/hibernate/DbSessionFactory;
  145. Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'emrConceptService' defined in URL [jar:file:/media/KJoseph/Projects/openMRS/Modules/openmrs-module-emrapi/api/target/emrapi-api-1.12-SNAPSHOT.jar!/moduleApplicationContext.xml]: Cannot create inner bean 'org.openmrs.module.emrapi.concept.EmrConceptServiceImpl#1e76345' of type [org.openmrs.module.emrapi.concept.EmrConceptServiceImpl] while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.openmrs.module.emrapi.concept.EmrConceptServiceImpl#1e76345' defined in URL [jar:file:/media/KJoseph/Projects/openMRS/Modules/openmrs-module-emrapi/api/target/emrapi-api-1.12-SNAPSHOT.jar!/moduleApplicationContext.xml]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: Lorg/openmrs/api/db/hibernate/DbSessionFactory;
  146. Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'emrPatientService' defined in URL [jar:file:/media/KJoseph/Projects/openMRS/Modules/openmrs-module-emrapi/api/target/emrapi-api-1.12-SNAPSHOT.jar!/moduleApplicationContext.xml]: Cannot create inner bean 'org.openmrs.module.emrapi.patient.EmrPatientServiceImpl#4d95c7' of type [org.openmrs.module.emrapi.patient.EmrPatientServiceImpl] while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.openmrs.module.emrapi.patient.EmrPatientServiceImpl#4d95c7' defined in URL [jar:file:/media/KJoseph/Projects/openMRS/Modules/openmrs-module-emrapi/api/target/emrapi-api-1.12-SNAPSHOT.jar!/moduleApplicationContext.xml]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: Lorg/openmrs/api/db/hibernate/DbSessionFactory;
  147. Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dispositionService' defined in URL [jar:file:/media/KJoseph/Projects/openMRS/Modules/openmrs-module-emrapi/api/target/emrapi-api-1.12-SNAPSHOT.jar!/moduleApplicationContext.xml]: Cannot create inner bean 'org.openmrs.module.emrapi.disposition.DispositionServiceImpl#1177565' of type [org.openmrs.module.emrapi.disposition.DispositionServiceImpl] while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.openmrs.module.emrapi.disposition.DispositionServiceImpl#1177565' defined in URL [jar:file:/media/KJoseph/Projects/openMRS/Modules/openmrs-module-emrapi/api/target/emrapi-api-1.12-SNAPSHOT.jar!/moduleApplicationContext.xml]: Cannot resolve reference to bean 'emrConceptService' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'emrConceptService' defined in URL [jar:file:/media/KJoseph/Projects/openMRS/Modules/openmrs-module-emrapi/api/target/emrapi-api-1.12-SNAPSHOT.jar!/moduleApplicationContext.xml]: Cannot create inner bean 'org.openmrs.module.emrapi.concept.EmrConceptServiceImpl#1e76345' of type [org.openmrs.module.emrapi.concept.EmrConceptServiceImpl] while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.openmrs.module.emrapi.concept.EmrConceptServiceImpl#1e76345' defined in URL [jar:file:/media/KJoseph/Projects/openMRS/Modules/openmrs-module-emrapi/api/target/emrapi-api-1.12-SNAPSHOT.jar!/moduleApplicationContext.xml]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: Lorg/openmrs/api/db/hibernate/DbSessionFactory;
  148. at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:285)
  149. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1074)
  150. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
  151. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
  152. at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
  153. at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
  154. at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
  155. at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
  156. at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580)
  157. at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
  158. at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
  159. at org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:84)
  160. at org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:1)
  161. at org.springframework.test.context.TestContext.loadApplicationContext(TestContext.java:280)
  162. at org.springframework.test.context.TestContext.getApplicationContext(TestContext.java:304)
  163. ... 29 more
  164. Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: org.openmrs.module.emrapi.disposition.DispositionService org.openmrs.module.emrapi.adt.reporting.evaluator.AwaitingAdmissionVisitQueryEvaluator.dispositionService; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No matching bean of type [org.openmrs.module.emrapi.disposition.DispositionService] 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)}
  165. at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:502)
  166. at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:84)
  167. at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:282)
  168. ... 43 more
  169. Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No matching bean of type [org.openmrs.module.emrapi.disposition.DispositionService] 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)}
  170. at org.springframework.beans.factory.support.DefaultListableBeanFactory.raiseNoSuchBeanDefinitionException(DefaultListableBeanFactory.java:920)
  171. at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:789)
  172. at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:703)
  173. at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:474)
  174. ... 45 more
  175. ERROR - TestContextManager.prepareTestInstance(324) |2015-10-13 14:54:58,662| Caught exception while allowing TestExecutionListener [org.springframework.test.context.support.DependencyInjectionTestExecutionListener@23c7f5] to prepare test instance [org.openmrs.module.emrapi.encounter.service.OrderMetadataServiceTest@1769f17]
  176. java.lang.IllegalStateException: Failed to load ApplicationContext
  177. at org.springframework.test.context.TestContext.getApplicationContext(TestContext.java:308)
  178. at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.injectDependencies(DependencyInjectionTestExecutionListener.java:109)
  179. at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.prepareTestInstance(DependencyInjectionTestExecutionListener.java:75)
  180. at org.springframework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:321)
  181. at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.createTest(SpringJUnit4ClassRunner.java:220)
  182. at org.springframework.test.context.junit4.SpringJUnit4ClassRunner$1.runReflectiveCall(SpringJUnit4ClassRunner.java:301)
  183. at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
  184. at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.methodBlock(SpringJUnit4ClassRunner.java:303)
  185. at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:240)
  186. at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
  187. at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
  188. at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
  189. at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
  190. at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
  191. at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
  192. at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)
  193. at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
  194. at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70)
  195. at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
  196. at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:180)
  197. at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:59)
  198. at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:115)
  199. at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:102)
  200. at org.apache.maven.surefire.Surefire.run(Surefire.java:180)
  201. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  202. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
  203. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  204. at java.lang.reflect.Method.invoke(Method.java:616)
  205. at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:350)
  206. at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1021)
  207. Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'awaitingAdmissionVisitQueryEvaluator': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: org.openmrs.module.emrapi.disposition.DispositionService org.openmrs.module.emrapi.adt.reporting.evaluator.AwaitingAdmissionVisitQueryEvaluator.dispositionService; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No matching bean of type [org.openmrs.module.emrapi.disposition.DispositionService] 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)}
  208. Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'emrConceptService' defined in URL [jar:file:/media/KJoseph/Projects/openMRS/Modules/openmrs-module-emrapi/api/target/emrapi-api-1.12-SNAPSHOT.jar!/moduleApplicationContext.xml]: Cannot create inner bean 'org.openmrs.module.emrapi.concept.EmrConceptServiceImpl#f78ba5' of type [org.openmrs.module.emrapi.concept.EmrConceptServiceImpl] while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.openmrs.module.emrapi.concept.EmrConceptServiceImpl#f78ba5' defined in URL [jar:file:/media/KJoseph/Projects/openMRS/Modules/openmrs-module-emrapi/api/target/emrapi-api-1.12-SNAPSHOT.jar!/moduleApplicationContext.xml]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: Lorg/openmrs/api/db/hibernate/DbSessionFactory;
  209. Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'emrPatientService' defined in URL [jar:file:/media/KJoseph/Projects/openMRS/Modules/openmrs-module-emrapi/api/target/emrapi-api-1.12-SNAPSHOT.jar!/moduleApplicationContext.xml]: Cannot create inner bean 'org.openmrs.module.emrapi.patient.EmrPatientServiceImpl#5d7ace' of type [org.openmrs.module.emrapi.patient.EmrPatientServiceImpl] while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.openmrs.module.emrapi.patient.EmrPatientServiceImpl#5d7ace' defined in URL [jar:file:/media/KJoseph/Projects/openMRS/Modules/openmrs-module-emrapi/api/target/emrapi-api-1.12-SNAPSHOT.jar!/moduleApplicationContext.xml]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: Lorg/openmrs/api/db/hibernate/DbSessionFactory;
  210. Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dispositionService' defined in URL [jar:file:/media/KJoseph/Projects/openMRS/Modules/openmrs-module-emrapi/api/target/emrapi-api-1.12-SNAPSHOT.jar!/moduleApplicationContext.xml]: Cannot create inner bean 'org.openmrs.module.emrapi.disposition.DispositionServiceImpl#116e9d8' of type [org.openmrs.module.emrapi.disposition.DispositionServiceImpl] while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.openmrs.module.emrapi.disposition.DispositionServiceImpl#116e9d8' defined in URL [jar:file:/media/KJoseph/Projects/openMRS/Modules/openmrs-module-emrapi/api/target/emrapi-api-1.12-SNAPSHOT.jar!/moduleApplicationContext.xml]: Cannot resolve reference to bean 'emrConceptService' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'emrConceptService' defined in URL [jar:file:/media/KJoseph/Projects/openMRS/Modules/openmrs-module-emrapi/api/target/emrapi-api-1.12-SNAPSHOT.jar!/moduleApplicationContext.xml]: Cannot create inner bean 'org.openmrs.module.emrapi.concept.EmrConceptServiceImpl#f78ba5' of type [org.openmrs.module.emrapi.concept.EmrConceptServiceImpl] while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.openmrs.module.emrapi.concept.EmrConceptServiceImpl#f78ba5' defined in URL [jar:file:/media/KJoseph/Projects/openMRS/Modules/openmrs-module-emrapi/api/target/emrapi-api-1.12-SNAPSHOT.jar!/moduleApplicationContext.xml]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: Lorg/openmrs/api/db/hibernate/DbSessionFactory;
  211. Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'emrConceptService' defined in URL [jar:file:/media/KJoseph/Projects/openMRS/Modules/openmrs-module-emrapi/api/target/emrapi-api-1.12-SNAPSHOT.jar!/moduleApplicationContext.xml]: Cannot create inner bean 'org.openmrs.module.emrapi.concept.EmrConceptServiceImpl#f78ba5' of type [org.openmrs.module.emrapi.concept.EmrConceptServiceImpl] while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.openmrs.module.emrapi.concept.EmrConceptServiceImpl#f78ba5' defined in URL [jar:file:/media/KJoseph/Projects/openMRS/Modules/openmrs-module-emrapi/api/target/emrapi-api-1.12-SNAPSHOT.jar!/moduleApplicationContext.xml]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: Lorg/openmrs/api/db/hibernate/DbSessionFactory;
  212. Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'emrPatientService' defined in URL [jar:file:/media/KJoseph/Projects/openMRS/Modules/openmrs-module-emrapi/api/target/emrapi-api-1.12-SNAPSHOT.jar!/moduleApplicationContext.xml]: Cannot create inner bean 'org.openmrs.module.emrapi.patient.EmrPatientServiceImpl#5d7ace' of type [org.openmrs.module.emrapi.patient.EmrPatientServiceImpl] while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.openmrs.module.emrapi.patient.EmrPatientServiceImpl#5d7ace' defined in URL [jar:file:/media/KJoseph/Projects/openMRS/Modules/openmrs-module-emrapi/api/target/emrapi-api-1.12-SNAPSHOT.jar!/moduleApplicationContext.xml]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: Lorg/openmrs/api/db/hibernate/DbSessionFactory;
  213. Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dispositionService' defined in URL [jar:file:/media/KJoseph/Projects/openMRS/Modules/openmrs-module-emrapi/api/target/emrapi-api-1.12-SNAPSHOT.jar!/moduleApplicationContext.xml]: Cannot create inner bean 'org.openmrs.module.emrapi.disposition.DispositionServiceImpl#116e9d8' of type [org.openmrs.module.emrapi.disposition.DispositionServiceImpl] while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.openmrs.module.emrapi.disposition.DispositionServiceImpl#116e9d8' defined in URL [jar:file:/media/KJoseph/Projects/openMRS/Modules/openmrs-module-emrapi/api/target/emrapi-api-1.12-SNAPSHOT.jar!/moduleApplicationContext.xml]: Cannot resolve reference to bean 'emrConceptService' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'emrConceptService' defined in URL [jar:file:/media/KJoseph/Projects/openMRS/Modules/openmrs-module-emrapi/api/target/emrapi-api-1.12-SNAPSHOT.jar!/moduleApplicationContext.xml]: Cannot create inner bean 'org.openmrs.module.emrapi.concept.EmrConceptServiceImpl#f78ba5' of type [org.openmrs.module.emrapi.concept.EmrConceptServiceImpl] while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.openmrs.module.emrapi.concept.EmrConceptServiceImpl#f78ba5' defined in URL [jar:file:/media/KJoseph/Projects/openMRS/Modules/openmrs-module-emrapi/api/target/emrapi-api-1.12-SNAPSHOT.jar!/moduleApplicationContext.xml]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: Lorg/openmrs/api/db/hibernate/DbSessionFactory;
  214. at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:285)
  215. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1074)
  216. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
  217. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
  218. at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
  219. at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
  220. at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
  221. at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
  222. at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580)
  223. at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
  224. at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
  225. at org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:84)
  226. at org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:1)
  227. at org.springframework.test.context.TestContext.loadApplicationContext(TestContext.java:280)
  228. at org.springframework.test.context.TestContext.getApplicationContext(TestContext.java:304)
  229. ... 29 more
  230. Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: org.openmrs.module.emrapi.disposition.DispositionService org.openmrs.module.emrapi.adt.reporting.evaluator.AwaitingAdmissionVisitQueryEvaluator.dispositionService; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No matching bean of type [org.openmrs.module.emrapi.disposition.DispositionService] 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)}
  231. at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:502)
  232. at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:84)
  233. at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:282)
  234. ... 43 more
  235. Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No matching bean of type [org.openmrs.module.emrapi.disposition.DispositionService] 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)}
  236. at org.springframework.beans.factory.support.DefaultListableBeanFactory.raiseNoSuchBeanDefinitionException(DefaultListableBeanFactory.java:920)
  237. at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:789)
  238. at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:703)
  239. at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:474)
  240. ... 45 more
  241. ERROR - TestContextManager.prepareTestInstance(324) |2015-10-13 14:55:04,497| Caught exception while allowing TestExecutionListener [org.springframework.test.context.support.DependencyInjectionTestExecutionListener@23c7f5] to prepare test instance [org.openmrs.module.emrapi.encounter.service.OrderMetadataServiceTest@141e734]
  242. java.lang.IllegalStateException: Failed to load ApplicationContext
  243. at org.springframework.test.context.TestContext.getApplicationContext(TestContext.java:308)
  244. at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.injectDependencies(DependencyInjectionTestExecutionListener.java:109)
  245. at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.prepareTestInstance(DependencyInjectionTestExecutionListener.java:75)
  246. at org.springframework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:321)
  247. at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.createTest(SpringJUnit4ClassRunner.java:220)
  248. at org.springframework.test.context.junit4.SpringJUnit4ClassRunner$1.runReflectiveCall(SpringJUnit4ClassRunner.java:301)
  249. at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
  250. at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.methodBlock(SpringJUnit4ClassRunner.java:303)
  251. at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:240)
  252. at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
  253. at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
  254. at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
  255. at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
  256. at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
  257. at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
  258. at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)
  259. at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
  260. at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70)
  261. at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
  262. at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:180)
  263. at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:59)
  264. at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:115)
  265. at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:102)
  266. at org.apache.maven.surefire.Surefire.run(Surefire.java:180)
  267. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  268. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
  269. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  270. at java.lang.reflect.Method.invoke(Method.java:616)
  271. at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:350)
  272. at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1021)
  273. Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'awaitingAdmissionVisitQueryEvaluator': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: org.openmrs.module.emrapi.disposition.DispositionService org.openmrs.module.emrapi.adt.reporting.evaluator.AwaitingAdmissionVisitQueryEvaluator.dispositionService; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No matching bean of type [org.openmrs.module.emrapi.disposition.DispositionService] 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)}
  274. Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'emrConceptService' defined in URL [jar:file:/media/KJoseph/Projects/openMRS/Modules/openmrs-module-emrapi/api/target/emrapi-api-1.12-SNAPSHOT.jar!/moduleApplicationContext.xml]: Cannot create inner bean 'org.openmrs.module.emrapi.concept.EmrConceptServiceImpl#1961bac' of type [org.openmrs.module.emrapi.concept.EmrConceptServiceImpl] while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.openmrs.module.emrapi.concept.EmrConceptServiceImpl#1961bac' defined in URL [jar:file:/media/KJoseph/Projects/openMRS/Modules/openmrs-module-emrapi/api/target/emrapi-api-1.12-SNAPSHOT.jar!/moduleApplicationContext.xml]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: Lorg/openmrs/api/db/hibernate/DbSessionFactory;
  275. Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'emrPatientService' defined in URL [jar:file:/media/KJoseph/Projects/openMRS/Modules/openmrs-module-emrapi/api/target/emrapi-api-1.12-SNAPSHOT.jar!/moduleApplicationContext.xml]: Cannot create inner bean 'org.openmrs.module.emrapi.patient.EmrPatientServiceImpl#d4fbfd' of type [org.openmrs.module.emrapi.patient.EmrPatientServiceImpl] while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.openmrs.module.emrapi.patient.EmrPatientServiceImpl#d4fbfd' defined in URL [jar:file:/media/KJoseph/Projects/openMRS/Modules/openmrs-module-emrapi/api/target/emrapi-api-1.12-SNAPSHOT.jar!/moduleApplicationContext.xml]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: Lorg/openmrs/api/db/hibernate/DbSessionFactory;
  276. Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dispositionService' defined in URL [jar:file:/media/KJoseph/Projects/openMRS/Modules/openmrs-module-emrapi/api/target/emrapi-api-1.12-SNAPSHOT.jar!/moduleApplicationContext.xml]: Cannot create inner bean 'org.openmrs.module.emrapi.disposition.DispositionServiceImpl#4b2f7f' of type [org.openmrs.module.emrapi.disposition.DispositionServiceImpl] while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.openmrs.module.emrapi.disposition.DispositionServiceImpl#4b2f7f' defined in URL [jar:file:/media/KJoseph/Projects/openMRS/Modules/openmrs-module-emrapi/api/target/emrapi-api-1.12-SNAPSHOT.jar!/moduleApplicationContext.xml]: Cannot resolve reference to bean 'emrConceptService' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'emrConceptService' defined in URL [jar:file:/media/KJoseph/Projects/openMRS/Modules/openmrs-module-emrapi/api/target/emrapi-api-1.12-SNAPSHOT.jar!/moduleApplicationContext.xml]: Cannot create inner bean 'org.openmrs.module.emrapi.concept.EmrConceptServiceImpl#1961bac' of type [org.openmrs.module.emrapi.concept.EmrConceptServiceImpl] while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.openmrs.module.emrapi.concept.EmrConceptServiceImpl#1961bac' defined in URL [jar:file:/media/KJoseph/Projects/openMRS/Modules/openmrs-module-emrapi/api/target/emrapi-api-1.12-SNAPSHOT.jar!/moduleApplicationContext.xml]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: Lorg/openmrs/api/db/hibernate/DbSessionFactory;
  277. Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'emrConceptService' defined in URL [jar:file:/media/KJoseph/Projects/openMRS/Modules/openmrs-module-emrapi/api/target/emrapi-api-1.12-SNAPSHOT.jar!/moduleApplicationContext.xml]: Cannot create inner bean 'org.openmrs.module.emrapi.concept.EmrConceptServiceImpl#1961bac' of type [org.openmrs.module.emrapi.concept.EmrConceptServiceImpl] while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.openmrs.module.emrapi.concept.EmrConceptServiceImpl#1961bac' defined in URL [jar:file:/media/KJoseph/Projects/openMRS/Modules/openmrs-module-emrapi/api/target/emrapi-api-1.12-SNAPSHOT.jar!/moduleApplicationContext.xml]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: Lorg/openmrs/api/db/hibernate/DbSessionFactory;
  278. Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'emrPatientService' defined in URL [jar:file:/media/KJoseph/Projects/openMRS/Modules/openmrs-module-emrapi/api/target/emrapi-api-1.12-SNAPSHOT.jar!/moduleApplicationContext.xml]: Cannot create inner bean 'org.openmrs.module.emrapi.patient.EmrPatientServiceImpl#d4fbfd' of type [org.openmrs.module.emrapi.patient.EmrPatientServiceImpl] while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.openmrs.module.emrapi.patient.EmrPatientServiceImpl#d4fbfd' defined in URL [jar:file:/media/KJoseph/Projects/openMRS/Modules/openmrs-module-emrapi/api/target/emrapi-api-1.12-SNAPSHOT.jar!/moduleApplicationContext.xml]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: Lorg/openmrs/api/db/hibernate/DbSessionFactory;
  279. Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dispositionService' defined in URL [jar:file:/media/KJoseph/Projects/openMRS/Modules/openmrs-module-emrapi/api/target/emrapi-api-1.12-SNAPSHOT.jar!/moduleApplicationContext.xml]: Cannot create inner bean 'org.openmrs.module.emrapi.disposition.DispositionServiceImpl#4b2f7f' of type [org.openmrs.module.emrapi.disposition.DispositionServiceImpl] while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.openmrs.module.emrapi.disposition.DispositionServiceImpl#4b2f7f' defined in URL [jar:file:/media/KJoseph/Projects/openMRS/Modules/openmrs-module-emrapi/api/target/emrapi-api-1.12-SNAPSHOT.jar!/moduleApplicationContext.xml]: Cannot resolve reference to bean 'emrConceptService' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'emrConceptService' defined in URL [jar:file:/media/KJoseph/Projects/openMRS/Modules/openmrs-module-emrapi/api/target/emrapi-api-1.12-SNAPSHOT.jar!/moduleApplicationContext.xml]: Cannot create inner bean 'org.openmrs.module.emrapi.concept.EmrConceptServiceImpl#1961bac' of type [org.openmrs.module.emrapi.concept.EmrConceptServiceImpl] while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.openmrs.module.emrapi.concept.EmrConceptServiceImpl#1961bac' defined in URL [jar:file:/media/KJoseph/Projects/openMRS/Modules/openmrs-module-emrapi/api/target/emrapi-api-1.12-SNAPSHOT.jar!/moduleApplicationContext.xml]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: Lorg/openmrs/api/db/hibernate/DbSessionFactory;
  280. at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:285)
  281. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1074)
  282. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
  283. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
  284. at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
  285. at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
  286. at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
  287. at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
  288. at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580)
  289. at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
  290. at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
  291. at org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:84)
  292. at org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:1)
  293. at org.springframework.test.context.TestContext.loadApplicationContext(TestContext.java:280)
  294. at org.springframework.test.context.TestContext.getApplicationContext(TestContext.java:304)
  295. ... 29 more
  296. Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: org.openmrs.module.emrapi.disposition.DispositionService org.openmrs.module.emrapi.adt.reporting.evaluator.AwaitingAdmissionVisitQueryEvaluator.dispositionService; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No matching bean of type [org.openmrs.module.emrapi.disposition.DispositionService] 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)}
  297. at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:502)
  298. at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:84)
  299. at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:282)
  300. ... 43 more
  301. Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No matching bean of type [org.openmrs.module.emrapi.disposition.DispositionService] 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)}
  302. at org.springframework.beans.factory.support.DefaultListableBeanFactory.raiseNoSuchBeanDefinitionException(DefaultListableBeanFactory.java:920)
  303. at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:789)
  304. at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:703)
  305. at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:474)
  306. ... 45 more
  307. ERROR - TestContextManager.prepareTestInstance(324) |2015-10-13 14:55:10,300| Caught exception while allowing TestExecutionListener [org.springframework.test.context.support.DependencyInjectionTestExecutionListener@23c7f5] to prepare test instance [org.openmrs.module.emrapi.encounter.service.OrderMetadataServiceTest@1db6ac2]
  308. java.lang.IllegalStateException: Failed to load ApplicationContext
  309. at org.springframework.test.context.TestContext.getApplicationContext(TestContext.java:308)
  310. at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.injectDependencies(DependencyInjectionTestExecutionListener.java:109)
  311. at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.prepareTestInstance(DependencyInjectionTestExecutionListener.java:75)
  312. at org.springframework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:321)
  313. at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.createTest(SpringJUnit4ClassRunner.java:220)
  314. at org.springframework.test.context.junit4.SpringJUnit4ClassRunner$1.runReflectiveCall(SpringJUnit4ClassRunner.java:301)
  315. at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
  316. at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.methodBlock(SpringJUnit4ClassRunner.java:303)
  317. at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:240)
  318. at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
  319. at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
  320. at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
  321. at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
  322. at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
  323. at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
  324. at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)
  325. at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
  326. at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70)
  327. at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
  328. at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:180)
  329. at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:59)
  330. at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:115)
  331. at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:102)
  332. at org.apache.maven.surefire.Surefire.run(Surefire.java:180)
  333. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  334. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
  335. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  336. at java.lang.reflect.Method.invoke(Method.java:616)
  337. at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:350)
  338. at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1021)
  339. Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'awaitingAdmissionVisitQueryEvaluator': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: org.openmrs.module.emrapi.disposition.DispositionService org.openmrs.module.emrapi.adt.reporting.evaluator.AwaitingAdmissionVisitQueryEvaluator.dispositionService; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No matching bean of type [org.openmrs.module.emrapi.disposition.DispositionService] 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)}
  340. Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'emrConceptService' defined in URL [jar:file:/media/KJoseph/Projects/openMRS/Modules/openmrs-module-emrapi/api/target/emrapi-api-1.12-SNAPSHOT.jar!/moduleApplicationContext.xml]: Cannot create inner bean 'org.openmrs.module.emrapi.concept.EmrConceptServiceImpl#16312e6' of type [org.openmrs.module.emrapi.concept.EmrConceptServiceImpl] while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.openmrs.module.emrapi.concept.EmrConceptServiceImpl#16312e6' defined in URL [jar:file:/media/KJoseph/Projects/openMRS/Modules/openmrs-module-emrapi/api/target/emrapi-api-1.12-SNAPSHOT.jar!/moduleApplicationContext.xml]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: Lorg/openmrs/api/db/hibernate/DbSessionFactory;
  341. Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'emrPatientService' defined in URL [jar:file:/media/KJoseph/Projects/openMRS/Modules/openmrs-module-emrapi/api/target/emrapi-api-1.12-SNAPSHOT.jar!/moduleApplicationContext.xml]: Cannot create inner bean 'org.openmrs.module.emrapi.patient.EmrPatientServiceImpl#1bbdbbd' of type [org.openmrs.module.emrapi.patient.EmrPatientServiceImpl] while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.openmrs.module.emrapi.patient.EmrPatientServiceImpl#1bbdbbd' defined in URL [jar:file:/media/KJoseph/Projects/openMRS/Modules/openmrs-module-emrapi/api/target/emrapi-api-1.12-SNAPSHOT.jar!/moduleApplicationContext.xml]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: Lorg/openmrs/api/db/hibernate/DbSessionFactory;
  342. Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dispositionService' defined in URL [jar:file:/media/KJoseph/Projects/openMRS/Modules/openmrs-module-emrapi/api/target/emrapi-api-1.12-SNAPSHOT.jar!/moduleApplicationContext.xml]: Cannot create inner bean 'org.openmrs.module.emrapi.disposition.DispositionServiceImpl#1124c5e' of type [org.openmrs.module.emrapi.disposition.DispositionServiceImpl] while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.openmrs.module.emrapi.disposition.DispositionServiceImpl#1124c5e' defined in URL [jar:file:/media/KJoseph/Projects/openMRS/Modules/openmrs-module-emrapi/api/target/emrapi-api-1.12-SNAPSHOT.jar!/moduleApplicationContext.xml]: Cannot resolve reference to bean 'emrConceptService' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'emrConceptService' defined in URL [jar:file:/media/KJoseph/Projects/openMRS/Modules/openmrs-module-emrapi/api/target/emrapi-api-1.12-SNAPSHOT.jar!/moduleApplicationContext.xml]: Cannot create inner bean 'org.openmrs.module.emrapi.concept.EmrConceptServiceImpl#16312e6' of type [org.openmrs.module.emrapi.concept.EmrConceptServiceImpl] while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.openmrs.module.emrapi.concept.EmrConceptServiceImpl#16312e6' defined in URL [jar:file:/media/KJoseph/Projects/openMRS/Modules/openmrs-module-emrapi/api/target/emrapi-api-1.12-SNAPSHOT.jar!/moduleApplicationContext.xml]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: Lorg/openmrs/api/db/hibernate/DbSessionFactory;
  343. Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'emrConceptService' defined in URL [jar:file:/media/KJoseph/Projects/openMRS/Modules/openmrs-module-emrapi/api/target/emrapi-api-1.12-SNAPSHOT.jar!/moduleApplicationContext.xml]: Cannot create inner bean 'org.openmrs.module.emrapi.concept.EmrConceptServiceImpl#16312e6' of type [org.openmrs.module.emrapi.concept.EmrConceptServiceImpl] while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.openmrs.module.emrapi.concept.EmrConceptServiceImpl#16312e6' defined in URL [jar:file:/media/KJoseph/Projects/openMRS/Modules/openmrs-module-emrapi/api/target/emrapi-api-1.12-SNAPSHOT.jar!/moduleApplicationContext.xml]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: Lorg/openmrs/api/db/hibernate/DbSessionFactory;
  344. Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'emrPatientService' defined in URL [jar:file:/media/KJoseph/Projects/openMRS/Modules/openmrs-module-emrapi/api/target/emrapi-api-1.12-SNAPSHOT.jar!/moduleApplicationContext.xml]: Cannot create inner bean 'org.openmrs.module.emrapi.patient.EmrPatientServiceImpl#1bbdbbd' of type [org.openmrs.module.emrapi.patient.EmrPatientServiceImpl] while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.openmrs.module.emrapi.patient.EmrPatientServiceImpl#1bbdbbd' defined in URL [jar:file:/media/KJoseph/Projects/openMRS/Modules/openmrs-module-emrapi/api/target/emrapi-api-1.12-SNAPSHOT.jar!/moduleApplicationContext.xml]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: Lorg/openmrs/api/db/hibernate/DbSessionFactory;
  345. Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dispositionService' defined in URL [jar:file:/media/KJoseph/Projects/openMRS/Modules/openmrs-module-emrapi/api/target/emrapi-api-1.12-SNAPSHOT.jar!/moduleApplicationContext.xml]: Cannot create inner bean 'org.openmrs.module.emrapi.disposition.DispositionServiceImpl#1124c5e' of type [org.openmrs.module.emrapi.disposition.DispositionServiceImpl] while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.openmrs.module.emrapi.disposition.DispositionServiceImpl#1124c5e' defined in URL [jar:file:/media/KJoseph/Projects/openMRS/Modules/openmrs-module-emrapi/api/target/emrapi-api-1.12-SNAPSHOT.jar!/moduleApplicationContext.xml]: Cannot resolve reference to bean 'emrConceptService' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'emrConceptService' defined in URL [jar:file:/media/KJoseph/Projects/openMRS/Modules/openmrs-module-emrapi/api/target/emrapi-api-1.12-SNAPSHOT.jar!/moduleApplicationContext.xml]: Cannot create inner bean 'org.openmrs.module.emrapi.concept.EmrConceptServiceImpl#16312e6' of type [org.openmrs.module.emrapi.concept.EmrConceptServiceImpl] while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.openmrs.module.emrapi.concept.EmrConceptServiceImpl#16312e6' defined in URL [jar:file:/media/KJoseph/Projects/openMRS/Modules/openmrs-module-emrapi/api/target/emrapi-api-1.12-SNAPSHOT.jar!/moduleApplicationContext.xml]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: Lorg/openmrs/api/db/hibernate/DbSessionFactory;
  346. at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:285)
  347. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1074)
  348. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
  349. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
  350. at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
  351. at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
  352. at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
  353. at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
  354. at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580)
  355. at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
  356. at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
  357. at org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:84)
  358. at org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:1)
  359. at org.springframework.test.context.TestContext.loadApplicationContext(TestContext.java:280)
  360. at org.springframework.test.context.TestContext.getApplicationContext(TestContext.java:304)
  361. ... 29 more
  362. Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: org.openmrs.module.emrapi.disposition.DispositionService org.openmrs.module.emrapi.adt.reporting.evaluator.AwaitingAdmissionVisitQueryEvaluator.dispositionService; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No matching bean of type [org.openmrs.module.emrapi.disposition.DispositionService] 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)}
  363. at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:502)
  364. at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:84)
  365. at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:282)
  366. ... 43 more
  367. Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No matching bean of type [org.openmrs.module.emrapi.disposition.DispositionService] 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)}
  368. at org.springframework.beans.factory.support.DefaultListableBeanFactory.raiseNoSuchBeanDefinitionException(DefaultListableBeanFactory.java:920)
  369. at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:789)
  370. at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:703)
  371. at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:474)
  372. ... 45 more
  373. ERROR - TestContextManager.prepareTestInstance(324) |2015-10-13 14:55:15,454| Caught exception while allowing TestExecutionListener [org.springframework.test.context.support.DependencyInjectionTestExecutionListener@23c7f5] to prepare test instance [org.openmrs.module.emrapi.encounter.service.OrderMetadataServiceTest@281cee]
  374. java.lang.IllegalStateException: Failed to load ApplicationContext
  375. at org.springframework.test.context.TestContext.getApplicationContext(TestContext.java:308)
  376. at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.injectDependencies(DependencyInjectionTestExecutionListener.java:109)
  377. at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.prepareTestInstance(DependencyInjectionTestExecutionListener.java:75)
  378. at org.springframework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:321)
  379. at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.createTest(SpringJUnit4ClassRunner.java:220)
  380. at org.springframework.test.context.junit4.SpringJUnit4ClassRunner$1.runReflectiveCall(SpringJUnit4ClassRunner.java:301)
  381. at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
  382. at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.methodBlock(SpringJUnit4ClassRunner.java:303)
  383. at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:240)
  384. at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
  385. at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
  386. at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
  387. at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
  388. at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
  389. at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
  390. at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)
  391. at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
  392. at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70)
  393. at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
  394. at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:180)
  395. at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:59)
  396. at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:115)
  397. at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:102)
  398. at org.apache.maven.surefire.Surefire.run(Surefire.java:180)
  399. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  400. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
  401. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  402. at java.lang.reflect.Method.invoke(Method.java:616)
  403. at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:350)
  404. at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1021)
  405. Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'awaitingAdmissionVisitQueryEvaluator': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: org.openmrs.module.emrapi.disposition.DispositionService org.openmrs.module.emrapi.adt.reporting.evaluator.AwaitingAdmissionVisitQueryEvaluator.dispositionService; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No matching bean of type [org.openmrs.module.emrapi.disposition.DispositionService] 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)}
  406. Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'emrConceptService' defined in URL [jar:file:/media/KJoseph/Projects/openMRS/Modules/openmrs-module-emrapi/api/target/emrapi-api-1.12-SNAPSHOT.jar!/moduleApplicationContext.xml]: Cannot create inner bean 'org.openmrs.module.emrapi.concept.EmrConceptServiceImpl#24d938' of type [org.openmrs.module.emrapi.concept.EmrConceptServiceImpl] while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.openmrs.module.emrapi.concept.EmrConceptServiceImpl#24d938' defined in URL [jar:file:/media/KJoseph/Projects/openMRS/Modules/openmrs-module-emrapi/api/target/emrapi-api-1.12-SNAPSHOT.jar!/moduleApplicationContext.xml]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: Lorg/openmrs/api/db/hibernate/DbSessionFactory;
  407. Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'emrPatientService' defined in URL [jar:file:/media/KJoseph/Projects/openMRS/Modules/openmrs-module-emrapi/api/target/emrapi-api-1.12-SNAPSHOT.jar!/moduleApplicationContext.xml]: Cannot create inner bean 'org.openmrs.module.emrapi.patient.EmrPatientServiceImpl#26bd83' of type [org.openmrs.module.emrapi.patient.EmrPatientServiceImpl] while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.openmrs.module.emrapi.patient.EmrPatientServiceImpl#26bd83' defined in URL [jar:file:/media/KJoseph/Projects/openMRS/Modules/openmrs-module-emrapi/api/target/emrapi-api-1.12-SNAPSHOT.jar!/moduleApplicationContext.xml]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: Lorg/openmrs/api/db/hibernate/DbSessionFactory;
  408. Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dispositionService' defined in URL [jar:file:/media/KJoseph/Projects/openMRS/Modules/openmrs-module-emrapi/api/target/emrapi-api-1.12-SNAPSHOT.jar!/moduleApplicationContext.xml]: Cannot create inner bean 'org.openmrs.module.emrapi.disposition.DispositionServiceImpl#170eb94' of type [org.openmrs.module.emrapi.disposition.DispositionServiceImpl] while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.openmrs.module.emrapi.disposition.DispositionServiceImpl#170eb94' defined in URL [jar:file:/media/KJoseph/Projects/openMRS/Modules/openmrs-module-emrapi/api/target/emrapi-api-1.12-SNAPSHOT.jar!/moduleApplicationContext.xml]: Cannot resolve reference to bean 'emrConceptService' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'emrConceptService' defined in URL [jar:file:/media/KJoseph/Projects/openMRS/Modules/openmrs-module-emrapi/api/target/emrapi-api-1.12-SNAPSHOT.jar!/moduleApplicationContext.xml]: Cannot create inner bean 'org.openmrs.module.emrapi.concept.EmrConceptServiceImpl#24d938' of type [org.openmrs.module.emrapi.concept.EmrConceptServiceImpl] while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.openmrs.module.emrapi.concept.EmrConceptServiceImpl#24d938' defined in URL [jar:file:/media/KJoseph/Projects/openMRS/Modules/openmrs-module-emrapi/api/target/emrapi-api-1.12-SNAPSHOT.jar!/moduleApplicationContext.xml]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: Lorg/openmrs/api/db/hibernate/DbSessionFactory;
  409. Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'emrConceptService' defined in URL [jar:file:/media/KJoseph/Projects/openMRS/Modules/openmrs-module-emrapi/api/target/emrapi-api-1.12-SNAPSHOT.jar!/moduleApplicationContext.xml]: Cannot create inner bean 'org.openmrs.module.emrapi.concept.EmrConceptServiceImpl#24d938' of type [org.openmrs.module.emrapi.concept.EmrConceptServiceImpl] while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.openmrs.module.emrapi.concept.EmrConceptServiceImpl#24d938' defined in URL [jar:file:/media/KJoseph/Projects/openMRS/Modules/openmrs-module-emrapi/api/target/emrapi-api-1.12-SNAPSHOT.jar!/moduleApplicationContext.xml]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: Lorg/openmrs/api/db/hibernate/DbSessionFactory;
  410. Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'emrPatientService' defined in URL [jar:file:/media/KJoseph/Projects/openMRS/Modules/openmrs-module-emrapi/api/target/emrapi-api-1.12-SNAPSHOT.jar!/moduleApplicationContext.xml]: Cannot create inner bean 'org.openmrs.module.emrapi.patient.EmrPatientServiceImpl#26bd83' of type [org.openmrs.module.emrapi.patient.EmrPatientServiceImpl] while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.openmrs.module.emrapi.patient.EmrPatientServiceImpl#26bd83' defined in URL [jar:file:/media/KJoseph/Projects/openMRS/Modules/openmrs-module-emrapi/api/target/emrapi-api-1.12-SNAPSHOT.jar!/moduleApplicationContext.xml]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: Lorg/openmrs/api/db/hibernate/DbSessionFactory;
  411. Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dispositionService' defined in URL [jar:file:/media/KJoseph/Projects/openMRS/Modules/openmrs-module-emrapi/api/target/emrapi-api-1.12-SNAPSHOT.jar!/moduleApplicationContext.xml]: Cannot create inner bean 'org.openmrs.module.emrapi.disposition.DispositionServiceImpl#170eb94' of type [org.openmrs.module.emrapi.disposition.DispositionServiceImpl] while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.openmrs.module.emrapi.disposition.DispositionServiceImpl#170eb94' defined in URL [jar:file:/media/KJoseph/Projects/openMRS/Modules/openmrs-module-emrapi/api/target/emrapi-api-1.12-SNAPSHOT.jar!/moduleApplicationContext.xml]: Cannot resolve reference to bean 'emrConceptService' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'emrConceptService' defined in URL [jar:file:/media/KJoseph/Projects/openMRS/Modules/openmrs-module-emrapi/api/target/emrapi-api-1.12-SNAPSHOT.jar!/moduleApplicationContext.xml]: Cannot create inner bean 'org.openmrs.module.emrapi.concept.EmrConceptServiceImpl#24d938' of type [org.openmrs.module.emrapi.concept.EmrConceptServiceImpl] while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.openmrs.module.emrapi.concept.EmrConceptServiceImpl#24d938' defined in URL [jar:file:/media/KJoseph/Projects/openMRS/Modules/openmrs-module-emrapi/api/target/emrapi-api-1.12-SNAPSHOT.jar!/moduleApplicationContext.xml]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: Lorg/openmrs/api/db/hibernate/DbSessionFactory;
  412. at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:285)
  413. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1074)
  414. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
  415. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
  416. at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
  417. at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
  418. at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
  419. at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
  420. at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580)
  421. at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
  422. at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
  423. at org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:84)
  424. at org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:1)
  425. at org.springframework.test.context.TestContext.loadApplicationContext(TestContext.java:280)
  426. at org.springframework.test.context.TestContext.getApplicationContext(TestContext.java:304)
  427. ... 29 more
  428. Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: org.openmrs.module.emrapi.disposition.DispositionService org.openmrs.module.emrapi.adt.reporting.evaluator.AwaitingAdmissionVisitQueryEvaluator.dispositionService; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No matching bean of type [org.openmrs.module.emrapi.disposition.DispositionService] 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)}
  429. at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:502)
  430. at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:84)
  431. at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:282)
  432. ... 43 more
  433. Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No matching bean of type [org.openmrs.module.emrapi.disposition.DispositionService] 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)}
  434. at org.springframework.beans.factory.support.DefaultListableBeanFactory.raiseNoSuchBeanDefinitionException(DefaultListableBeanFactory.java:920)
  435. at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:789)
  436. at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:703)
  437. at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:474)
  438. ... 45 more
  439. Tests run: 6, Failures: 0, Errors: 6, Skipped: 0, Time elapsed: 52.907 sec <<< FAILURE!
  440. Running org.openmrs.module.emrapi.encounter.EmrOrderServiceImpl_1_10Test
  441. Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.183 sec
  442. Running org.openmrs.module.emrapi.encounter.mapper.OpenMRSOrderMapper1_10Test
  443. Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.316 sec
  444. Running org.openmrs.module.emrapi.encounter.mapper.DrugOrderMapper1_10Test
  445. SLF4J: Class path contains multiple SLF4J bindings.
  446. SLF4J: Found binding in [jar:file:/home/k-joseph/.m2/repository/org/slf4j/slf4j-log4j12/1.6.0/slf4j-log4j12-1.6.0.jar!/org/slf4j/impl/StaticLoggerBinder.class]
  447. SLF4J: Found binding in [jar:file:/home/k-joseph/.m2/repository/org/slf4j/slf4j-log4j12/1.6.0/slf4j-log4j12-1.6.0.jar!/org/slf4j/impl/StaticLoggerBinder.class]
  448. SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
  449. Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 4.462 sec
  450. Running org.openmrs.module.emrapi.encounter.mapper.OpenMRSDrugOrderMapper1_10Test
  451. Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.197 sec
  452.  
  453. Results :
  454.  
  455. Tests in error:
  456. shouldReturnNullIfDurationConceptDoesNotExist(org.openmrs.module.emrapi.encounter.service.OrderMetadataServiceTest)
  457. shouldReturnNullOrderFrequencyForNullInput(org.openmrs.module.emrapi.encounter.service.OrderMetadataServiceTest)
  458. shouldGetDurationConceptByName(org.openmrs.module.emrapi.encounter.service.OrderMetadataServiceTest)
  459. shouldGetOrderFrequencyByName(org.openmrs.module.emrapi.encounter.service.OrderMetadataServiceTest)
  460. shouldReturnNullDurationUnitsForNullInput(org.openmrs.module.emrapi.encounter.service.OrderMetadataServiceTest)
  461. shouldReturnNullIfOrderFrequencyNotPresent(org.openmrs.module.emrapi.encounter.service.OrderMetadataServiceTest)
  462.  
  463. Tests run: 24, Failures: 0, Errors: 6, Skipped: 0
  464.  
  465. [INFO] ------------------------------------------------------------------------
  466. [INFO] Reactor Summary:
  467. [INFO]
  468. [INFO] EMR API Module .................................... SUCCESS [1.110s]
  469. [INFO] EMR API Module API ................................ SUCCESS [2:39.223s]
  470. [INFO] EMR API Condition List ............................ SUCCESS [10.451s]
  471. [INFO] EMR API Module API 1.9 ............................ SUCCESS [0.719s]
  472. [INFO] EMR API Module API 1.10 ........................... FAILURE [1:04.657s]
  473. [INFO] EMR API Module API 1.11 ........................... SKIPPED
  474. [INFO] EMR API Module OMOD ............................... SKIPPED
  475. [INFO] ------------------------------------------------------------------------
  476. [INFO] BUILD FAILURE
  477. [INFO] ------------------------------------------------------------------------
  478. [INFO] Total time: 3:58.545s
  479. [INFO] Finished at: Tue Oct 13 14:55:20 EAT 2015
  480. [INFO] Final Memory: 72M/165M
  481. [INFO] ------------------------------------------------------------------------
  482. [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.5:test (default-test) on project emrapi-api-1.10: There are test failures.
  483. [ERROR]
  484. [ERROR] Please refer to /media/KJoseph/Projects/openMRS/Modules/openmrs-module-emrapi/api-1.10/target/surefire-reports for the individual test results.
  485. [ERROR] -> [Help 1]
  486. [ERROR]
  487. [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
  488. [ERROR] Re-run Maven using the -X switch to enable full debug logging.
  489. [ERROR]
  490. [ERROR] For more information about the errors and possible solutions, please read the following articles:
  491. [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
  492. [ERROR]
  493. [ERROR] After correcting the problems, you can resume the build with the command
  494. [ERROR] mvn <goals> -rf :emrapi-api-1.10
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement