Error installing the Legacy UI module.

I intend to use Open mrs as developer where I will be customising things on need basis.

I successfully installed open mrs and landed on default page :-

If you are seeing this page, it means that the OpenMRS Platform is running successfully, but no user interface module is installed. Learn about the available [User Interface Modules](https://wiki.openmrs.org/x/d4aIBQ)

If you are a developer, you can access the REST API. (See [REST documentation for clients](https://wiki.openmrs.org/x/P4IaAQ))  

Now following https://wiki.openmrs.org/display/docs/User+Interface+Modules to install legacy UI module, I am getting an exception while running jetty :

WARN - AbstractApplicationContext.refresh(558) |2020-04-03T10:54:15,949| Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'messageSourceServiceTarget' defined in class path resource [applicationContext-service.xml]: Cannot resolve reference to bean 'mutableResourceBundleMessageSource' while setting bean property 'activeMessageSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mutableResourceBundleMessageSource' defined in class path resource [applicationContext-service.xml]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.transaction.interceptor.TransactionAttributeSourceAdvisor#0' defined in class path resource [applicationContext-service.xml]: Cannot resolve reference to bean 'transactionInterceptor' while setting bean property 'transactionInterceptor'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionInterceptor' defined in class path resource [applicationContext-service.xml]: Cannot resolve reference to bean 'transactionManager' while setting bean property 'transactionManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager' defined in class path resource [applicationContext-service.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'sessionFactory': Unsatisfied dependency expressed through field 'interceptors'; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [org.springframework.web.servlet.mvc.multiaction.MultiActionController] for bean with name 'patientProgramFormController' defined in URL [jar:file:/Users/ravi/.OpenMRS/.openmrs-lib-cache/legacyui/legacyui.jar!/webModuleApplicationContext.xml]; nested exception is java.lang.ClassNotFoundException: org.springframework.web.servlet.mvc.multiaction.MultiActionController

Related cause: org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [org.springframework.web.servlet.mvc.multiaction.MultiActionController] for bean with name 'patientProgramFormController' defined in URL [jar:file:/Users/ravi/.OpenMRS/.openmrs-lib-cache/legacyui/legacyui.jar!/webModuleApplicationContext.xml]; nested exception is java.lang.ClassNotFoundException: org.springframework.web.servlet.mvc.multiaction.MultiActionController

INFO - ServiceContext.doneRefreshingContext(843) |2020-04-03T10:54:15,951| Done refreshing Context

WARN - Context.shutdown(974) |2020-04-03T10:54:16,021| Error while shutting down context dao

org.hibernate.service.UnknownServiceException: Unknown service requested [org.hibernate.stat.spi.StatisticsImplementor]

Can you paste the logs in pastebin.com and share the link here?

@ravi991 did you install the .omod of the legacy ui in your modules folder?

Okay I tried something on this line to resolve the issue.

`git clone https:` `//github.com/openmrs/openmrs-module-legacyui.git`
`mvn clean install`

And copied openmrs-module-legacyui/omod/target/legacyui-{version}-SNAPSHOT.omod into modules directory of my OpenMRS app data folder.

I restarted core

Now the error I am getting is

https://pastebin.com/nVHFp82B

On browser , after login it says :-1:

There was an error starting the module: Registration Core Module

Yes copied it into modules directory of my OpenMRS app data folder.

Can you also compile and use the latest snapshot version of the registrationcore module?

Hello there! I am getting same error as in question… not sure if I have messed up things and environment setup…

  1. First I cloned ‘https//github.com/openmrs/openmrs-core’ then landed on default page with no UI modules… :frowning:
  2. Then after going through wiki, again I cloned https://github.com/openmrs/openmrs-module-legacyui.git got one after another errors and am fixing it to finally see OpenMRS localhost site with no luck…
  3. I went back and followed first github link and got generatedn webapp/target/openmrs.war
  4. Trying to deploy this .war via jetty (%maven_home%mvn -Djetty.http.port=8081 jetty:run) but getting errors as shown in
    https://pastebin.com/VyHgUShX

Thanks in advance. Best Regards, Supriya

You just need to fetch the latest snapshot version of the legacyui module. Compile and use.

From https: //github.com/openmrs/openmrs-module-legacyui.git, right? I have already taken latest version of it n built it successfully which created legacyui-1.7.0-SNAPSHOT.omod Placed it in %appdata% i.e. C:\Users\Supriya\openmrs\modules

Now am running below command - D:\MedicalProj\OpenMRS\webapp>%maven_home%mvn -Djetty.http.port=8081 jetty:run

FYI, D:\MedicalProj\OpenMRS\webapp am using because am getting jetty there to run above command, is that ok? D:\MedicalProj\OpenMRS has code fetched from https://github.com/openmrs/openmrs-core and built successfully.

And by the way, have you seen this? https://wiki.openmrs.org/display/docs/OpenMRS+SDK

Yes, I folllowed initially that wiki page only until login admin as the username and Admin123 as the password. UI was blank after login, then it redirected me to this link - https://wiki.openmrs.org/display/docs/User+Interface+Modules

I followed then the above link… will see the OpenMRS+SDK link that you mentioned once again n try out…