# Modules not working Openmrs Reference app 2.11

**URL:** <https://talk.openmrs.org/t/modules-not-working-openmrs-reference-app-2-11/34032>\
**Category:** Development\
**Created:** [July 10, 2021, 11:24am UTC](https://talk.openmrs.org/t/modules-not-working-openmrs-reference-app-2-11/34032 "2021-07-10T11:24:25Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![hussnaintariq](https://talk.openmrs.org/letter_avatar/hussnaintariq/32/6_22734026db12803ebb3e059622ac3534.png) [@hussnaintariq](https://talk.openmrs.org/u/hussnaintariq)\
**Post date:** [July 10, 2021, 11:24am UTC](https://talk.openmrs.org/t/modules-not-working-openmrs-reference-app-2-11/34032/1 "2021-07-10T11:24:25Z")

</div>

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

> **[10-Jul-2021 11:01:11.696 INFO \[main\]...](https://pastebin.com/zkeuJvkG)**
>
> Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.

Part-2

> **[rg.springframework.beans.factory.BeanCreationException: Error creating bean...](https://pastebin.com/i1ARUNrt)**
>
> Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.

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

---

<div class="post-metadata">

**Author:** ![dkayiwa](https://talk.openmrs.org/user_avatar/talk.openmrs.org/dkayiwa/32/179_2.png) [@dkayiwa](https://talk.openmrs.org/u/dkayiwa)\
**Post date:** [July 10, 2021, 6:00pm UTC](https://talk.openmrs.org/t/modules-not-working-openmrs-reference-app-2-11/34032/2 "2021-07-10T18:00:21Z")

</div>

Which version of Java are you running?

---

<div class="post-metadata">

**Author:** ![hussnaintariq](https://talk.openmrs.org/letter_avatar/hussnaintariq/32/6_22734026db12803ebb3e059622ac3534.png) [@hussnaintariq](https://talk.openmrs.org/u/hussnaintariq)\
**Post date:** [July 12, 2021, 7:50am UTC](https://talk.openmrs.org/t/modules-not-working-openmrs-reference-app-2-11/34032/3 "2021-07-12T07:50:02Z")

</div>

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)

---

<div class="post-metadata">

**Author:** ![dkayiwa](https://talk.openmrs.org/user_avatar/talk.openmrs.org/dkayiwa/32/179_2.png) [@dkayiwa](https://talk.openmrs.org/u/dkayiwa)\
**Post date:** [July 12, 2021, 9:12am UTC](https://talk.openmrs.org/t/modules-not-working-openmrs-reference-app-2-11/34032/4 "2021-07-12T09:12:11Z")

</div>

That version requires Java 8

---

<div class="post-metadata">

**Author:** ![hussnaintariq](https://talk.openmrs.org/letter_avatar/hussnaintariq/32/6_22734026db12803ebb3e059622ac3534.png) [@hussnaintariq](https://talk.openmrs.org/u/hussnaintariq)\
**Post date:** [July 12, 2021, 1:24pm UTC](https://talk.openmrs.org/t/modules-not-working-openmrs-reference-app-2-11/34032/5 "2021-07-12T13:24:22Z")

</div>

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](https://pastebin.com/hqdaSVSu) I also tried redeploying app from scratch and facing this issue with modules.

---

<div class="post-metadata">

**Author:** ![dkayiwa](https://talk.openmrs.org/user_avatar/talk.openmrs.org/dkayiwa/32/179_2.png) [@dkayiwa](https://talk.openmrs.org/u/dkayiwa)\
**Post date:** [July 12, 2021, 4:31pm UTC](https://talk.openmrs.org/t/modules-not-working-openmrs-reference-app-2-11/34032/6 "2021-07-12T16:31:18Z")

</div>

You need to also change tomcat to point to Java 8

---

<div class="post-metadata">

**Author:** ![hussnaintariq](https://talk.openmrs.org/letter_avatar/hussnaintariq/32/6_22734026db12803ebb3e059622ac3534.png) [@hussnaintariq](https://talk.openmrs.org/u/hussnaintariq)\
**Post date:** [July 16, 2021, 8:02am UTC](https://talk.openmrs.org/t/modules-not-working-openmrs-reference-app-2-11/34032/7 "2021-07-16T08:02:45Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![hussnaintariq](https://talk.openmrs.org/letter_avatar/hussnaintariq/32/6_22734026db12803ebb3e059622ac3534.png) [@hussnaintariq](https://talk.openmrs.org/u/hussnaintariq)\
**Post date:** [July 29, 2021, 7:21am UTC](https://talk.openmrs.org/t/modules-not-working-openmrs-reference-app-2-11/34032/8 "2021-07-29T07:21:45Z")

</div>

![image](https://talk.openmrs.org/uploads/default/original/2X/5/5d700543b762d3c960c97059e4ff9786477870f5.png)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.

---

<div class="post-metadata">

**Author:** ![dkayiwa](https://talk.openmrs.org/user_avatar/talk.openmrs.org/dkayiwa/32/179_2.png) [@dkayiwa](https://talk.openmrs.org/u/dkayiwa)\
**Post date:** [July 29, 2021, 9:29am UTC](https://talk.openmrs.org/t/modules-not-working-openmrs-reference-app-2-11/34032/9 "2021-07-29T09:29:41Z")

</div>

Remove those modules and replace them with the ones in this zip file: [Download OpenMRS from SourceForge.net](https://sourceforge.net/projects/openmrs/files/releases/OpenMRS_Reference_Application_2.11.0/referenceapplication-addons-2.11.0.zip/download)

Then restart tomcat.

---

<div class="post-metadata">

**Author:** ![hussnaintariq](https://talk.openmrs.org/letter_avatar/hussnaintariq/32/6_22734026db12803ebb3e059622ac3534.png) [@hussnaintariq](https://talk.openmrs.org/u/hussnaintariq)\
**Post date:** [July 29, 2021, 1:26pm UTC](https://talk.openmrs.org/t/modules-not-working-openmrs-reference-app-2-11/34032/10 "2021-07-29T13:26:15Z")

</div>

Thanks Dear You are the best. Its working now.
