Compile legacyui module against OpenMRS Platform 3.0.0-SNAPSHOT#232
Closed
Compile legacyui module against OpenMRS Platform 3.0.0-SNAPSHOT#232
Conversation
…ommons-lang3, Spring 6+ theme removal, Jackson 2.x, DWR 3.0.0-SNAPSHOT Co-authored-by: dkayiwa <1390773+dkayiwa@users.noreply.github.com>
…le schema, Jackson fieldNames, qualifier Co-authored-by: dkayiwa <1390773+dkayiwa@users.noreply.github.com>
…duplicate handler adapter, WebComponentRegistrar null check Co-authored-by: dkayiwa <1390773+dkayiwa@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix compilation errors and test failures for module
Port legacyui module to openmrsPlatformVersion 3.0.0-SNAPSHOT
Feb 23, 2026
…ler adapters, fix Hibernate 6 TransientPropertyValueException, fix ProgramFormControllerTest session state Co-authored-by: dkayiwa <1390773+dkayiwa@users.noreply.github.com>
Copilot
AI
changed the title
Port legacyui module to openmrsPlatformVersion 3.0.0-SNAPSHOT
Fix all failing tests for Platform 3.0.0-SNAPSHOT compatibility
Feb 23, 2026
Co-authored-by: dkayiwa <1390773+dkayiwa@users.noreply.github.com>
Copilot
AI
changed the title
Fix all failing tests for Platform 3.0.0-SNAPSHOT compatibility
Compile on Platform 3.0.0-SNAPSHOT and remove Java 8/11/17 from build matrix
Feb 23, 2026
…asperException on Platform 3.0.0 Co-authored-by: dkayiwa <1390773+dkayiwa@users.noreply.github.com>
Copilot
AI
changed the title
Compile on Platform 3.0.0-SNAPSHOT and remove Java 8/11/17 from build matrix
Remove incompatible Apache taglibs to fix JasperException on Platform 3.0.0
Feb 23, 2026
…m 3.0.0 Co-authored-by: dkayiwa <1390773+dkayiwa@users.noreply.github.com>
Copilot
AI
changed the title
Remove incompatible Apache taglibs to fix JasperException on Platform 3.0.0
Compile legacyui on Platform 3.0.0-SNAPSHOT (Spring 7, Hibernate 6, Jakarta EE)
Feb 23, 2026
…lly interface Co-authored-by: dkayiwa <1390773+dkayiwa@users.noreply.github.com>
Copilot
AI
changed the title
Compile legacyui on Platform 3.0.0-SNAPSHOT (Spring 7, Hibernate 6, Jakarta EE)
Compile legacyui module against OpenMRS Platform 3.0.0-SNAPSHOT
Feb 23, 2026
This was referenced Feb 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Platform 3.0.0-SNAPSHOT upgrades to Spring 7, Hibernate 6, Jakarta EE 10, and Java 21. This migrates the legacyui module to compile and pass all 366 tests against it.
Jakarta EE migration
javax.servlet→jakarta.servletacross all Java, JSP, and TLD filesjavax.annotation→jakarta.annotationin testsjavax.servlet-api/jsp-api→jakarta.servlet-api/jakarta.servlet.jsp-apiSpring 6/7 theme support removal
org.openmrs.web.themepackage (Theme,ThemeSource,SimpleTheme,ResourceBundleThemeSource,ThemeChangeInterceptor)org.openmrs.web.taglib.ThemeTagto replace removedorg.springframework.web.servlet.tags.ThemeTag; updatedspring.tldSpring MVC namespace conflict
<mvc:view-controller>and<mvc:interceptors>with plain bean definitions — the MVC namespace registers a duplicateSimpleControllerHandlerAdapterthat conflicts with@EnableWebMvcin openmrs-core'sWebConfigIncompatible Apache taglibs
page.tld,request.tld,response.tld— these referencejavax.servlet-based classes unavailable at runtime<request:existsParameter name="X">with<c:if test="${not empty param.X}">in the two JSPs that used itPortletTag TryCatchFinally
PortletTagnow implementsjakarta.servlet.jsp.tagext.TryCatchFinally— Jakarta JSTL'sImportSupportno longer provides these methodsAPI migrations
commons-lang→commons-lang3(escapeHtml→escapeHtml4,escapeJavaScript→escapeEcmaScript)org.codehaus.jackson) → Jackson 2.x (com.fasterxml.jackson)WebBindingInitializer.initBindersignature updated for Spring 7XSSFilter/XSSRequestWrapperupdated for Jakarta Servlet APIBuild config
openmrsPlatformVersion→3.0.0-SNAPSHOT, Java 21, DWR3.0.0-SNAPSHOTTest fixes
privilege.creator,scheduler_task_config.creator)ConceptFormControllerTest.shouldVoidShortName: use non-Numeric datatype to avoid Hibernate 6TransientPropertyValueExceptionfromConceptNumeric(Concept)constructor reassigning persistent entity back-referencesProgramFormControllerTest: addedflushSession()/clearSession()between sequential controller calls💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.