addon chirdlutilbackports-1.4.0.omod

Application Name: referenceapplication-standalone-2.12.2 Version Number: 2.12.2.

Question: while adding addon chirdlutilbackports-1.4.0.omod, the following error is coming


The following error occurred at startup:
Unable to start OpenMRS. Error thrown was: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'messageSourceServiceTarget' defined in class path resource [applicationContext-service.xml]: Cannot resolve reference to bean 'mutableResourceBundleMessageSource' while setting bean property 'activeMessageSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mutableResourceBundleMessageSource' defined in class path resource [applicationContext-service.xml]: Initialization of bean failed; nested exception is 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.UnsatisfiedDependencyException: Error creating bean with name 'sessionFactory': Unsatisfied dependency expressed through field 'interceptors'; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Error loading class [org.openmrs.module.chirdlutilbackports.datasource.LogicInMemoryObsDAO] for bean with name 'logicInMemoryObsDAO' defined in URL [jar:file:/D:/OpenMRS/referenceapplication-standalone-2.12.2/appdata/.openmrs-lib-cache/chirdlutilbackports/chirdlutilbackports.jar!/moduleApplicationContext.xml]: problem with class file or dependent class; nested exception is java.lang.NoClassDefFoundError: org/openmrs/logic/db/LogicObsDAO Related cause: org.springframework.beans.factory.CannotLoadBeanClassException: Error loading class [org.openmrs.module.chirdlutilbackports.datasource.LogicInMemoryObsDAO] for bean with name 'logicInMemoryObsDAO' defined in URL [jar:file:/D:/OpenMRS/referenceapplication-standalone-2.12.2/appdata/.openmrs-lib-cache/chirdlutilbackports/chirdlutilbackports.jar!/moduleApplicationContext.xml]: problem with class file or dependent class; nested exception is java.lang.NoClassDefFoundError: org/openmrs/logic/db/LogicObsDAO Related cause: org.springframework.beans.factory.CannotLoadBeanClassException: Error loading class [org.openmrs.module.chirdlutilbackports.datasource.ObsInMemoryDatasource] for bean with name 'obsInmemoryDataSource' defined in URL [jar:file:/D:/OpenMRS/referenceapplication-standalone-2.12.2/appdata/.openmrs-lib-cache/chirdlutilbackports/chirdlutilbackports.jar!/moduleApplicationContext.xml]: problem with class file or dependent class; nested exception is java.lang.NoClassDefFoundError: org/openmrs/logic/datasource/ObsDataSource Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'calculationRegistrationService' defined in URL [jar:file:/D:/OpenMRS/referenceapplication-standalone-2.12.2/appdata/.openmrs-lib-cache/calculation/calculation.jar!/moduleApplicationContext.xml]: Cannot create inner bean 'org.openmrs.calculation.api.CalculationRegistrationServiceImpl#bbeb31' of type [org.openmrs.calculation.api.CalculationRegistrationServiceImpl] while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.openmrs.calculation.api.CalculationRegistrationServiceImpl#bbeb31' defined in URL [jar:file:/D:/OpenMRS/referenceapplication-standalone-2.12.2/appdata/.openmrs-lib-cache/calculation/calculation.jar!/moduleApplicationContext.xml]: Cannot resolve reference to bean 'calculationRegistrationDao' while setting bean property 'dao'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'calculationRegistrationDao' defined in URL [jar:file:/D:/OpenMRS/referenceapplication-standalone-2.12.2/appdata/.openmrs-lib-cache/calculation/calculation.jar!/moduleApplicationContext.xml]: Cannot resolve reference to bean 'dbSessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dbSessionFactory' defined in class path resource [applicationContext-service.xml]: Cannot resolve reference to bean 'sessionFactory' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name 'sessionFactory': FactoryBean which is currently in creation returned null from getObject
org.openmrs.module.ModuleException: Unable to start OpenMRS. Error thrown was: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'messageSourceServiceTarget' defined in class path resource [applicationContext-service.xml]: Cannot resolve reference to bean 'mutableResourceBundleMessageSource' while setting bean property 'activeMessageSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mutableResourceBundleMessageSource' defined in class path resource [applicationContext-service.xml]: Initialization of bean failed; nested exception is 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.UnsatisfiedDependencyException: Error creating bean with name 'sessionFactory': Unsatisfied dependency expressed through field 'interceptors'; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Error loading class [org.openmrs.module.chirdlutilbackports.datasource.LogicInMemoryObsDAO] for bean with name 'logicInMemoryObsDAO' defined in URL [jar:file:/D:/OpenMRS/referenceapplication-standalone-2.12.2/appdata/.openmrs-lib-cache/chirdlutilbackports/chirdlutilbackports.jar!/moduleApplicationContext.xml]: problem with class file or dependent class; nested exception is java.lang.NoClassDefFoundError: org/openmrs/logic/db/LogicObsDAO
Related cause: org.springframework.beans.factory.CannotLoadBeanClassException: Error loading class [org.openmrs.module.chirdlutilbackports.datasource.LogicInMemoryObsDAO] for bean with name 'logicInMemoryObsDAO' defined in URL [jar:file:/D:/OpenMRS/referenceapplication-standalone-2.12.2/appdata/.openmrs-lib-cache/chirdlutilbackports/chirdlutilbackports.jar!/moduleApplicationContext.xml]: problem with class file or dependent class; nested exception is java.lang.NoClassDefFoundError: org/openmrs/logic/db/LogicObsDAO
Related cause: org.springframework.beans.factory.CannotLoadBeanClassException: Error loading class [org.openmrs.module.chirdlutilbackports.datasource.ObsInMemoryDatasource] for bean with name 'obsInmemoryDataSource' defined in URL [jar:file:/D:/OpenMRS/referenceapplication-standalone-2.12.2/appdata/.openmrs-lib-cache/chirdlutilbackports/chirdlutilbackports.jar!/moduleApplicationContext.xml]: problem with class file or dependent class; nested exception is java.lang.NoClassDefFoundError: org/openmrs/logic/datasource/ObsDataSource
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'calculationRegistrationService' defined in URL [jar:file:/D:/OpenMRS/referenceapplication-standalone-2.12.2/appdata/.openmrs-lib-cache/calculation/calculation.jar!/moduleApplicationContext.xml]: Cannot create inner bean 'org.openmrs.calculation.api.CalculationRegistrationServiceImpl#bbeb31' of type [org.openmrs.calculation.api.CalculationRegistrationServiceImpl] while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.openmrs.calculation.api.CalculationRegistrationServiceImpl#bbeb31' defined in URL [jar:file:/D:/OpenMRS/referenceapplication-standalone-2.12.2/appdata/.openmrs-lib-cache/calculation/calculation.jar!/moduleApplicationContext.xml]: Cannot resolve reference to bean 'calculationRegistrationDao' while setting bean property 'dao'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'calculationRegistrationDao' defined in URL [jar:file:/D:/OpenMRS/referenceapplication-standalone-2.12.2/appdata/.openmrs-lib-cache/calculation/calculation.jar!/moduleApplicationContext.xml]: Cannot resolve reference to bean 'dbSessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dbSessionFactory' defined in class path resource [applicationContext-service.xml]: Cannot resolve reference to bean 'sessionFactory' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name 'sessionFactory': FactoryBean which is currently in creation returned null from getObject
	at org.openmrs.web.WebDaemon.startOpenmrs(WebDaemon.java:65)
	at org.openmrs.web.Listener.contextInitialized(Listener.java:194)
	at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4961)
	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5455)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
	at java.util.concurrent.FutureTask.run(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)
