@bci, I am splitting this topic and bringing on the current post my answer regarding your issue(s) specifically with the SDK when setting up the Ref App distro, quote:
Reference: In the wiki article ‘OpenMRS SDK’, look at ‘Setup OpenMRS Platform 1.11.7-SNAPSHOT on MySQL database’ in the examples subsection. There is an example there showing what is expected for the
See a step by step guide below the line.
Find below more detailed instructions about how to setup Ref App 2.5. I’m a assuming that
- You are on a Un*x-like OS.
- MySQL 5.6 is installed and running on port 3306.
- Java 8 is installed, that’s mandatory for Platform 2.0.
Fetch the latest SDK and setup the server:
mvn openmrs-sdk:help -U # make sure you run the latest SDK release mvn openmrs-sdk:setup -DserverId=distro-2-5 -Ddistro=referenceapplication:2.5-SNAPSHOT -DdbUri=jdbc:mysql://localhost:3306/openmrs_distro-2-5 -DdbUser=root -DdbPassword=pass
root is MySQL’s root user and
pass is the root user’s password.
Eventually you will be asked:
Which database would you like to use?:
- MySQL 5.6 (requires pre-installed MySQL 5.6)
- MySQL 5.6 in SDK docker container (requires pre-installed Docker)
- Existing docker container (requires pre-installed Docker)
Then you will be asked something along those lines:
Which JDK would you like to use to run this server?:
- JAVA_HOME (currently: /Library/Java/JavaVirtualMachines/jdk1.7.0_79.jdk/Contents/Home/jre)
Make sure you provide the path to Java 8’s JRE. In the above example you would have to pick 2) and then the build would complete. You may have to paste the path by yourself though if it is not provided as above.
Now to run this server on port 8080:
mvn openmrs-sdk:run -Dport=8080 -DserverId=distro-2-5
Watch the log in your terminal and launch the webapp (http://localhost:8080/openmrs/) when you see this:
INFO: Starting ProtocolHandler ["http-bio-8080"]. You will then see this:
Let this complete to 100%. Actually you can even close the browser’s window and get back to the terminal and observe that it keeps running until the log calms down and that nothing happens anymore (this will take a few minutes). At that point you can access the Ref App 2.5 at the same URL as earlier.