Modules not working Openmrs Reference app 2.11

Hi Concerned. I have installed OpenMRS reference app 2.11.0, When I try to use Reference app Addons I am getting following error. The following error occurred at startup:

Unable to start OpenMRS. Error thrown was: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘conversionService’: Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: java.util.Set org.openmrs.module.uiframework.UiFrameworkConversionServiceFactoryBean.springManagedConverters; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘stringToAppDescriptorConverter’: Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.openmrs.module.appframework.service.AppFrameworkService org.openmrs.module.appui.converter.StringToAppDescriptorConverter.appFrameworkService; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [org.openmrs.module.appframework.service.AppFrameworkService] 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 ‘appFrameworkService’ defined in URL [jar:file:/opt/tomcat/.OpenMRS/.openmrs-lib-cache/appframework/lib/appframework-api-2.16.0.jar!/moduleApplicationContext.xml]: Cannot create inner bean ‘org.openmrs.module.appframework.service.AppFrameworkServiceImpl#4e2bcf08’ of type [org.openmrs.module.appframework.service.AppFrameworkServiceImpl] while setting bean property ‘target’; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘org.openmrs.module.appframework.service.AppFrameworkServiceImpl#4e2bcf08’ defined in URL [jar:file:/opt/tomcat/.OpenMRS/.openmrs-lib-cache/appframework/lib/appframework-api-2.16.0.jar!/moduleApplicationContext.xml]: Cannot resolve reference to bean ‘allAppTemplates’ while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘allAppTemplates’: Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private javax.validation.Validator org.openmrs.module.appframework.repository.AllAppTemplates.validator; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘validatorFactory’ defined in URL [jar:file:/opt/tomcat/.OpenMRS/.openmrs-lib-cache/appframework/lib/appframework-api-2.16.0.jar!/moduleApplicationContext.xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘appFrameworkService’ defined in URL [jar:file:/opt/tomcat/.OpenMRS/.openmrs-lib-cache/appframework/lib/appframework-api-2.16.0.jar!/moduleApplicationContext.xml]: Cannot create inner bean ‘org.openmrs.module.appframework.service.AppFrameworkServiceImpl#4e2bcf08’ of type [org.openmrs.module.appframework.service.AppFrameworkServiceImpl] while setting bean property ‘target’; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘org.openmrs.module.appframework.service.AppFrameworkServiceImpl#4e2bcf08’ defined in URL [jar:file:/opt/tomcat/.OpenMRS/.openmrs-lib-cache/appframework/lib/appframework-api-2.16.0.jar!/moduleApplicationContext.xml]: Cannot resolve reference to bean ‘allAppTemplates’ while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘allAppTemplates’: Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private javax.validation.Validator I am only trying to enable following addons adminui 1.4.0 uicommons 2.1,uiframework 3.9,appframework 2.9,providermanagement 2.5.0,appui 1.7

All these were unziped from reference app addon file. Complete logs are available Part -1

Part-2

Can you Please help in what step I am missing here?

Which version of Java are you running?

openjdk 11.0.11 2021-04-20 OpenJDK Runtime Environment (build 11.0.11+9-Ubuntu-0ubuntu2.20.04) OpenJDK 64-Bit Server VM (build 11.0.11+9-Ubuntu-0ubuntu2.20.04, mixed mode, sharing)

That version requires Java 8

Even after downgrading from java 11 to 8

I am getting Unable to start OpenMRS. Error thrown was: org.springframework.beans.factory.Bea - Pastebin.com I also tried redeploying app from scratch and facing this issue with modules.

You need to also change tomcat to point to Java 8

Hi Daniel, Hope you are well I have changed java for tomcat and after placing omod files in Modules directory when I restarted Openmrs Nothing happens. ( No errors as well). When I click on start Modules I am getting following response in server logs.

WARN - PersonName.getFullName(411) |2021-07-16 07:57:59,947| No name layout format set WARN - PersonName.getFullName(411) |2021-07-16 07:58:00,012| No name layout format set WARN - PersonName.getFullName(411) |2021-07-16 07:58:00,080| No name layout format set WARN - PersonName.getFullName(411) |2021-07-16 07:58:00,120| No name layout format set WARN - PersonName.getFullName(411) |2021-07-16 07:58:00,155| No name layout format set WARN - PersonName.getFullName(411) |2021-07-16 07:58:00,289| No name layout format set WARN - PersonName.getFullName(411) |2021-07-16 07:58:08,710| No name layout format set WARN - PersonName.getFullName(411) |2021-07-16 07:58:28,863| No name layout format set WARN - PersonName.getFullName(411) |2021-07-16 07:58:28,938| No name layout format set WARN - PersonName.getFullName(411) |2021-07-16 07:58:28,961| No name layout format set WARN - PersonName.getFullName(411) |2021-07-16 07:58:28,985| No name layout format set WARN - PersonName.getFullName(411) |2021-07-16 07:58:29,013| No name layout format set

Can you Please guide me.

I am getting this screen even after pointing tomcat to java8 and coping following addons adminui 1.4.0 uicommons 2.1,uiframework 3.9,appframework 2.9,providermanagement 2.5.0,appui 1.7 under /tomcat/.Openmrs/modules. Restart the app still nothing. Please guide me if I am missing some step or doing it wrong.

Remove those modules and replace them with the ones in this zip file: Download OpenMRS from SourceForge.net

Then restart tomcat.

Thanks Dear You are the best. Its working now.