Caused by: javax.servlet.ServletException: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'messageSourceServiceTarget' defined in class path resource [applicationContext-service.xml]: Cannot resolve reference to bean 'mutableResourceBundleMessageSource' while setting bean property 'activeMessageSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mutableResourceBundleMessageSource' defined in class path resource [applicationContext-service.xml]: Initialization of bean failed; nested exception is 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.UnsatisfiedDependencyException: Error creating bean with name 'sessionFactory': Unsatisfied dependency expressed through field 'interceptors'; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Error loading class [org.openmrs.module.chirdlutilbackports.datasource.LogicInMemoryObsDAO] for bean with name 'logicInMemoryObsDAO' defined in URL [jar:file:/D:/OpenMRS/referenceapplication-standalone-2.12.2/appdata/.openmrs-lib-cache/chirdlutilbackports/chirdlutilbackports.jar!/moduleApplicationContext.xml]: problem with class file or dependent class; nested exception is java.lang.NoClassDefFoundError: org/openmrs/logic/db/LogicObsDAO
Related cause: org.springframework.beans.factory.CannotLoadBeanClassException: Error loading class [org.openmrs.module.chirdlutilbackports.datasource.LogicInMemoryObsDAO] for bean with name 'logicInMemoryObsDAO' defined in URL [jar:file:/D:/OpenMRS/referenceapplication-standalone-2.12.2/appdata/.openmrs-lib-cache/chirdlutilbackports/chirdlutilbackports.jar!/moduleApplicationContext.xml]: problem with class file or dependent class; nested exception is java.lang.NoClassDefFoundError: org/openmrs/logic/db/LogicObsDAO
Related cause: org.springframework.beans.factory.CannotLoadBeanClassException: Error loading class [org.openmrs.module.chirdlutilbackports.datasource.ObsInMemoryDatasource] for bean with name 'obsInmemoryDataSource' defined in URL [jar:file:/D:/OpenMRS/referenceapplication-standalone-2.12.2/appdata/.openmrs-lib-cache/chirdlutilbackports/chirdlutilbackports.jar!/moduleApplicationContext.xml]: problem with class file or dependent class; nested exception is java.lang.NoClassDefFoundError: org/openmrs/logic/datasource/ObsDataSource
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'calculationRegistrationService' defined in URL [jar:file:/D:/OpenMRS/referenceapplication-standalone-2.12.2/appdata/.openmrs-lib-cache/calculation/calculation.jar!/moduleApplicationContext.xml]: Cannot create inner bean 'org.openmrs.calculation.api.CalculationRegistrationServiceImpl#bbeb31' of type [org.openmrs.calculation.api.CalculationRegistrationServiceImpl] while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.openmrs.calculation.api.CalculationRegistrationServiceImpl#bbeb31' defined in URL [jar:file:/D:/OpenMRS/referenceapplication-standalone-2.12.2/appdata/.openmrs-lib-cache/calculation/calculation.jar!/moduleApplicationContext.xml]: Cannot resolve reference to bean 'calculationRegistrationDao' while setting bean property 'dao'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'calculationRegistrationDao' defined in URL [jar:file:/D:/OpenMRS/referenceapplication-standalone-2.12.2/appdata/.openmrs-lib-cache/calculation/calculation.jar!/moduleApplicationContext.xml]: Cannot resolve reference to bean 'dbSessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dbSessionFactory' defined in class path resource [applicationContext-service.xml]: Cannot resolve reference to bean 'sessionFactory' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name 'sessionFactory': FactoryBean which is currently in creation returned null from getObject
	at org.openmrs.web.Listener.startOpenmrs(Listener.java:266)
	at org.openmrs.web.WebDaemon$1.run(WebDaemon.java:42)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'messageSourceServiceTarget' defined in class path resource [applicationContext-service.xml]: Cannot resolve reference to bean 'mutableResourceBundleMessageSource' while setting bean property 'activeMessageSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mutableResourceBundleMessageSource' defined in class path resource [applicationContext-service.xml]: Initialization of bean failed; nested exception is 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.UnsatisfiedDependencyException: Error creating bean with name 'sessionFactory': Unsatisfied dependency expressed through field 'interceptors'; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Error loading class [org.openmrs.module.chirdlutilbackports.datasource.LogicInMemoryObsDAO] for bean with name 'logicInMemoryObsDAO' defined in URL [jar:file:/D:/OpenMRS/referenceapplication-standalone-2.12.2/appdata/.openmrs-lib-cache/chirdlutilbackports/chirdlutilbackports.jar!/moduleApplicationContext.xml]: problem with class file or dependent class; nested exception is java.lang.NoClassDefFoundError: org/openmrs/logic/db/LogicObsDAO
