Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,3 @@ administrative functions that are not yet implemented in the new UI.
maintain backwards compatibility.
- The main idea behind this project is to move legacy UI functions into an OpenMRS module that these implementations can install
until they are able to migrate away from it, since most of the implementations of OpenMRS around the world are running OpenMRS 1.9.

- It is compulsory to run openmrs-module-legacyui against legacyui branch of openmrs-core
that I have created to eventually remove legacyui.
9 changes: 7 additions & 2 deletions omod/src/main/java/org/openmrs/web/WebComponentRegistrar.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,13 @@
import org.springframework.stereotype.Component;
import org.springframework.web.context.ServletContextAware;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

@Component
public class WebComponentRegistrar implements ServletContextAware {

private static final Logger log = LoggerFactory.getLogger(WebComponentRegistrar.class);

@Override
public void setServletContext(ServletContext servletContext) {

Expand Down Expand Up @@ -61,7 +65,8 @@ public void setServletContext(ServletContext servletContext) {
//This happens on running openmrs after InitializationFilter or UpdateFilter
//hence requiring a restart to see any page other than index.htm
//After a restart, all mappings will then happen within Listener.contextInitialized()
ex.printStackTrace();

log.error("Error registering web component", ex);
}
}

Expand Down