jnsereko

CacheManager with same name 'hibernateCache' already exists in the same VM.

Jul 19th, 2021
37
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. [INFO] Scanning for projects...
  2. [WARNING]
  3. [WARNING] Some problems were encountered while building the effective model for org.openmrs.module:referenceapplication-omod:jar:2.12.0-SNAPSHOT
  4. [WARNING] 'build.plugins.plugin.(groupId:artifactId)' must be unique but found duplicate declaration of plugin org.apache.maven.plugins:maven-dependency-plugin @ org.openmrs.module:referenceapplication-omod:[unknown-version], /home/joshua/openmrs-repo/openmrs-module-referenceapplication/omod/pom.xml, line 231, column 21
  5. [WARNING] 'build.plugins.plugin.version' for de.saumya.mojo:gem-maven-plugin is missing. @ org.openmrs.module:referenceapplication-omod:[unknown-version], /home/joshua/openmrs-repo/openmrs-module-referenceapplication/omod/pom.xml, line 256, column 21
  6. [WARNING]
  7. [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
  8. [WARNING]
  9. [WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
  10. [WARNING]
  11. [INFO] ------------------------------------------------------------------------
  12. [INFO] Reactor Build Order:
  13. [INFO]
  14. [INFO] Reference Application Module [pom]
  15. [INFO] Reference Application Module API [jar]
  16. [INFO] Reference Application Module OMOD [jar]
  17. [INFO]
  18. [INFO] --------------< org.openmrs.module:referenceapplication >---------------
  19. [INFO] Building Reference Application Module 2.12.0-SNAPSHOT [1/3]
  20. [INFO] --------------------------------[ pom ]---------------------------------
  21. [INFO]
  22. [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ referenceapplication ---
  23. [INFO]
  24. [INFO] --- maven-install-plugin:2.4:install (default-install) @ referenceapplication ---
  25. [INFO] Installing /home/joshua/openmrs-repo/openmrs-module-referenceapplication/pom.xml to /home/joshua/.m2/repository/org/openmrs/module/referenceapplication/2.12.0-SNAPSHOT/referenceapplication-2.12.0-SNAPSHOT.pom
  26. [INFO]
  27. [INFO] ------------< org.openmrs.module:referenceapplication-api >-------------
  28. [INFO] Building Reference Application Module API 2.12.0-SNAPSHOT [2/3]
  29. [INFO] --------------------------------[ jar ]---------------------------------
  30. Downloading from rubygems-releases: https://rubygems-proxy.torquebox.org/releases/org/openmrs/module/appframework-api/2.17.0-SNAPSHOT/maven-metadata.xml
  31. [WARNING] Could not transfer metadata org.openmrs.module:appframework-api:2.17.0-SNAPSHOT/maven-metadata.xml from/to rubygems-releases (https://rubygems-proxy.torquebox.org/releases): Certificate for <rubygems-proxy.torquebox.org> doesn't match any of the subject alternative names: [*.ceylon-lang.org, ceylon-lang.org]
  32. [WARNING] Failure to transfer org.openmrs.module:appframework-api:2.17.0-SNAPSHOT/maven-metadata.xml from https://rubygems-proxy.torquebox.org/releases was cached in the local repository, resolution will not be reattempted until the update interval of rubygems-releases has elapsed or updates are forced. Original error: Could not transfer metadata org.openmrs.module:appframework-api:2.17.0-SNAPSHOT/maven-metadata.xml from/to rubygems-releases (https://rubygems-proxy.torquebox.org/releases): Certificate for <rubygems-proxy.torquebox.org> doesn't match any of the subject alternative names: [*.ceylon-lang.org, ceylon-lang.org]
  33. Downloading from rubygems-releases: https://rubygems-proxy.torquebox.org/releases/org/openmrs/module/appframework/2.17.0-SNAPSHOT/maven-metadata.xml
  34. [WARNING] Could not transfer metadata org.openmrs.module:appframework:2.17.0-SNAPSHOT/maven-metadata.xml from/to rubygems-releases (https://rubygems-proxy.torquebox.org/releases): Certificate for <rubygems-proxy.torquebox.org> doesn't match any of the subject alternative names: [*.ceylon-lang.org, ceylon-lang.org]
  35. [WARNING] Failure to transfer org.openmrs.module:appframework-api:2.17.0-SNAPSHOT/maven-metadata.xml from https://rubygems-proxy.torquebox.org/releases was cached in the local repository, resolution will not be reattempted until the update interval of rubygems-releases has elapsed or updates are forced. Original error: Could not transfer metadata org.openmrs.module:appframework-api:2.17.0-SNAPSHOT/maven-metadata.xml from/to rubygems-releases (https://rubygems-proxy.torquebox.org/releases): Certificate for <rubygems-proxy.torquebox.org> doesn't match any of the subject alternative names: [*.ceylon-lang.org, ceylon-lang.org]
  36. Downloading from rubygems-releases: https://rubygems-proxy.torquebox.org/releases/org/openmrs/module/uiframework-api/3.21.0-SNAPSHOT/maven-metadata.xml
  37. [WARNING] Could not transfer metadata org.openmrs.module:uiframework-api:3.21.0-SNAPSHOT/maven-metadata.xml from/to rubygems-releases (https://rubygems-proxy.torquebox.org/releases): Certificate for <rubygems-proxy.torquebox.org> doesn't match any of the subject alternative names: [*.ceylon-lang.org, ceylon-lang.org]
  38. [WARNING] Failure to transfer org.openmrs.module:uiframework-api:3.21.0-SNAPSHOT/maven-metadata.xml from https://rubygems-proxy.torquebox.org/releases was cached in the local repository, resolution will not be reattempted until the update interval of rubygems-releases has elapsed or updates are forced. Original error: Could not transfer metadata org.openmrs.module:uiframework-api:3.21.0-SNAPSHOT/maven-metadata.xml from/to rubygems-releases (https://rubygems-proxy.torquebox.org/releases): Certificate for <rubygems-proxy.torquebox.org> doesn't match any of the subject alternative names: [*.ceylon-lang.org, ceylon-lang.org]
  39. Downloading from rubygems-releases: https://rubygems-proxy.torquebox.org/releases/org/openmrs/module/uiframework/3.21.0-SNAPSHOT/maven-metadata.xml
  40. [WARNING] Could not transfer metadata org.openmrs.module:uiframework:3.21.0-SNAPSHOT/maven-metadata.xml from/to rubygems-releases (https://rubygems-proxy.torquebox.org/releases): Certificate for <rubygems-proxy.torquebox.org> doesn't match any of the subject alternative names: [*.ceylon-lang.org, ceylon-lang.org]
  41. [INFO]
  42. [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ referenceapplication-api ---
  43. [INFO] Deleting /home/joshua/openmrs-repo/openmrs-module-referenceapplication/api/target
  44. [INFO]
  45. [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ referenceapplication-api ---
  46. [INFO] Using 'UTF-8' encoding to copy filtered resources.
  47. [INFO] Copying 22 resources
  48. [INFO]
  49. [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ referenceapplication-api ---
  50. [INFO] Changes detected - recompiling the module!
  51. [INFO] Compiling 3 source files to /home/joshua/openmrs-repo/openmrs-module-referenceapplication/api/target/classes
  52. [INFO]
  53. [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ referenceapplication-api ---
  54. [INFO] Using 'UTF-8' encoding to copy filtered resources.
  55. [INFO] Copying 3 resources
  56. [INFO]
  57. [INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ referenceapplication-api ---
  58. [INFO] Changes detected - recompiling the module!
  59. [INFO] Compiling 3 source files to /home/joshua/openmrs-repo/openmrs-module-referenceapplication/api/target/test-classes
  60. [WARNING] /home/joshua/openmrs-repo/openmrs-module-referenceapplication/api/src/test/java/org/openmrs/module/referenceapplication/ReferenceApplicationActivatorComponentTest.java: Some input files use or override a deprecated API.
  61. [WARNING] /home/joshua/openmrs-repo/openmrs-module-referenceapplication/api/src/test/java/org/openmrs/module/referenceapplication/ReferenceApplicationActivatorComponentTest.java: Recompile with -Xlint:deprecation for details.
  62. [INFO]
  63. [INFO] --- maven-surefire-plugin:2.22.1:test (default-test) @ referenceapplication-api ---
  64. [INFO]
  65. [INFO] -------------------------------------------------------
  66. [INFO] T E S T S
  67. [INFO] -------------------------------------------------------
  68. [INFO] Running org.openmrs.module.referenceapplication.ReferenceApplicationActivatorTest
  69. [INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.508 s - in org.openmrs.module.referenceapplication.ReferenceApplicationActivatorTest
  70. [INFO] Running org.openmrs.module.referenceapplication.ReferenceApplicationActivatorComponentTest
  71. [ERROR] Tests run: 4, Failures: 0, Errors: 4, Skipped: 0, Time elapsed: 18.855 s <<< FAILURE! - in org.openmrs.module.referenceapplication.ReferenceApplicationActivatorComponentTest
  72. [ERROR] testSetupOfProcessHL7Task Time elapsed: 0.008 s <<< ERROR!
  73. java.lang.IllegalStateException: Failed to load ApplicationContext
  74. Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.transaction.interceptor.TransactionAttributeSourceAdvisor#0' defined in class path resource [applicationContext-service.xml]: Cannot resolve reference to bean 'transactionInterceptor' while setting bean property 'transactionInterceptor'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionInterceptor' defined in class path resource [applicationContext-service.xml]: Cannot resolve reference to bean 'transactionManager' while setting bean property 'transactionManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager' defined in class path resource [applicationContext-service.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in URL [file:/home/joshua/openmrs-repo/openmrs-module-referenceapplication/api/target/test-classes/TestingApplicationContext.xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: org/apache/commons/codec/language/Caverphone2
  75. Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionInterceptor' defined in class path resource [applicationContext-service.xml]: Cannot resolve reference to bean 'transactionManager' while setting bean property 'transactionManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager' defined in class path resource [applicationContext-service.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in URL [file:/home/joshua/openmrs-repo/openmrs-module-referenceapplication/api/target/test-classes/TestingApplicationContext.xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: org/apache/commons/codec/language/Caverphone2
  76. Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager' defined in class path resource [applicationContext-service.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in URL [file:/home/joshua/openmrs-repo/openmrs-module-referenceapplication/api/target/test-classes/TestingApplicationContext.xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: org/apache/commons/codec/language/Caverphone2
  77. Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in URL [file:/home/joshua/openmrs-repo/openmrs-module-referenceapplication/api/target/test-classes/TestingApplicationContext.xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: org/apache/commons/codec/language/Caverphone2
  78. Caused by: java.lang.NoClassDefFoundError: org/apache/commons/codec/language/Caverphone2
  79. Caused by: java.lang.ClassNotFoundException: org.apache.commons.codec.language.Caverphone2
  80.  
  81. [ERROR] testAddLoginLocationTagToAtleastOneLocationIfThereAreNoLoginLocations Time elapsed: 0.004 s <<< ERROR!
  82. java.lang.IllegalStateException: Failed to load ApplicationContext
  83. Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.transaction.interceptor.TransactionAttributeSourceAdvisor#0' defined in class path resource [applicationContext-service.xml]: Cannot resolve reference to bean 'transactionInterceptor' while setting bean property 'transactionInterceptor'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionInterceptor' defined in class path resource [applicationContext-service.xml]: Cannot resolve reference to bean 'transactionManager' while setting bean property 'transactionManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager' defined in class path resource [applicationContext-service.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in URL [file:/home/joshua/openmrs-repo/openmrs-module-referenceapplication/api/target/test-classes/TestingApplicationContext.xml]: Invocation of init method failed; nested exception is java.lang.IllegalStateException: Cache provider not started
  84. Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionInterceptor' defined in class path resource [applicationContext-service.xml]: Cannot resolve reference to bean 'transactionManager' while setting bean property 'transactionManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager' defined in class path resource [applicationContext-service.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in URL [file:/home/joshua/openmrs-repo/openmrs-module-referenceapplication/api/target/test-classes/TestingApplicationContext.xml]: Invocation of init method failed; nested exception is java.lang.IllegalStateException: Cache provider not started
  85. Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager' defined in class path resource [applicationContext-service.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in URL [file:/home/joshua/openmrs-repo/openmrs-module-referenceapplication/api/target/test-classes/TestingApplicationContext.xml]: Invocation of init method failed; nested exception is java.lang.IllegalStateException: Cache provider not started
  86. Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in URL [file:/home/joshua/openmrs-repo/openmrs-module-referenceapplication/api/target/test-classes/TestingApplicationContext.xml]: Invocation of init method failed; nested exception is java.lang.IllegalStateException: Cache provider not started
  87. Caused by: java.lang.IllegalStateException: Cache provider not started
  88. Caused by: org.hibernate.cache.CacheException:
  89. net.sf.ehcache.CacheException: Another CacheManager with same name 'hibernateCache' already exists in the same VM. Please provide unique names for each CacheManager in the config or do one of following:
  90. 1. Use one of the CacheManager.create() static factory methods to reuse same CacheManager with same name or create one if necessary
  91. 2. Shutdown the earlier cacheManager before creating new one with same name.
  92. The source of the existing CacheManager is: DefaultConfigurationSource [ ehcache.xml or ehcache-failsafe.xml ]
  93. Caused by: net.sf.ehcache.CacheException:
  94. Another CacheManager with same name 'hibernateCache' already exists in the same VM. Please provide unique names for each CacheManager in the config or do one of following:
  95. 1. Use one of the CacheManager.create() static factory methods to reuse same CacheManager with same name or create one if necessary
  96. 2. Shutdown the earlier cacheManager before creating new one with same name.
  97. The source of the existing CacheManager is: DefaultConfigurationSource [ ehcache.xml or ehcache-failsafe.xml ]
  98.  
  99. [ERROR] testAddLoginLocationTagToUnknownLocationIfThereAreNoLoginLocations Time elapsed: 0.001 s <<< ERROR!
  100. java.lang.IllegalStateException: Failed to load ApplicationContext
  101. Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.transaction.interceptor.TransactionAttributeSourceAdvisor#0' defined in class path resource [applicationContext-service.xml]: Cannot resolve reference to bean 'transactionInterceptor' while setting bean property 'transactionInterceptor'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionInterceptor' defined in class path resource [applicationContext-service.xml]: Cannot resolve reference to bean 'transactionManager' while setting bean property 'transactionManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager' defined in class path resource [applicationContext-service.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in URL [file:/home/joshua/openmrs-repo/openmrs-module-referenceapplication/api/target/test-classes/TestingApplicationContext.xml]: Invocation of init method failed; nested exception is java.lang.IllegalStateException: Cache provider not started
  102. Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionInterceptor' defined in class path resource [applicationContext-service.xml]: Cannot resolve reference to bean 'transactionManager' while setting bean property 'transactionManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager' defined in class path resource [applicationContext-service.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in URL [file:/home/joshua/openmrs-repo/openmrs-module-referenceapplication/api/target/test-classes/TestingApplicationContext.xml]: Invocation of init method failed; nested exception is java.lang.IllegalStateException: Cache provider not started
  103. Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager' defined in class path resource [applicationContext-service.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in URL [file:/home/joshua/openmrs-repo/openmrs-module-referenceapplication/api/target/test-classes/TestingApplicationContext.xml]: Invocation of init method failed; nested exception is java.lang.IllegalStateException: Cache provider not started
  104. Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in URL [file:/home/joshua/openmrs-repo/openmrs-module-referenceapplication/api/target/test-classes/TestingApplicationContext.xml]: Invocation of init method failed; nested exception is java.lang.IllegalStateException: Cache provider not started
  105. Caused by: java.lang.IllegalStateException: Cache provider not started
  106. Caused by: org.hibernate.cache.CacheException:
  107. net.sf.ehcache.CacheException: Another CacheManager with same name 'hibernateCache' already exists in the same VM. Please provide unique names for each CacheManager in the config or do one of following:
  108. 1. Use one of the CacheManager.create() static factory methods to reuse same CacheManager with same name or create one if necessary
  109. 2. Shutdown the earlier cacheManager before creating new one with same name.
  110. The source of the existing CacheManager is: DefaultConfigurationSource [ ehcache.xml or ehcache-failsafe.xml ]
  111. Caused by: net.sf.ehcache.CacheException:
  112. Another CacheManager with same name 'hibernateCache' already exists in the same VM. Please provide unique names for each CacheManager in the config or do one of following:
  113. 1. Use one of the CacheManager.create() static factory methods to reuse same CacheManager with same name or create one if necessary
  114. 2. Shutdown the earlier cacheManager before creating new one with same name.
  115. The source of the existing CacheManager is: DefaultConfigurationSource [ ehcache.xml or ehcache-failsafe.xml ]
  116.  
  117. [ERROR] testSetUpAdtGlobalProperties Time elapsed: 0.002 s <<< ERROR!
  118. java.lang.IllegalStateException: Failed to load ApplicationContext
  119. Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.transaction.interceptor.TransactionAttributeSourceAdvisor#0' defined in class path resource [applicationContext-service.xml]: Cannot resolve reference to bean 'transactionInterceptor' while setting bean property 'transactionInterceptor'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionInterceptor' defined in class path resource [applicationContext-service.xml]: Cannot resolve reference to bean 'transactionManager' while setting bean property 'transactionManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager' defined in class path resource [applicationContext-service.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in URL [file:/home/joshua/openmrs-repo/openmrs-module-referenceapplication/api/target/test-classes/TestingApplicationContext.xml]: Invocation of init method failed; nested exception is java.lang.IllegalStateException: Cache provider not started
  120. Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionInterceptor' defined in class path resource [applicationContext-service.xml]: Cannot resolve reference to bean 'transactionManager' while setting bean property 'transactionManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager' defined in class path resource [applicationContext-service.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in URL [file:/home/joshua/openmrs-repo/openmrs-module-referenceapplication/api/target/test-classes/TestingApplicationContext.xml]: Invocation of init method failed; nested exception is java.lang.IllegalStateException: Cache provider not started
  121. Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager' defined in class path resource [applicationContext-service.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in URL [file:/home/joshua/openmrs-repo/openmrs-module-referenceapplication/api/target/test-classes/TestingApplicationContext.xml]: Invocation of init method failed; nested exception is java.lang.IllegalStateException: Cache provider not started
  122. Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in URL [file:/home/joshua/openmrs-repo/openmrs-module-referenceapplication/api/target/test-classes/TestingApplicationContext.xml]: Invocation of init method failed; nested exception is java.lang.IllegalStateException: Cache provider not started
  123. Caused by: java.lang.IllegalStateException: Cache provider not started
  124. Caused by: org.hibernate.cache.CacheException:
  125. net.sf.ehcache.CacheException: Another CacheManager with same name 'hibernateCache' already exists in the same VM. Please provide unique names for each CacheManager in the config or do one of following:
  126. 1. Use one of the CacheManager.create() static factory methods to reuse same CacheManager with same name or create one if necessary
  127. 2. Shutdown the earlier cacheManager before creating new one with same name.
  128. The source of the existing CacheManager is: DefaultConfigurationSource [ ehcache.xml or ehcache-failsafe.xml ]
  129. Caused by: net.sf.ehcache.CacheException:
  130. Another CacheManager with same name 'hibernateCache' already exists in the same VM. Please provide unique names for each CacheManager in the config or do one of following:
  131. 1. Use one of the CacheManager.create() static factory methods to reuse same CacheManager with same name or create one if necessary
  132. 2. Shutdown the earlier cacheManager before creating new one with same name.
  133. The source of the existing CacheManager is: DefaultConfigurationSource [ ehcache.xml or ehcache-failsafe.xml ]
  134.  
  135. [INFO] Running org.openmrs.module.referenceapplication.administrativenotification.ConfigureAtlasNotificationProducerTest
  136. [ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.914 s <<< FAILURE! - in org.openmrs.module.referenceapplication.administrativenotification.ConfigureAtlasNotificationProducerTest
  137. [ERROR] testWhenAtlasModuleIsNotInstalled Time elapsed: 0.001 s <<< ERROR!
  138. java.lang.IllegalStateException: Failed to load ApplicationContext
  139. Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.transaction.interceptor.TransactionAttributeSourceAdvisor#0' defined in class path resource [applicationContext-service.xml]: Cannot resolve reference to bean 'transactionInterceptor' while setting bean property 'transactionInterceptor'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionInterceptor' defined in class path resource [applicationContext-service.xml]: Cannot resolve reference to bean 'transactionManager' while setting bean property 'transactionManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager' defined in class path resource [applicationContext-service.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in URL [file:/home/joshua/openmrs-repo/openmrs-module-referenceapplication/api/target/test-classes/TestingApplicationContext.xml]: Invocation of init method failed; nested exception is java.lang.IllegalStateException: Cache provider not started
  140. Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionInterceptor' defined in class path resource [applicationContext-service.xml]: Cannot resolve reference to bean 'transactionManager' while setting bean property 'transactionManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager' defined in class path resource [applicationContext-service.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in URL [file:/home/joshua/openmrs-repo/openmrs-module-referenceapplication/api/target/test-classes/TestingApplicationContext.xml]: Invocation of init method failed; nested exception is java.lang.IllegalStateException: Cache provider not started
  141. Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager' defined in class path resource [applicationContext-service.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in URL [file:/home/joshua/openmrs-repo/openmrs-module-referenceapplication/api/target/test-classes/TestingApplicationContext.xml]: Invocation of init method failed; nested exception is java.lang.IllegalStateException: Cache provider not started
  142. Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in URL [file:/home/joshua/openmrs-repo/openmrs-module-referenceapplication/api/target/test-classes/TestingApplicationContext.xml]: Invocation of init method failed; nested exception is java.lang.IllegalStateException: Cache provider not started
  143. Caused by: java.lang.IllegalStateException: Cache provider not started
  144. Caused by: org.hibernate.cache.CacheException:
  145. net.sf.ehcache.CacheException: Another CacheManager with same name 'hibernateCache' already exists in the same VM. Please provide unique names for each CacheManager in the config or do one of following:
  146. 1. Use one of the CacheManager.create() static factory methods to reuse same CacheManager with same name or create one if necessary
  147. 2. Shutdown the earlier cacheManager before creating new one with same name.
  148. The source of the existing CacheManager is: DefaultConfigurationSource [ ehcache.xml or ehcache-failsafe.xml ]
  149. Caused by: net.sf.ehcache.CacheException:
  150. Another CacheManager with same name 'hibernateCache' already exists in the same VM. Please provide unique names for each CacheManager in the config or do one of following:
  151. 1. Use one of the CacheManager.create() static factory methods to reuse same CacheManager with same name or create one if necessary
  152. 2. Shutdown the earlier cacheManager before creating new one with same name.
  153. The source of the existing CacheManager is: DefaultConfigurationSource [ ehcache.xml or ehcache-failsafe.xml ]
  154.  
  155. [INFO]
  156. [INFO] Results:
  157. [INFO]
  158. [ERROR] Errors:
  159. [ERROR] ReferenceApplicationActivatorComponentTest.testAddLoginLocationTagToAtleastOneLocationIfThereAreNoLoginLocations » IllegalState
  160. [ERROR] ReferenceApplicationActivatorComponentTest.testAddLoginLocationTagToUnknownLocationIfThereAreNoLoginLocations » IllegalState
  161. [ERROR] ReferenceApplicationActivatorComponentTest.testSetUpAdtGlobalProperties » IllegalState
  162. [ERROR] ReferenceApplicationActivatorComponentTest.testSetupOfProcessHL7Task » IllegalState
  163. [ERROR] ConfigureAtlasNotificationProducerTest.testWhenAtlasModuleIsNotInstalled » IllegalState
  164. [INFO]
  165. [ERROR] Tests run: 7, Failures: 0, Errors: 5, Skipped: 0
  166. [INFO]
  167. [INFO] ------------------------------------------------------------------------
  168. [INFO] Reactor Summary for Reference Application Module 2.12.0-SNAPSHOT:
  169. [INFO]
  170. [INFO] Reference Application Module ....................... SUCCESS [ 0.216 s]
  171. [INFO] Reference Application Module API ................... FAILURE [ 27.208 s]
  172. [INFO] Reference Application Module OMOD .................. SKIPPED
  173. [INFO] ------------------------------------------------------------------------
  174. [INFO] BUILD FAILURE
  175. [INFO] ------------------------------------------------------------------------
  176. [INFO] Total time: 28.096 s
  177. [INFO] Finished at: 2021-07-19T07:00:21-04:00
  178. [INFO] ------------------------------------------------------------------------
  179. [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.1:test (default-test) on project referenceapplication-api: There are test failures.
  180. [ERROR]
  181. [ERROR] Please refer to /home/joshua/openmrs-repo/openmrs-module-referenceapplication/api/target/surefire-reports for the individual test results.
  182. [ERROR] Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream.
  183. [ERROR] -> [Help 1]
  184. [ERROR]
  185. [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
  186. [ERROR] Re-run Maven using the -X switch to enable full debug logging.
  187. [ERROR]
  188. [ERROR] For more information about the errors and possible solutions, please read the following articles:
  189. [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
  190. [ERROR]
  191. [ERROR] After correcting the problems, you can resume the build with the command
RAW Paste Data