We are trying to host OpenMRS on Openshift origin. We successfully hosted OpenMRS core module and Initial setup was also completed. To access the UI we copied the UI module into the modules folder also but the challenge here is we could not able to restart the Pod here.
So we are planning to copy these modules into some folder in webapp so that it copies the omod files into Modules folder.
Can somebody please suggest a way to have the Reference Application modules in the webapp, so that they will be in WAR file and while installing will be copied into the modules folder.
Hi @dkayiwa, what we are doing currently is, we are using the openmrs-core source code and using the CICD we are building the WAR and then Docker Image and hosting it on OpenShift Origin.
So I am not sure how to try the above mentioned steps.
Thank you so much @ssmusoke. When I copy the omod files in WEB-INF/bundledModules, the app is able to access the modules. But I am getting the new error:
ERROR - AbstractLoggingWriter.write(71) |2019-02-07 02:44:02,805| java.lang.IllegalStateException: JBWEB000243: Context /openmrs has already been initialized
ERROR - AbstractLoggingWriter.write(71) |2019-02-07 02:44:02,806| at org.apache.catalina.core.StandardWrapperFacade.addMapping(StandardWrapperFacade.java:125)