rickysilas

OpenMRS can not start after uploading PatientDashboardApp module

Sep 16th, 2020
129
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. The following error occurred at startup:
  2. Unable to start OpenMRS. Error thrown was: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'serviceContext$child#21' defined in URL [jar:file:/usr/share/tomcat7/.OpenMRS/.openmrs-lib-cache/patientdashboardapp/patientdashboardapp.jar!/moduleApplicationContext.xml]: Cannot resolve reference to bean 'triageService' while setting bean property 'moduleService' with key [1]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'triageService': Post-processing of the FactoryBean's object failed; nested exception is java.lang.LinkageError: loader constraint violation: loader (instance of org/openmrs/util/OpenmrsClassLoader) previously initiated loading for a different type with name "org/openmrs/module/hospitalcore/model/TriagePatientData"
  3. org.openmrs.module.ModuleException: Unable to start OpenMRS. Error thrown was: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'serviceContext$child#21' defined in URL [jar:file:/usr/share/tomcat7/.OpenMRS/.openmrs-lib-cache/patientdashboardapp/patientdashboardapp.jar!/moduleApplicationContext.xml]: Cannot resolve reference to bean 'triageService' while setting bean property 'moduleService' with key [1]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'triageService': Post-processing of the FactoryBean's object failed; nested exception is java.lang.LinkageError: loader constraint violation: loader (instance of org/openmrs/util/OpenmrsClassLoader) previously initiated loading for a different type with name "org/openmrs/module/hospitalcore/model/TriagePatientData"
  4. at org.openmrs.web.WebDaemon.startOpenmrs(WebDaemon.java:65)
  5. at org.openmrs.web.Listener.contextInitialized(Listener.java:180)
  6. at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5068)
  7. at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5584)
  8. at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
  9. at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:899)
  10. at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)
  11. at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
  12. at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1091)
  13. at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1980)
  14. at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
  15. at java.util.concurrent.FutureTask.run(FutureTask.java:266)
  16. at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
  17. at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
  18. at java.lang.Thread.run(Thread.java:748)
  19. Caused by: javax.servlet.ServletException: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'serviceContext$child#21' defined in URL [jar:file:/usr/share/tomcat7/.OpenMRS/.openmrs-lib-cache/patientdashboardapp/patientdashboardapp.jar!/moduleApplicationContext.xml]: Cannot resolve reference to bean 'triageService' while setting bean property 'moduleService' with key [1]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'triageService': Post-processing of the FactoryBean's object failed; nested exception is java.lang.LinkageError: loader constraint violation: loader (instance of org/openmrs/util/OpenmrsClassLoader) previously initiated loading for a different type with name "org/openmrs/module/hospitalcore/model/TriagePatientData"
  20. at org.openmrs.web.Listener.startOpenmrs(Listener.java:257)
  21. at org.openmrs.web.WebDaemon$1.run(WebDaemon.java:42)
  22. Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'serviceContext$child#21' defined in URL [jar:file:/usr/share/tomcat7/.OpenMRS/.openmrs-lib-cache/patientdashboardapp/patientdashboardapp.jar!/moduleApplicationContext.xml]: Cannot resolve reference to bean 'triageService' while setting bean property 'moduleService' with key [1]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'triageService': Post-processing of the FactoryBean's object failed; nested exception is java.lang.LinkageError: loader constraint violation: loader (instance of org/openmrs/util/OpenmrsClassLoader) previously initiated loading for a different type with name "org/openmrs/module/hospitalcore/model/TriagePatientData"
  23. at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:326)
  24. at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:107)
  25. at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedList(BeanDefinitionValueResolver.java:350)
  26. at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:154)
  27. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1417)
  28. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1158)
  29. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
  30. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)
  31. at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:296)
  32. at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
  33. at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:293)
  34. at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
  35. at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:628)
  36. at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:932)
  37. at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479)
  38. at org.openmrs.module.ModuleUtil.refreshApplicationContext(ModuleUtil.java:837)
  39. at org.openmrs.module.web.WebModuleUtil.refreshWAC(WebModuleUtil.java:962)
  40. at org.openmrs.web.Listener.performWebStartOfModules(Listener.java:627)
  41. at org.openmrs.web.Listener.performWebStartOfModules(Listener.java:606)
  42. at org.openmrs.web.Listener.startOpenmrs(Listener.java:249)
  43. ... 1 more
  44. Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'triageService': Post-processing of the FactoryBean's object failed; nested exception is java.lang.LinkageError: loader constraint violation: loader (instance of org/openmrs/util/OpenmrsClassLoader) previously initiated loading for a different type with name "org/openmrs/module/hospitalcore/model/TriagePatientData"
  45. at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:165)
  46. at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.getObjectFromFactoryBean(FactoryBeanRegistrySupport.java:102)
  47. at org.springframework.beans.factory.support.AbstractBeanFactory.getObjectForBeanInstance(AbstractBeanFactory.java:1468)
  48. at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:249)
  49. at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
  50. at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:320)
  51. ... 20 more
  52. Caused by: java.lang.LinkageError: loader constraint violation: loader (instance of org/openmrs/util/OpenmrsClassLoader) previously initiated loading for a different type with name "org/openmrs/module/hospitalcore/model/TriagePatientData"
  53. at java.lang.Class.getDeclaredMethods0(Native Method)
  54. at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
  55. at java.lang.Class.privateGetMethodRecursive(Class.java:3048)
  56. at java.lang.Class.getMethod0(Class.java:3018)
  57. at java.lang.Class.getMethod(Class.java:1784)
  58. at org.springframework.util.ClassUtils.getMostSpecificMethod(ClassUtils.java:780)
  59. at org.springframework.transaction.interceptor.AbstractFallbackTransactionAttributeSource.computeTransactionAttribute(AbstractFallbackTransactionAttributeSource.java:143)
  60. at org.springframework.transaction.interceptor.AbstractFallbackTransactionAttributeSource.getTransactionAttribute(AbstractFallbackTransactionAttributeSource.java:99)
  61. at org.springframework.transaction.interceptor.TransactionAttributeSourcePointcut.matches(TransactionAttributeSourcePointcut.java:37)
  62. at org.springframework.aop.support.AopUtils.canApply(AopUtils.java:223)
  63. at org.springframework.aop.support.AopUtils.canApply(AopUtils.java:262)
  64. at org.springframework.aop.support.AopUtils.findAdvisorsThatCanApply(AopUtils.java:294)
  65. at org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.findAdvisorsThatCanApply(AbstractAdvisorAutoProxyCreator.java:118)
  66. at org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.findEligibleAdvisors(AbstractAdvisorAutoProxyCreator.java:88)
  67. at org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.getAdvicesAndAdvisorsForBean(AbstractAdvisorAutoProxyCreator.java:69)
  68. at org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.wrapIfNecessary(AbstractAutoProxyCreator.java:359)
  69. at org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.postProcessAfterInitialization(AbstractAutoProxyCreator.java:322)
  70. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsAfterInitialization(AbstractAutowireCapableBeanFactory.java:409)
  71. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.postProcessObjectFromFactoryBean(AbstractAutowireCapableBeanFactory.java:1655)
  72. at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:162)
  73. ... 25 more
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×