Assistance Needed for Module Compatibility Across OpenMRS Versions

Hi,

We are in the process of upgrading our OpenMRS instances from version 2.3.3 to Platform 2.6.6. However, due to various operational challenges, not all sites will be able to complete the upgrade on time. I have a specific module that I need to make compatible with both versions, 2.3.3 and 2.6.6.

When I attempt to load the module, which was initially built for version 2.3.3, into the 2.6.6 platform, I encounter the following error:

Request processing failed; nested exception is org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 62 in XML document from URL [jar:file:/usr/local/tomcat/.OpenMRS/.openmrs-lib-cache/disa/lib/disa-api-2.7.0.jar!/moduleApplicationContext.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 62; columnNumber: 32; cvc-complex-type.3.2.2: Attribute ‘local’ is not allowed to appear in element ‘ref’.

This is the full error log:

This is the content for the moduleApplicationContext.xml

Change ref local to ref bean

1 Like

Hi. I changed as suggested, and it worked as expected. Although I encountered another error, I was able to resolve it, and the module loaded successfully. Thank you for your support.

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; nested exception is java.lang.ClassNotFoundException: org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping