Darshan Hiranandani : Admin account not having admin permissions – any ideas on what might be wrong?

Hey team, I’m Darshan Hiranandani, encountering an issue with OpenMRS reference application version 2.12 while using Tomcat 9.0.58 with Java 1.8.0_261 on Ubuntu 22.04 LTS. After logging in as the admin user, I’m redirected to the /openmrs/owa/addonmanager/index.html#/ page and see the error message: ‘You cannot view or manage the Add Ons since you don’t have the privileges and you are not an admin.’

The admin user has the correct permissions in the database, but I’m seeing errors in the Tomcat logs like:

Unable to get locale global property value. Service not found: interface org.openmrs.api.AdministrationService
java.lang.NoClassDefFoundError: org.openmrs/module/web/extension/AdministrationSectionExt

I found a troubleshooting note indicating that OpenMRS had compatibility issues with Tomcat versions later than 6.0.29, but since that was from 2012, I’m not sure if it’s still relevant.

Does anyone know the latest compatible version of Tomcat for OpenMRS reference application 2.12? Has anyone experienced this issue before or have any suggestions on what might be causing it?

Regards Darshan Hiranandani

Use version 2.13.0 of the reference application.