# Reference Application

**URL:** <https://talk.openmrs.org/t/reference-application/40600>\
**Category:** Ask OpenMRS\
**Tags:** o3\
**Created:** [September 30, 2023, 8:10pm UTC](https://talk.openmrs.org/t/reference-application/40600 "2023-09-30T20:10:08Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![unis](https://talk.openmrs.org/letter_avatar/unis/32/6_449c533f586939b6e5f246632a46421f.png) [@unis](https://talk.openmrs.org/u/unis)\
**Post date:** [September 30, 2023, 8:10pm UTC](https://talk.openmrs.org/t/reference-application/40600/1 "2023-09-30T20:10:08Z")

</div>

Hi,

I am new to OpenMRS and I want to install it at my machine. I tried to clone openmrs-distro-platform and run the resulted WAR to tomcat. However it was run without front end.  
My qestion is about what are the steps shlould i follwo to run the full OpenMRS 3 like the one on [OpenMRS](https://o3.openmrs.org/openmrs/spa/login) demo.

---

<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:** [October 1, 2023, 9:50am UTC](https://talk.openmrs.org/t/reference-application/40600/2 "2023-10-01T09:50:28Z")

</div>

Did you try these instructions? [https://github.com/openmrs/openmrs-distro-referenceapplication/blob/main/README.md](https://github.com/openmrs/openmrs-distro-referenceapplication/blob/main/README.md)

---

<div class="post-metadata">

**Author:** ![wikumc](https://talk.openmrs.org/user_avatar/talk.openmrs.org/wikumc/32/21813_2.png) [@wikumc](https://talk.openmrs.org/u/wikumc)\
**Post date:** [October 1, 2023, 12:09pm UTC](https://talk.openmrs.org/t/reference-application/40600/3 "2023-10-01T12:09:57Z")

</div>

You could also use the SDK to setup O3 reference application: [O3 Implementer Documentation: Set Up, Configure & Deploy - Projects - OpenMRS Wiki](https://wiki.openmrs.org/pages/viewpage.action?pageId=224527013#O3ImplementerDocumentation:SetUp,Configure&Deploy-SetupOpenMRS3WithOpenMRSSDK)

---

<div class="post-metadata">

**Author:** ![unis](https://talk.openmrs.org/letter_avatar/unis/32/6_449c533f586939b6e5f246632a46421f.png) [@unis](https://talk.openmrs.org/u/unis)\
**Post date:** [October 4, 2023, 11:49am UTC](https://talk.openmrs.org/t/reference-application/40600/4 "2023-10-04T11:49:28Z")

</div>

Actually I have followed the instruction of " Setup the O3 distribution with the SDK." and everything was ok. but when i tried to open the [http://localhost:8080/openmrs/spa/](http://localhost:8080/openmrs/spa/) it gave me a blank page.

my selected options were as the following: 3) O3 Distribution

1. Reference Application 3.0.0-SNAPSHOT MySQL 5.8

---

<div class="post-metadata">

**Author:** ![wodpachua](https://talk.openmrs.org/user_avatar/talk.openmrs.org/wodpachua/32/21682_2.png) [@wodpachua](https://talk.openmrs.org/u/wodpachua)\
**Post date:** [October 4, 2023, 1:27pm UTC](https://talk.openmrs.org/t/reference-application/40600/5 "2023-10-04T13:27:09Z")

</div>

Sometimes if the computer is being slow, you may first see a blank page as it laods… otherwise you might need to check the logs(or share here with pastebin) for other possible causes…

---

<div class="post-metadata">

**Author:** ![unis](https://talk.openmrs.org/letter_avatar/unis/32/6_449c533f586939b6e5f246632a46421f.png) [@unis](https://talk.openmrs.org/u/unis)\
**Post date:** [October 4, 2023, 2:51pm UTC](https://talk.openmrs.org/t/reference-application/40600/7 "2023-10-04T14:51:17Z")

</div>

Yes sure here is it [WARN - OpenmrsUtil.getRuntimePropertiesFilePathName(2033) |2023-10-04T15:24:35,1 - Pastebin.com](https://pastebin.com/VQYZJp5N). from the log i noted that the frontend\index.html’ doesn’t exist

---

<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:** [October 4, 2023, 6:35pm UTC](https://talk.openmrs.org/t/reference-application/40600/8 "2023-10-04T18:35:36Z")

</div>

It looks like you are facing the same issue that was discussed here: [Slack](https://openmrs.slack.com/archives/C03U2P841/p1696317998796759)

It was fixed yesterday. So just run the OpenMRS SDK setup again to create a new server.

---

<div class="post-metadata">

**Author:** ![unis](https://talk.openmrs.org/letter_avatar/unis/32/6_449c533f586939b6e5f246632a46421f.png) [@unis](https://talk.openmrs.org/u/unis)\
**Post date:** [October 5, 2023, 8:29am UTC](https://talk.openmrs.org/t/reference-application/40600/9 "2023-10-05T08:29:05Z")

</div>

It seems there is another problem yet. during the set I got this issue Downloading from openmrs-repo-thirdparty: [https://mavenrepo.openmrs.org/thirdparty/org/bahmni/module/appointments-omod/2.0.0-SNAPSHOT/appointments-omod-2.0.0-SNAPSHOT.pom](https://mavenrepo.openmrs.org/thirdparty/org/bahmni/module/appointments-omod/2.0.0-SNAPSHOT/appointments-omod-2.0.0-SNAPSHOT.pom)

---

<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:** [October 5, 2023, 9:14am UTC](https://talk.openmrs.org/t/reference-application/40600/10 "2023-10-05T09:14:31Z")

</div>

Can you share the logs with [pastebin.com](http://pastebin.com)?

---

<div class="post-metadata">

**Author:** ![wikumc](https://talk.openmrs.org/user_avatar/talk.openmrs.org/wikumc/32/21813_2.png) [@wikumc](https://talk.openmrs.org/u/wikumc)\
**Post date:** [October 5, 2023, 10:36am UTC](https://talk.openmrs.org/t/reference-application/40600/11 "2023-10-05T10:36:05Z")

</div>

@dkayiwa I am getting the same error: [/usr/lib/jvm/java-8-openjdk-amd64/bin/java -Dmaven.multiModuleProjectDirectory=/ - Pastebin.com](https://pastebin.com/1d2iuikC). I think there is a problem with jfrog.

---

<div class="post-metadata">

**Author:** ![unis](https://talk.openmrs.org/letter_avatar/unis/32/6_449c533f586939b6e5f246632a46421f.png) [@unis](https://talk.openmrs.org/u/unis)\
**Post date:** [October 5, 2023, 10:41am UTC](https://talk.openmrs.org/t/reference-application/40600/12 "2023-10-05T10:41:32Z")

</div>

Here is it [[INFO] Configured Artifact: org.openmrs.distro:referenceapplication-distro:3.0.0 - Pastebin.com](https://pastebin.com/gsLPjdgd)

---

<div class="post-metadata">

**Author:** ![wikumc](https://talk.openmrs.org/user_avatar/talk.openmrs.org/wikumc/32/21813_2.png) [@wikumc](https://talk.openmrs.org/u/wikumc)\
**Post date:** [October 5, 2023, 1:33pm UTC](https://talk.openmrs.org/t/reference-application/40600/13 "2023-10-05T13:33:38Z")

</div>

Till that gets fixed you could try using the Reference Application 3.0.0-beta.13.

---

<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:** [October 5, 2023, 1:44pm UTC](https://talk.openmrs.org/t/reference-application/40600/14 "2023-10-05T13:44:42Z")

</div>

I have just added the bahmni snapshot repository [Adding bahmni snapshot repository · openmrs/openmrs-sdk@1e632e5 · GitHub](https://github.com/openmrs/openmrs-sdk/commit/1e632e5d62aa58be4c8964ca6da7890ec5302007)

---

<div class="post-metadata">

**Author:** ![ibacher](https://talk.openmrs.org/user_avatar/talk.openmrs.org/ibacher/32/19751_2.png) [@ibacher](https://talk.openmrs.org/u/ibacher)\
**Post date:** [October 5, 2023, 2:19pm UTC](https://talk.openmrs.org/t/reference-application/40600/15 "2023-10-05T14:19:32Z")

</div>

I’ve add that snapshot repo to the JFrog instances Public, so 2.0.0-SNAPSHOT should now be available with no tweaks (the Mekom repo is a special snowflake for reasons I don’t understand).

---

<div class="post-metadata">

**Author:** ![unis](https://talk.openmrs.org/letter_avatar/unis/32/6_449c533f586939b6e5f246632a46421f.png) [@unis](https://talk.openmrs.org/u/unis)\
**Post date:** [October 5, 2023, 2:36pm UTC](https://talk.openmrs.org/t/reference-application/40600/16 "2023-10-05T14:36:54Z")

</div>

Still not available yet:

{ “errors”: [{ “status”: 404, “message”: “Item thirdparty:org/bahmni/module/appointments-omod/2.0.0-SNAPSHOT does not exist” }] }

---

<div class="post-metadata">

**Author:** ![wikumc](https://talk.openmrs.org/user_avatar/talk.openmrs.org/wikumc/32/21813_2.png) [@wikumc](https://talk.openmrs.org/u/wikumc)\
**Post date:** [October 5, 2023, 2:51pm UTC](https://talk.openmrs.org/t/reference-application/40600/17 "2023-10-05T14:51:42Z")

</div>

I don’t think the release with the changes is still out. Checkout after some time.

---

<div class="post-metadata">

**Author:** ![ibacher](https://talk.openmrs.org/user_avatar/talk.openmrs.org/ibacher/32/19751_2.png) [@ibacher](https://talk.openmrs.org/u/ibacher)\
**Post date:** [October 5, 2023, 3:24pm UTC](https://talk.openmrs.org/t/reference-application/40600/18 "2023-10-05T15:24:58Z")

</div>

Could you try it again? I’m able to resolve it with Maven like this:

```auto
mvn dependency:get -Dartifact=org.bahmni.module:appointments-omod:2.0.0-SNAPSHOT:jar -DremoteRepositories=openmrs::default::https://mavenrepo.openmrs.org/public/

```

---

<div class="post-metadata">

**Author:** ![unis](https://talk.openmrs.org/letter_avatar/unis/32/6_449c533f586939b6e5f246632a46421f.png) [@unis](https://talk.openmrs.org/u/unis)\
**Post date:** [October 7, 2023, 9:20am UTC](https://talk.openmrs.org/t/reference-application/40600/19 "2023-10-07T09:20:45Z")

</div>

unfortunately. i got the same issue even applying [Slack](https://openmrs.slack.com/archives/C03U2P841/p1696317998796759). here is the log [WARN - OpenmrsUtil.getRuntimePropertiesFilePathName(2033) |2023-10-07T11:50:37,8 - Pastebin.com](https://pastebin.com/D7TsqYNJ)

---

<div class="post-metadata">

**Author:** ![wikumc](https://talk.openmrs.org/user_avatar/talk.openmrs.org/wikumc/32/21813_2.png) [@wikumc](https://talk.openmrs.org/u/wikumc)\
**Post date:** [October 8, 2023, 3:57pm UTC](https://talk.openmrs.org/t/reference-application/40600/20 "2023-10-08T15:57:48Z")

</div>

does the openmrs initial setup start? Does it show you an error?? Is the setup stuck on a specific value?

---

<div class="post-metadata">

**Author:** ![unis](https://talk.openmrs.org/letter_avatar/unis/32/6_449c533f586939b6e5f246632a46421f.png) [@unis](https://talk.openmrs.org/u/unis)\
**Post date:** [October 9, 2023, 11:30am UTC](https://talk.openmrs.org/t/reference-application/40600/21 "2023-10-09T11:30:10Z")

</div>

Yes it started and end successfully. However there was a samll issue regarding " Patient Flags Module " not started because of Caused by: java.sql.SQLException: Referencing column ‘role’ and referenced column ‘role’ in foreign key constraint ‘patientflags\_tag\_role\_ibfk\_2’ are incompatible. and this should not be a show stopper of SPA module.

[Next page](https://talk.openmrs.org/t/reference-application/40600.md?page=2)
