HTTP Status 500 – Internal Server Error while install on DHIS Module

Hi all.I am trying to install DHIS module the dev environment from past two days. am getting the following error while install on DHIS Module

Type Exception Report

Message Request processing failed; nested exception is 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: Cannot find class [org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping] for bean with name ‘org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping#0’ defined in URL [jar:file:/home/bawantha/openmrs/bawwa/.openmrs-lib-cache/dhisconnector/dhisconnector.jar!/webModuleApplicationContext.xml]; nested exception is java.lang.ClassNotFoundException: org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping

Description The server encountered an unexpected condition that prevented it from fulfilling the request.

any help will be appreciated please let me know .

full log details- https://pastebin.pl/view/4f3eb888

Instead of that module, can you use this? https://wiki.openmrs.org/display/docs/DHIS+Connector+Module

1 Like

thank you @dkayiwa i’ll fix that error change openmrs version