Related cause: org.springframework.beans.factory.CannotLoadBeanClassException: Error loading class [org.openmrs.module.chirdlutilbackports.datasource.LogicInMemoryObsDAO] for bean with name 'logicInMemoryObsDAO' defined in URL [jar:file:/D:/OpenMRS/referenceapplication-standalone-2.12.2/appdata/.openmrs-lib-cache/chirdlutilbackports/chirdlutilbackports.jar!/moduleApplicationContext.xml]: problem with class file or dependent class; nested exception is java.lang.NoClassDefFoundError: org/openmrs/logic/db/LogicObsDAO
Related cause: org.springframework.beans.factory.CannotLoadBeanClassException: Error loading class [org.openmrs.module.chirdlutilbackports.datasource.ObsInMemoryDatasource] for bean with name 'obsInmemoryDataSource' defined in URL [jar:file:/D:/OpenMRS/referenceapplication-standalone-2.12.2/appdata/.openmrs-lib-cache/chirdlutilbackports/chirdlutilbackports.jar!/moduleApplicationContext.xml]: problem with class file or dependent class; nested exception is java.lang.NoClassDefFoundError: org/openmrs/logic/datasource/ObsDataSource
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'calculationRegistrationService' defined in URL [jar:file:/D:/OpenMRS/referenceapplication-standalone-2.12.2/appdata/.openmrs-lib-cache/calculation/calculation.jar!/moduleApplicationContext.xml]: Cannot create inner bean 'org.openmrs.calculation.api.CalculationRegistrationServiceImpl#bbeb31' of type [org.openmrs.calculation.api.CalculationRegistrationServiceImpl] while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.openmrs.calculation.api.CalculationRegistrationServiceImpl#bbeb31' defined in URL [jar:file:/D:/OpenMRS/referenceapplication-standalone-2.12.2/appdata/.openmrs-lib-cache/calculation/calculation.jar!/moduleApplicationContext.xml]: Cannot resolve reference to bean 'calculationRegistrationDao' while setting bean property 'dao'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'calculationRegistrationDao' defined in URL [jar:file:/D:/OpenMRS/referenceapplication-standalone-2.12.2/appdata/.openmrs-lib-cache/calculation/calculation.jar!/moduleApplicationContext.xml]: Cannot resolve reference to bean 'dbSessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dbSessionFactory' defined in class path resource [applicationContext-service.xml]: Cannot resolve reference to bean 'sessionFactory' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name 'sessionFactory': FactoryBean which is currently in creation returned null from getObject
	at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:342)
	at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:113)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1697)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1442)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:593)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:516)
	at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:324)
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:322)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:207)
	at org.springframework.context.support.AbstractApplicationContext.initMessageSource(AbstractApplicationContext.java:733)
	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:539)
	at org.openmrs.module.ModuleUtil.refreshApplicationContext(ModuleUtil.java:889)
	at org.openmrs.module.web.WebModuleUtil.refreshWAC(WebModuleUtil.java:852)
	at org.openmrs.web.Listener.performWebStartOfModules(Listener.java:639)
	at org.openmrs.web.Listener.performWebStartOfModules(Listener.java:619)
	at org.openmrs.web.Listener.startOpenmrs(Listener.java:258)

kindly use pastebin.com for such long error logs.

Otherwise as @dkayiwa said some of these modules are not currently maintained unlesss you want to or have implementation usecase.

Therefore its painful to debug as it seems there is need for dependency management to really use the module.

1 Like

Hello @linga , Are you still facing the same challenge ?