Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [INFO] --- maven-jar-plugin:2.3.2:test-jar (default) @ emrapi-api-1.9 ---
- [WARNING] JAR will be empty - no content was marked for inclusion!
- [INFO] Building jar: /media/KJoseph/Projects/openMRS/Modules/openmrs-module-emrapi/api-1.9/target/emrapi-api-1.9-1.12-SNAPSHOT-tests.jar
- [INFO]
- [INFO] --- maven-install-plugin:2.3.1:install (default-install) @ emrapi-api-1.9 ---
- [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
- [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
- [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
- [INFO]
- [INFO] ------------------------------------------------------------------------
- [INFO] Building EMR API Module API 1.10 1.12-SNAPSHOT
- [INFO] ------------------------------------------------------------------------
- [INFO]
- [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ emrapi-api-1.10 ---
- [INFO] Deleting /media/KJoseph/Projects/openMRS/Modules/openmrs-module-emrapi/api-1.10/target
- [INFO]
- [INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ emrapi-api-1.10 ---
- [debug] execute contextualize
- [INFO] Using 'UTF-8' encoding to copy filtered resources.
- [INFO] Copying 1 resource
- [INFO]
- [INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ emrapi-api-1.10 ---
- [INFO] Compiling 7 source files to /media/KJoseph/Projects/openMRS/Modules/openmrs-module-emrapi/api-1.10/target/classes
- [INFO]
- [INFO] --- maven-resources-plugin:2.5:testResources (default-testResources) @ emrapi-api-1.10 ---
- [debug] execute contextualize
- [INFO] Using 'UTF-8' encoding to copy filtered resources.
- [INFO] skip non existing resourceDirectory /media/KJoseph/Projects/openMRS/Modules/openmrs-module-emrapi/api-1.10/src/test/resources
- [INFO] skip non existing resourceDirectory /media/KJoseph/Projects/openMRS/Modules/openmrs-module-emrapi/api-1.10/src/test/resources
- [INFO]
- [INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ emrapi-api-1.10 ---
- [INFO] Compiling 9 source files to /media/KJoseph/Projects/openMRS/Modules/openmrs-module-emrapi/api-1.10/target/test-classes
- [INFO]
- [INFO] --- maven-surefire-plugin:2.5:test (default-test) @ emrapi-api-1.10 ---
- [INFO] Surefire report directory: /media/KJoseph/Projects/openMRS/Modules/openmrs-module-emrapi/api-1.10/target/surefire-reports
- -------------------------------------------------------
- T E S T S
- -------------------------------------------------------
- Running org.openmrs.module.emrapi.encounter.mapper.DosingInstructionsMapperTest
- Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.007 sec
- Running org.openmrs.module.emrapi.encounter.service.OrderMetadataServiceTest
- 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]
- java.lang.IllegalStateException: Failed to load ApplicationContext
- at org.springframework.test.context.TestContext.getApplicationContext(TestContext.java:308)
- at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.injectDependencies(DependencyInjectionTestExecutionListener.java:109)
- at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.prepareTestInstance(DependencyInjectionTestExecutionListener.java:75)
- at org.springframework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:321)
- at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.createTest(SpringJUnit4ClassRunner.java:220)
- at org.springframework.test.context.junit4.SpringJUnit4ClassRunner$1.runReflectiveCall(SpringJUnit4ClassRunner.java:301)
- at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
- at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.methodBlock(SpringJUnit4ClassRunner.java:303)
- at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:240)
- at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
- at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
- at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
- at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
- at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
- at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
- at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)
- at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
- at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70)
- at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
- at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:180)
- at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:59)
- at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:115)
- at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:102)
- at org.apache.maven.surefire.Surefire.run(Surefire.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
- at java.lang.reflect.Method.invoke(Method.java:616)
- at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:350)
- at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1021)
- 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)}
- 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;
- 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;
- 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;
- 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;
- 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;
- 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;
- at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:285)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1074)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
- at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
- at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
- at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
- at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
- at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580)
- at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
- at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
- at org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:84)
- at org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:1)
- at org.springframework.test.context.TestContext.loadApplicationContext(TestContext.java:280)
- at org.springframework.test.context.TestContext.getApplicationContext(TestContext.java:304)
- ... 29 more
- 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)}
- at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:502)
- at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:84)
- at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:282)
- ... 43 more
- 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)}
- at org.springframework.beans.factory.support.DefaultListableBeanFactory.raiseNoSuchBeanDefinitionException(DefaultListableBeanFactory.java:920)
- at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:789)
- at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:703)
- at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:474)
- ... 45 more
- 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]
- java.lang.IllegalStateException: Failed to load ApplicationContext
- at org.springframework.test.context.TestContext.getApplicationContext(TestContext.java:308)
- at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.injectDependencies(DependencyInjectionTestExecutionListener.java:109)
- at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.prepareTestInstance(DependencyInjectionTestExecutionListener.java:75)
- at org.springframework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:321)
- at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.createTest(SpringJUnit4ClassRunner.java:220)
- at org.springframework.test.context.junit4.SpringJUnit4ClassRunner$1.runReflectiveCall(SpringJUnit4ClassRunner.java:301)
- at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
- at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.methodBlock(SpringJUnit4ClassRunner.java:303)
- at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:240)
- at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
- at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
- at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
- at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
- at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
- at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
- at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)
- at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
- at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70)
- at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
- at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:180)
- at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:59)
- at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:115)
- at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:102)
- at org.apache.maven.surefire.Surefire.run(Surefire.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
- at java.lang.reflect.Method.invoke(Method.java:616)
- at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:350)
- at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1021)
- 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)}
- 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;
- 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;
- 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;
- 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;
- 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;
- 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;
- at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:285)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1074)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
- at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
- at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
- at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
- at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
- at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580)
- at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
- at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
- at org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:84)
- at org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:1)
- at org.springframework.test.context.TestContext.loadApplicationContext(TestContext.java:280)
- at org.springframework.test.context.TestContext.getApplicationContext(TestContext.java:304)
- ... 29 more
- 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)}
- at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:502)
- at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:84)
- at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:282)
- ... 43 more
- 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)}
- at org.springframework.beans.factory.support.DefaultListableBeanFactory.raiseNoSuchBeanDefinitionException(DefaultListableBeanFactory.java:920)
- at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:789)
- at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:703)
- at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:474)
- ... 45 more
- 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]
- java.lang.IllegalStateException: Failed to load ApplicationContext
- at org.springframework.test.context.TestContext.getApplicationContext(TestContext.java:308)
- at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.injectDependencies(DependencyInjectionTestExecutionListener.java:109)
- at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.prepareTestInstance(DependencyInjectionTestExecutionListener.java:75)
- at org.springframework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:321)
- at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.createTest(SpringJUnit4ClassRunner.java:220)
- at org.springframework.test.context.junit4.SpringJUnit4ClassRunner$1.runReflectiveCall(SpringJUnit4ClassRunner.java:301)
- at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
- at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.methodBlock(SpringJUnit4ClassRunner.java:303)
- at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:240)
- at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
- at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
- at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
- at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
- at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
- at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
- at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)
- at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
- at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70)
- at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
- at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:180)
- at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:59)
- at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:115)
- at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:102)
- at org.apache.maven.surefire.Surefire.run(Surefire.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
- at java.lang.reflect.Method.invoke(Method.java:616)
- at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:350)
- at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1021)
- 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)}
- 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;
- 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;
- 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;
- 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;
- 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;
- 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;
- at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:285)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1074)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
- at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
- at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
- at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
- at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
- at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580)
- at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
- at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
- at org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:84)
- at org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:1)
- at org.springframework.test.context.TestContext.loadApplicationContext(TestContext.java:280)
- at org.springframework.test.context.TestContext.getApplicationContext(TestContext.java:304)
- ... 29 more
- 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)}
- at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:502)
- at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:84)
- at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:282)
- ... 43 more
- 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)}
- at org.springframework.beans.factory.support.DefaultListableBeanFactory.raiseNoSuchBeanDefinitionException(DefaultListableBeanFactory.java:920)
- at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:789)
- at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:703)
- at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:474)
- ... 45 more
- 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]
- java.lang.IllegalStateException: Failed to load ApplicationContext
- at org.springframework.test.context.TestContext.getApplicationContext(TestContext.java:308)
- at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.injectDependencies(DependencyInjectionTestExecutionListener.java:109)
- at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.prepareTestInstance(DependencyInjectionTestExecutionListener.java:75)
- at org.springframework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:321)
- at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.createTest(SpringJUnit4ClassRunner.java:220)
- at org.springframework.test.context.junit4.SpringJUnit4ClassRunner$1.runReflectiveCall(SpringJUnit4ClassRunner.java:301)
- at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
- at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.methodBlock(SpringJUnit4ClassRunner.java:303)
- at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:240)
- at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
- at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
- at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
- at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
- at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
- at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
- at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)
- at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
- at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70)
- at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
- at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:180)
- at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:59)
- at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:115)
- at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:102)
- at org.apache.maven.surefire.Surefire.run(Surefire.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
- at java.lang.reflect.Method.invoke(Method.java:616)
- at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:350)
- at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1021)
- 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)}
- 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;
- 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;
- 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;
- 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;
- 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;
- 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;
- at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:285)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1074)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
- at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
- at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
- at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
- at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
- at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580)
- at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
- at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
- at org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:84)
- at org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:1)
- at org.springframework.test.context.TestContext.loadApplicationContext(TestContext.java:280)
- at org.springframework.test.context.TestContext.getApplicationContext(TestContext.java:304)
- ... 29 more
- 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)}
- at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:502)
- at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:84)
- at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:282)
- ... 43 more
- 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)}
- at org.springframework.beans.factory.support.DefaultListableBeanFactory.raiseNoSuchBeanDefinitionException(DefaultListableBeanFactory.java:920)
- at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:789)
- at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:703)
- at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:474)
- ... 45 more
- 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]
- java.lang.IllegalStateException: Failed to load ApplicationContext
- at org.springframework.test.context.TestContext.getApplicationContext(TestContext.java:308)
- at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.injectDependencies(DependencyInjectionTestExecutionListener.java:109)
- at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.prepareTestInstance(DependencyInjectionTestExecutionListener.java:75)
- at org.springframework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:321)
- at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.createTest(SpringJUnit4ClassRunner.java:220)
- at org.springframework.test.context.junit4.SpringJUnit4ClassRunner$1.runReflectiveCall(SpringJUnit4ClassRunner.java:301)
- at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
- at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.methodBlock(SpringJUnit4ClassRunner.java:303)
- at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:240)
- at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
- at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
- at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
- at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
- at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
- at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
- at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)
- at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
- at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70)
- at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
- at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:180)
- at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:59)
- at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:115)
- at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:102)
- at org.apache.maven.surefire.Surefire.run(Surefire.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
- at java.lang.reflect.Method.invoke(Method.java:616)
- at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:350)
- at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1021)
- 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)}
- 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;
- 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;
- 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;
- 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;
- 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;
- 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;
- at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:285)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1074)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
- at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
- at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
- at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
- at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
- at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580)
- at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
- at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
- at org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:84)
- at org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:1)
- at org.springframework.test.context.TestContext.loadApplicationContext(TestContext.java:280)
- at org.springframework.test.context.TestContext.getApplicationContext(TestContext.java:304)
- ... 29 more
- 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)}
- at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:502)
- at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:84)
- at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:282)
- ... 43 more
- 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)}
- at org.springframework.beans.factory.support.DefaultListableBeanFactory.raiseNoSuchBeanDefinitionException(DefaultListableBeanFactory.java:920)
- at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:789)
- at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:703)
- at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:474)
- ... 45 more
- 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]
- java.lang.IllegalStateException: Failed to load ApplicationContext
- at org.springframework.test.context.TestContext.getApplicationContext(TestContext.java:308)
- at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.injectDependencies(DependencyInjectionTestExecutionListener.java:109)
- at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.prepareTestInstance(DependencyInjectionTestExecutionListener.java:75)
- at org.springframework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:321)
- at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.createTest(SpringJUnit4ClassRunner.java:220)
- at org.springframework.test.context.junit4.SpringJUnit4ClassRunner$1.runReflectiveCall(SpringJUnit4ClassRunner.java:301)
- at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
- at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.methodBlock(SpringJUnit4ClassRunner.java:303)
- at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:240)
- at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
- at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
- at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
- at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
- at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
- at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
- at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)
- at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
- at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70)
- at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
- at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:180)
- at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:59)
- at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:115)
- at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:102)
- at org.apache.maven.surefire.Surefire.run(Surefire.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
- at java.lang.reflect.Method.invoke(Method.java:616)
- at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:350)
- at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1021)
- 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)}
- 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;
- 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;
- 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;
- 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;
- 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;
- 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;
- at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:285)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1074)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
- at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
- at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
- at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
- at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
- at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580)
- at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
- at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
- at org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:84)
- at org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:1)
- at org.springframework.test.context.TestContext.loadApplicationContext(TestContext.java:280)
- at org.springframework.test.context.TestContext.getApplicationContext(TestContext.java:304)
- ... 29 more
- 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)}
- at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:502)
- at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:84)
- at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:282)
- ... 43 more
- 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)}
- at org.springframework.beans.factory.support.DefaultListableBeanFactory.raiseNoSuchBeanDefinitionException(DefaultListableBeanFactory.java:920)
- at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:789)
- at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:703)
- at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:474)
- ... 45 more
- Tests run: 6, Failures: 0, Errors: 6, Skipped: 0, Time elapsed: 52.907 sec <<< FAILURE!
- Running org.openmrs.module.emrapi.encounter.EmrOrderServiceImpl_1_10Test
- Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.183 sec
- Running org.openmrs.module.emrapi.encounter.mapper.OpenMRSOrderMapper1_10Test
- Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.316 sec
- Running org.openmrs.module.emrapi.encounter.mapper.DrugOrderMapper1_10Test
- SLF4J: Class path contains multiple SLF4J bindings.
- 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]
- 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]
- SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
- Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 4.462 sec
- Running org.openmrs.module.emrapi.encounter.mapper.OpenMRSDrugOrderMapper1_10Test
- Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.197 sec
- Results :
- Tests in error:
- shouldReturnNullIfDurationConceptDoesNotExist(org.openmrs.module.emrapi.encounter.service.OrderMetadataServiceTest)
- shouldReturnNullOrderFrequencyForNullInput(org.openmrs.module.emrapi.encounter.service.OrderMetadataServiceTest)
- shouldGetDurationConceptByName(org.openmrs.module.emrapi.encounter.service.OrderMetadataServiceTest)
- shouldGetOrderFrequencyByName(org.openmrs.module.emrapi.encounter.service.OrderMetadataServiceTest)
- shouldReturnNullDurationUnitsForNullInput(org.openmrs.module.emrapi.encounter.service.OrderMetadataServiceTest)
- shouldReturnNullIfOrderFrequencyNotPresent(org.openmrs.module.emrapi.encounter.service.OrderMetadataServiceTest)
- Tests run: 24, Failures: 0, Errors: 6, Skipped: 0
- [INFO] ------------------------------------------------------------------------
- [INFO] Reactor Summary:
- [INFO]
- [INFO] EMR API Module .................................... SUCCESS [1.110s]
- [INFO] EMR API Module API ................................ SUCCESS [2:39.223s]
- [INFO] EMR API Condition List ............................ SUCCESS [10.451s]
- [INFO] EMR API Module API 1.9 ............................ SUCCESS [0.719s]
- [INFO] EMR API Module API 1.10 ........................... FAILURE [1:04.657s]
- [INFO] EMR API Module API 1.11 ........................... SKIPPED
- [INFO] EMR API Module OMOD ............................... SKIPPED
- [INFO] ------------------------------------------------------------------------
- [INFO] BUILD FAILURE
- [INFO] ------------------------------------------------------------------------
- [INFO] Total time: 3:58.545s
- [INFO] Finished at: Tue Oct 13 14:55:20 EAT 2015
- [INFO] Final Memory: 72M/165M
- [INFO] ------------------------------------------------------------------------
- [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.
- [ERROR]
- [ERROR] Please refer to /media/KJoseph/Projects/openMRS/Modules/openmrs-module-emrapi/api-1.10/target/surefire-reports for the individual test results.
- [ERROR] -> [Help 1]
- [ERROR]
- [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
- [ERROR] Re-run Maven using the -X switch to enable full debug logging.
- [ERROR]
- [ERROR] For more information about the errors and possible solutions, please read the following articles:
- [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
- [ERROR]
- [ERROR] After correcting the problems, you can resume the build with the command
- [ERROR] mvn <goals> -rf :emrapi-api-1.10
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement