Hello, I am trying to set up a server using the sdk on ubuntu 24.04, using java 21.
I have tried multiple times, with these versions of platform:
3.0.0-SNAPSHOT
2.8.2-SNAPSHOT
2.8.1
2.7.3
and and i get the same error :java.lang.NoClassDefFoundError: org/openmrs/module/web/extension /AdministrationSectionExt.
the stacktrace is here: https://pastebin.com/CPeBSXXh
This error appears when i try to run the server, after it has applied a long list of liquibase changestes (maybe all??).
The platform setup via sdk has the follwong modules:
So i though about adding that module (versioni 1.23.0) to the modules folder (donwnloaded from https://addons.openmrs.org/show/org.openmrs.module.legacyui) and adding omod.legacyui=1.23.0 to openmrs-distro.properties and openmrs-server.properties as I saw that modules are declared there.
But the i face this other issue:
ERROR - Listener.contextInitialized(262) |2025-10-10T11:31:52,565| Failed to obtain JDBC connection
org.openmrs.module.ModuleException: Unable to start OpenMRS. Error thrown was: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘serviceContext$child#0’ defined in URL [jar:file:/home/bledi/openmrs/platform281/.openmrs-lib-cache/legacyui/lib/legacyui-api-1.23.0.jar!/moduleApplicationContext.xml]: Cannot resolve reference to bean ‘patientService’ while setting bean property ‘patientService’; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘patientService’ defined in class path resource [applicationContext-service.xml]: Cannot resolve reference to bean ‘patientServiceTarget’ while setting bean property ‘target’; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘patientServiceTarget’ defined in class path resource [applicationContext-service.xml]: Initialization of bean failed; nested exception is org.springframework.aop.framework.AopConfigException: Could not generate CGLIB subclass of class org.openmrs.api.impl.PatientServiceImpl
Any help on how to proceed and also any indication on how to fix this for others also, would be great (i could do the changes needed and make a PR )
Thank you for the feedback, was trying just that, i also made a fresh setup just to be sure there were no issues from the various tests i made. Still fails, here is the full log from start: openmrsrun - Pastebin.com
@dkayiwa finally it works, it still shows a warning for the missing class WARN - Module.expandExtensionNames(577) |2025-10-10T15:49:09,596| webservices.rest: Unable to create instance of class defined for extension point: org.openmrs.admin.list
java.lang.NoClassDefFoundError: org/openmrs/module/web/extension/AdministrationSectionExt
Thank you very much for your help. Is there anything i can do to help change/fix/configure also the sdk part?
I was thinking if there is anything to be done so othera dont face the same.issue using the sdk. Otherwise any issue i could work with woukd be fine, I am a jav dev.
Very interesting topic, I am not deep in docker land though, I think i could be of more value in something more related to java/maven etc. Do you think there is anything in that area valuable to community priorities?
but f i go te filters like “Open work items“ from the menu on the left, under filters, it works fine, so I was thinking maybe your filter might not be public