Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

These errors may be related to MySQL Database startup.

MySQL Version

There are multiple different versions of MySQL provided with the link given in the developer’s guide. It could be confusing for new developers.

The easiest way is to download using apt.

Be sure to download MySQL server instead of MySQL client.

War file deploys in Tomcat but it won't start OpenMRS

...

  • Under C:\Users\YOURUSERNAME\AppData\Roaming\OpenMRS

...

Ubuntu

  • Under /home/YOURUSERNAME/.OpenMRS
  • Under /usr/share/tomcatX/.OpenMRS

...

For more troubleshooting tips see Troubleshooting Tomcat.

Legacy-UI

  1. Download the newest version of legacy UI.
  2. Find the legacy-version-SNAPSHOT.omod file
  3. Put it into the hidden folder ~/.OpenMRS/modules.
  4. Be sure to kill the previous operations running the webapp.
  5. Clear the browser cache.

  6. Rerun the webapp using command:
Code Block
            mvn jetty:run


Running Maven

The time taken for maven to compile could vary for different computers.

Kill the previous mvn clean install or mvn jetty: run every time you rerun maven. Otherwise, it might gives a following error indicating address already in use.

 Image Added

 

HTTP 500 error

After opening http://localhost:8080/openmrs in the web browser, you might encounter the following error.

Image Added

Close the window and kill the prior operations. 

 Rerun mvn jetty:run in the webapp folder and it usually works.