# Unable to run legacy UI module on openmrs-core

**URL:** <https://talk.openmrs.org/t/unable-to-run-legacy-ui-module-on-openmrs-core/27448>\
**Category:** Uncategorized\
**Created:** [March 16, 2020, 5:52pm UTC](https://talk.openmrs.org/t/unable-to-run-legacy-ui-module-on-openmrs-core/27448 "2020-03-16T17:52:45Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![sidvaish97](https://talk.openmrs.org/user_avatar/talk.openmrs.org/sidvaish97/32/19702_2.png) [@sidvaish97](https://talk.openmrs.org/u/sidvaish97)\
**Post date:** [March 16, 2020, 5:52pm UTC](https://talk.openmrs.org/t/unable-to-run-legacy-ui-module-on-openmrs-core/27448/1 "2020-03-16T17:52:45Z")

</div>

I ran the master branch of openmrs-core with `mvn jetty:run`. The server was successfully setup. Then I added the legacy ui module to modules folder and again ran the `mvn jetty:run` command but the following error occured. [https://pastebin.com/RuSGteYJ](https://pastebin.com/RuSGteYJ)

---

<div class="post-metadata">

**Author:** ![sharif](https://talk.openmrs.org/user_avatar/talk.openmrs.org/sharif/32/11982_2.png) [@sharif](https://talk.openmrs.org/u/sharif)\
**Post date:** [March 16, 2020, 6:37pm UTC](https://talk.openmrs.org/t/unable-to-run-legacy-ui-module-on-openmrs-core/27448/2 "2020-03-16T18:37:25Z")

</div>

What were you trying to do, you cloned openmrs-core , and then the server successfully setup, are you using openmrs-sdk?to set up the server not getting you very well.where did you upload the legacyui module please eraborate more thanks

---

<div class="post-metadata">

**Author:** ![sidvaish97](https://talk.openmrs.org/user_avatar/talk.openmrs.org/sidvaish97/32/19702_2.png) [@sidvaish97](https://talk.openmrs.org/u/sidvaish97)\
**Post date:** [March 16, 2020, 6:47pm UTC](https://talk.openmrs.org/t/unable-to-run-legacy-ui-module-on-openmrs-core/27448/3 "2020-03-16T18:47:39Z")

</div>

@sharif No I am not using the sdk I have cloned the openmrs-core and then I have pasted the `.omod` file in the module folder.

This problem occurs only with the master branch. I checkout to `2.3.x` and everything ran perfectly.

---

<div class="post-metadata">

**Author:** ![sharif](https://talk.openmrs.org/user_avatar/talk.openmrs.org/sharif/32/11982_2.png) [@sharif](https://talk.openmrs.org/u/sharif)\
**Post date:** [March 16, 2020, 7:01pm UTC](https://talk.openmrs.org/t/unable-to-run-legacy-ui-module-on-openmrs-core/27448/4 "2020-03-16T19:01:56Z")

</div>

Am just confused about building the openmrs-core and you have an extension of .omod file. openmrs-core when its packaged ,it is bundled as a war file, forexample “webapp/target/openmrs.war” so for it it has no omod file, then you can deploy your war file in to the application server running like tomcat or jetty. hope am not mistaken can you show us the .omod file extension location in openmrs-core where you pasted the your files thanks again

---

<div class="post-metadata">

**Author:** ![sidvaish97](https://talk.openmrs.org/user_avatar/talk.openmrs.org/sidvaish97/32/19702_2.png) [@sidvaish97](https://talk.openmrs.org/u/sidvaish97)\
**Post date:** [March 16, 2020, 7:10pm UTC](https://talk.openmrs.org/t/unable-to-run-legacy-ui-module-on-openmrs-core/27448/5 "2020-03-16T19:10:17Z")

</div>

@sharif Maybe I am not able to explain properly Sorry for that . I have successfully run the openmrs-core and it shows either use a UI or RESTAPI. So I want to use the UI I am following [Installing the Legacy UI module](https://wiki.openmrs.org/display/docs/User+Interface+Modules) and this is not working for the master branch but works for `2.3.x`

---

<div class="post-metadata">

**Author:** ![dkayiwa](https://talk.openmrs.org/user_avatar/talk.openmrs.org/dkayiwa/32/179_2.png) [@dkayiwa](https://talk.openmrs.org/u/dkayiwa)\
**Post date:** [March 16, 2020, 7:14pm UTC](https://talk.openmrs.org/t/unable-to-run-legacy-ui-module-on-openmrs-core/27448/6 "2020-03-16T19:14:06Z")

</div>

@sharif have you tried to reproduce his problem and failed?

---

<div class="post-metadata">

**Author:** ![sharif](https://talk.openmrs.org/user_avatar/talk.openmrs.org/sharif/32/11982_2.png) [@sharif](https://talk.openmrs.org/u/sharif)\
**Post date:** [March 16, 2020, 7:28pm UTC](https://talk.openmrs.org/t/unable-to-run-legacy-ui-module-on-openmrs-core/27448/7 "2020-03-16T19:28:11Z")

</div>

Not yet @dkayiwa, But have got him collect now , At first the explanation was a bit not appealing fair so i couldn’t get him right, @sidvaish97 Did you restart the server on a stable internet connection

---

<div class="post-metadata">

**Author:** ![sidvaish97](https://talk.openmrs.org/user_avatar/talk.openmrs.org/sidvaish97/32/19702_2.png) [@sidvaish97](https://talk.openmrs.org/u/sidvaish97)\
**Post date:** [March 16, 2020, 7:30pm UTC](https://talk.openmrs.org/t/unable-to-run-legacy-ui-module-on-openmrs-core/27448/8 "2020-03-16T19:30:26Z")

</div>

@sharif I have tried it quite a lot of times and it fails as I have told that `2.3.x` works fine but not the master branch

---

<div class="post-metadata">

**Author:** ![sharif](https://talk.openmrs.org/user_avatar/talk.openmrs.org/sharif/32/11982_2.png) [@sharif](https://talk.openmrs.org/u/sharif)\
**Post date:** [March 16, 2020, 7:48pm UTC](https://talk.openmrs.org/t/unable-to-run-legacy-ui-module-on-openmrs-core/27448/9 "2020-03-16T19:48:26Z")

</div>

This link will help you [OpenMRS won't start](https://talk.openmrs.org/t/openmrs-wont-start/6596/10). feel free to come back to us please thanks

---

<div class="post-metadata">

**Author:** ![dkayiwa](https://talk.openmrs.org/user_avatar/talk.openmrs.org/dkayiwa/32/179_2.png) [@dkayiwa](https://talk.openmrs.org/u/dkayiwa)\
**Post date:** [March 16, 2020, 7:56pm UTC](https://talk.openmrs.org/t/unable-to-run-legacy-ui-module-on-openmrs-core/27448/10 "2020-03-16T19:56:43Z")

</div>

@sharif at this stage, you need to first try reproduce the reported problem and confirm that it does not fail for you, before you continue directing him to other links.

---

<div class="post-metadata">

**Author:** ![sharif](https://talk.openmrs.org/user_avatar/talk.openmrs.org/sharif/32/11982_2.png) [@sharif](https://talk.openmrs.org/u/sharif)\
**Post date:** [March 16, 2020, 8:05pm UTC](https://talk.openmrs.org/t/unable-to-run-legacy-ui-module-on-openmrs-core/27448/11 "2020-03-16T20:05:40Z")

</div>

Ok @dkayiwa let me reproduce the problem first

---

<div class="post-metadata">

**Author:** ![sidvaish97](https://talk.openmrs.org/user_avatar/talk.openmrs.org/sidvaish97/32/19702_2.png) [@sidvaish97](https://talk.openmrs.org/u/sidvaish97)\
**Post date:** [March 18, 2020, 4:59pm UTC](https://talk.openmrs.org/t/unable-to-run-legacy-ui-module-on-openmrs-core/27448/12 "2020-03-18T16:59:11Z")

</div>

@sharif Any updates on this?

---

<div class="post-metadata">

**Author:** ![dkayiwa](https://talk.openmrs.org/user_avatar/talk.openmrs.org/dkayiwa/32/179_2.png) [@dkayiwa](https://talk.openmrs.org/u/dkayiwa)\
**Post date:** [March 18, 2020, 7:39pm UTC](https://talk.openmrs.org/t/unable-to-run-legacy-ui-module-on-openmrs-core/27448/13 "2020-03-18T19:39:03Z")

</div>

@sidvaish97 can you create a ticket for this?

---

<div class="post-metadata">

**Author:** ![sidvaish97](https://talk.openmrs.org/user_avatar/talk.openmrs.org/sidvaish97/32/19702_2.png) [@sidvaish97](https://talk.openmrs.org/u/sidvaish97)\
**Post date:** [March 18, 2020, 7:39pm UTC](https://talk.openmrs.org/t/unable-to-run-legacy-ui-module-on-openmrs-core/27448/14 "2020-03-18T19:39:54Z")

</div>

@dkayiwa Sure In the core or the legacy ui module JIRA?

---

<div class="post-metadata">

**Author:** ![dkayiwa](https://talk.openmrs.org/user_avatar/talk.openmrs.org/dkayiwa/32/179_2.png) [@dkayiwa](https://talk.openmrs.org/u/dkayiwa)\
**Post date:** [March 18, 2020, 7:44pm UTC](https://talk.openmrs.org/t/unable-to-run-legacy-ui-module-on-openmrs-core/27448/15 "2020-03-18T19:44:59Z")

</div>

In the legacy ui module JIRA project.

---

<div class="post-metadata">

**Author:** ![sidvaish97](https://talk.openmrs.org/user_avatar/talk.openmrs.org/sidvaish97/32/19702_2.png) [@sidvaish97](https://talk.openmrs.org/u/sidvaish97)\
**Post date:** [March 18, 2020, 8:05pm UTC](https://talk.openmrs.org/t/unable-to-run-legacy-ui-module-on-openmrs-core/27448/16 "2020-03-18T20:05:09Z")

</div>

@dkayiwa Here it is [LUI-154](https://issues.openmrs.org/browse/LUI-154)

---

<div class="post-metadata">

**Author:** ![dkayiwa](https://talk.openmrs.org/user_avatar/talk.openmrs.org/dkayiwa/32/179_2.png) [@dkayiwa](https://talk.openmrs.org/u/dkayiwa)\
**Post date:** [March 18, 2020, 10:02pm UTC](https://talk.openmrs.org/t/unable-to-run-legacy-ui-module-on-openmrs-core/27448/17 "2020-03-18T22:02:41Z")

</div>

@sidvaish97 i have just made a commit to the legacyui module. Update, compile, and then deploy it for another round of testing.

---

<div class="post-metadata">

**Author:** ![sidvaish97](https://talk.openmrs.org/user_avatar/talk.openmrs.org/sidvaish97/32/19702_2.png) [@sidvaish97](https://talk.openmrs.org/u/sidvaish97)\
**Post date:** [March 18, 2020, 10:49pm UTC](https://talk.openmrs.org/t/unable-to-run-legacy-ui-module-on-openmrs-core/27448/19 "2020-03-18T22:49:06Z")

</div>

@dkayiwa Works fine now 👍
