Trouble setting up my openMRS

hello I am a fresher skilling in java at the moment. I have tried to set up my openMRS and this is what I have done at the moment; -installed JDK 1.8.0.91 -installed maven 3.6.1 -installed Git -Installed MySQL -installer-community 5.7.26.0 -Created MAVEN_OPTS and adjusted variable value to -Xmx1024m. when I treated to create a project, this is what I get Downloaded from central: https://repo.maven.apache.org/maven2/org/codehaus/mojo/maven-metadata.xml (20 kB at 20 kB/s) [WARNING] Could not transfer metadata org.openmrs.maven.plugins/maven-metadata.xml from/to openmrs-repo (http://mavenrepo.openmrs.org/nexus/content/repositories/public): sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target [WARNING] Could not transfer metadata org.apache.maven.plugins/maven-metadata.xml from/to openmrs-repo (http://mavenrepo.openmrs.org/nexus/content/repositories/public): sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target [WARNING] Could not transfer metadata org.codehaus.mojo/maven-metadata.xml from/to openmrs-repo (http://mavenrepo.openmrs.org/nexus/content/repositories/public): sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target Downloading from openmrs-repo: http://mavenrepo.openmrs.org/nexus/content/repositories/public/org/openmrs/maven/plugins/openmrs-sdk-maven-plugin/maven-metadata.xml Downloading from central: https://repo.maven.apache.org/maven2/org/openmrs/maven/plugins/openmrs-sdk-maven-plugin/maven-metadata.xml Downloading from openmrs-bintray-repo: https://dl.bintray.com/openmrs/maven/org/openmrs/maven/plugins/openmrs-sdk-maven-plugin/maven-metadata.xml Downloaded from central: https://repo.maven.apache.org/maven2/org/openmrs/maven/plugins/openmrs-sdk-maven-plugin/maven-metadata.xml (1.4 kB at 1.9 kB/s) Downloaded from openmrs-bintray-repo: https://dl.bintray.com/openmrs/maven/org/openmrs/maven/plugins/openmrs-sdk-maven-plugin/maven-metadata.xml (1.5 kB at 1.1 kB/s) [WARNING] Could not transfer metadata org.openmrs.maven.plugins:openmrs-sdk-maven-plugin/maven-metadata.xml from/to openmrs-repo (http://mavenrepo.openmrs.org/nexus/content/repositories/public): sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target [INFO] [INFO] ------------------< org.apache.maven:standalone-pom >------------------- [INFO] Building Maven Stub Project (No POM) 1 [INFO] --------------------------------[ pom ]--------------------------------- [WARNING] Failure to transfer org.openmrs.maven.plugins/maven-metadata.xml from http://mavenrepo.openmrs.org/nexus/content/repositories/public was cached in the local repository, resolution will not be reattempted until the update interval of openmrs-repo has elapsed or updates are forced. Original error: Could not transfer metadata org.openmrs.maven.plugins/maven-metadata.xml from/to openmrs-repo (http://mavenrepo.openmrs.org/nexus/content/repositories/public): sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target [WARNING] Failure to transfer org.apache.maven.plugins/maven-metadata.xml from http://mavenrepo.openmrs.org/nexus/content/repositories/public was cached in the local repository, resolution will not be reattempted until the update interval of openmrs-repo has elapsed or updates are forced. Original error: Could not transfer metadata org.apache.maven.plugins/maven-metadata.xml from/to openmrs-repo (http://mavenrepo.openmrs.org/nexus/content/repositories/public): sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target [WARNING] Failure to transfer org.codehaus.mojo/maven-metadata.xml from http://mavenrepo.openmrs.org/nexus/content/repositories/public was cached in the local repository, resolution will not be reattempted until the update interval of openmrs-repo has elapsed or updates are forced. Original error: Could not transfer metadata org.codehaus.mojo/maven-metadata.xml from/to openmrs-repo (http://mavenrepo.openmrs.org/nexus/content/repositories/public): sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target [WARNING] Failure to transfer org.openmrs.maven.plugins:openmrs-sdk-maven-plugin/maven-metadata.xml from http://mavenrepo.openmrs.org/nexus/content/repositories/public was cached in the local repository, resolution will not be reattempted until the update interval of openmrs-repo has elapsed or updates are forced. Original error: Could not transfer metadata org.openmrs.maven.plugins:openmrs-sdk-maven-plugin/maven-metadata.xml from/to openmrs-repo (http://mavenrepo.openmrs.org/nexus/content/repositories/public): sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target [INFO] [INFO] — openmrs-sdk-maven-plugin:3.13.2:setup-sdk (default-cli) @ standalone-pom — [INFO] SDK installed successfully, settings file: C:\Users\hp.m2\settings.xml [INFO] Now you can use sdk: mvn openmrs-sdk:<task_name> [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 17.136 s [INFO] Finished at: 2019-07-05T11:50:21+03:00 [INFO] ------------------------------------------------------------------------

C:\Users\hp>mvn openmrs-sdk:create-project [INFO] Scanning for projects… Downloading from openmrs-repo: http://mavenrepo.openmrs.org/nexus/content/repositories/public/org/codehaus/mojo/maven-metadata.xml Downloading from openmrs-repo: http://mavenrepo.openmrs.org/nexus/content/repositories/public/org/apache/maven/plugins/maven-metadata.xml Downloading from openmrs-repo: http://mavenrepo.openmrs.org/nexus/content/repositories/public/org/openmrs/maven/plugins/maven-metadata.xml [WARNING] Could not transfer metadata org.openmrs.maven.plugins/maven-metadata.xml from/to openmrs-repo (http://mavenrepo.openmrs.org/nexus/content/repositories/public): sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target [WARNING] Could not transfer metadata org.apache.maven.plugins/maven-metadata.xml from/to openmrs-repo (http://mavenrepo.openmrs.org/nexus/content/repositories/public): sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target [WARNING] Could not transfer metadata org.codehaus.mojo/maven-metadata.xml from/to openmrs-repo (http://mavenrepo.openmrs.org/nexus/content/repositories/public): sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target Downloading from openmrs-repo: http://mavenrepo.openmrs.org/nexus/content/repositories/public/org/openmrs/maven/plugins/openmrs-sdk-maven-plugin/maven-metadata.xml [WARNING] Could not transfer metadata org.openmrs.maven.plugins:openmrs-sdk-maven-plugin/maven-metadata.xml from/to openmrs-repo (http://mavenrepo.openmrs.org/nexus/content/repositories/public): sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target [INFO] [INFO] ------------------< org.apache.maven:standalone-pom >------------------- [INFO] Building Maven Stub Project (No POM) 1 [INFO] --------------------------------[ pom ]--------------------------------- [WARNING] Failure to transfer org.openmrs.maven.plugins/maven-metadata.xml from http://mavenrepo.openmrs.org/nexus/content/repositories/public was cached in the local repository, resolution will not be reattempted until the update interval of openmrs-repo has elapsed or updates are forced. Original error: Could not transfer metadata org.openmrs.maven.plugins/maven-metadata.xml from/to openmrs-repo (http://mavenrepo.openmrs.org/nexus/content/repositories/public): sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target [WARNING] Failure to transfer org.apache.maven.plugins/maven-metadata.xml from http://mavenrepo.openmrs.org/nexus/content/repositories/public was cached in the local repository, resolution will not be reattempted until the update interval of openmrs-repo has elapsed or updates are forced. Original error: Could not transfer metadata org.apache.maven.plugins/maven-metadata.xml from/to openmrs-repo (http://mavenrepo.openmrs.org/nexus/content/repositories/public): sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target [WARNING] Failure to transfer org.codehaus.mojo/maven-metadata.xml from http://mavenrepo.openmrs.org/nexus/content/repositories/public was cached in the local repository, resolution will not be reattempted until the update interval of openmrs-repo has elapsed or updates are forced. Original error: Could not transfer metadata org.codehaus.mojo/maven-metadata.xml from/to openmrs-repo (http://mavenrepo.openmrs.org/nexus/content/repositories/public): sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target [WARNING] Failure to transfer org.openmrs.maven.plugins:openmrs-sdk-maven-plugin/maven-metadata.xml from http://mavenrepo.openmrs.org/nexus/content/repositories/public was cached in the local repository, resolution will not be reattempted until the update interval of openmrs-repo has elapsed or updates are forced. Original error: Could not transfer metadata org.openmrs.maven.plugins:openmrs-sdk-maven-plugin/maven-metadata.xml from/to openmrs-repo (http://mavenrepo.openmrs.org/nexus/content/repositories/public): sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target [INFO] [INFO] — openmrs-sdk-maven-plugin:3.13.2:create-project (default-cli) @ standalone-pom —

What kind of project would you like to create?:

  1. Platform module
  2. Reference Application module
  3. Open Web App

Which one do you choose? [1/2/3]: 1

Module id uniquely identifies your module in the OpenMRS world.

It is advised to consult your module id on https://talk.openmrs.org to eliminate possible collisions.

Module id must consists of lowercase letters, must start from a letter, can contain alphanumerics and dots, e.g. webservices.rest, metadatasharing, reporting, htmlformentry.

Please specify module id (default: ‘basicexample’): basicexample

Module name is a user friendly name displayed to the user instead of the module id.

By convention it is a module id with spaces between words.

Please specify module name (default: ‘Basicexample’): Basicexample

Describe your module in a few sentences (default: ‘no description’): no description

GroupId, artifactId and version combined together identify your module in the maven repository.

By convention OpenMRS modules use ‘org.openmrs.module’ as a groupId (must follow convention for naming java packages) and the module id as an artifactId. The version should follow maven versioning convention, which in short is: major.minor.maintenance(-SNAPSHOT).

Please specify groupId (default: ‘org.openmrs.module’): org.openmrs.module

Please specify initial version (default: ‘1.0.0-SNAPSHOT’): 1.0.0-SNAPSHOT

What is the lowest version of the platform (-Dplatform) you want to support? (default: ‘1.11.6’): 1.11.6 [INFO] Archetype: openmrs-sdk-archetype-module-platform [INFO] Generating project in Batch mode [INFO] Archetype defined by properties [INFO] ---------------------------------------------------------------------------- [INFO] Using following parameters for creating project from Archetype: openmrs-sdk-archetype-module-platform:3.13.2 [INFO] ---------------------------------------------------------------------------- [INFO] Parameter: groupId, Value: org.openmrs.module [INFO] Parameter: artifactId, Value: basicexample [INFO] Parameter: version, Value: 1.0.0-SNAPSHOT [INFO] Parameter: package, Value: org.openmrs.module.basicexample [INFO] Parameter: packageInPathFormat, Value: org/openmrs/module/basicexample [INFO] Parameter: moduleClassnamePrefix, Value: Basicexample [INFO] Parameter: moduleName, Value: Basicexample [INFO] Parameter: moduleAuthor, Value: hp [INFO] Parameter: moduleDescription, Value: no description [INFO] Parameter: groupId, Value: org.openmrs.module [INFO] Parameter: version, Value: 1.0.0-SNAPSHOT [INFO] Parameter: package, Value: org.openmrs.module.basicexample [INFO] Parameter: openmrsPlatformVersion, Value: 1.11.6 [INFO] Parameter: artifactId, Value: basicexample [INFO] Parent element not overwritten in C:\Users\hp\basicexample\api\pom.xml [INFO] Parent element not overwritten in C:\Users\hp\basicexample\omod\pom.xml [INFO] project created from Archetype in dir: C:\Users\hp\basicexample [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 01:32 min [INFO] Finished at: 2019-07-05T11:53:04+03:00 [INFO] ------------------------------------------------------------------------

C:\Users\hp>mvn clean install openmrs-sdk:run -DserverId=your_server_id [INFO] Scanning for projects… [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 0.437 s [INFO] Finished at: 2019-07-05T11:57:49+03:00 [INFO] ------------------------------------------------------------------------ [ERROR] The goal you specified requires a project to execute but there is no POM in this directory (C:\Users\hp). Please verify you invoked Maven from the correct directory. -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MissingProjectException

C:\Users\hp>mvn clean install openmrs-sdk:run -DserverId=your_server_id [INFO] Scanning for projects… [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 0.777 s [INFO] Finished at: 2019-07-05T11:58:29+03:00 [INFO] ------------------------------------------------------------------------ [ERROR] The goal you specified requires a project to execute but there is no POM in this directory (C:\Users\hp). Please verify you invoked Maven from the correct directory. -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MissingProjectException

C:\Users\hp>mvn clean install openmrs-sdk:run [INFO] Scanning for projects… [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 0.436 s [INFO] Finished at: 2019-07-05T11:58:59+03:00 [INFO] ------------------------------------------------------------------------ [ERROR] The goal you specified requires a project to execute but there is no POM in this directory (C:\Users\hp). Please verify you invoked Maven from the correct directory. -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MissingProjectException

C:\Users\hp> I need help to find out if I am on the right track

Is this of help? Certificate Issues with new Maven Repo?

1 Like

@spkabugo1 Kindly try using paste bin to share the error log.

1 Like

hey @spkabugo1 here you don’t need to put the value to have default value you just need to press enter.

and you need to be in the project first do

cd basicexample

and then run the

mvn clean install openmrs-sdk:run

1 Like

hello, hope what i am about to ask is not a question for nursery kids. where do i find the provision of paste bin …

No childish question . Feel free to ask. Click on this link https://pastebin.com/ Copy your error in the white space , Click on “Create New Paste” then share the link.

1 Like

hello @jwnasambu, @dkayiwa, @vankineenitawrun thanks for the support. I now know Pastebin. this is what I have when I tried to set up my server; https://pastebin.com/WMNftm1B. thank you, good teachers, in advance

1 Like

What does this command return? mvn -v

https://pastebin.com/kYsiJ5yk. That is what i get @dkayiwa

Can you edit your environment variables to point to the new version of Java that you installed? As you can see in your paste, you are still pointing to jdk1.8.0_91

@spkabugo1 please go through this it says upgrading to Java JDK 1.8.0_152 fixed the problem, so try with a JDK version > 1.8.0_152

https://pastebin.com/VWVbnyhS. I think I should be now good to go to the next step@dkayiwa

@dkayiwa. Do i need to install Tomcat 9??

Tomcat 9 works fine.

1 Like

If you are using the SDK, you do not need to install tomcat.

1 Like

Hello, I now have great progress after making adjustments as advised, but when I was setting up my server I encountered some errors. https://pastebin.com/fxVhafXQ. Kindly assist me on this.

Entered the password you created while installing mysql for the “root” database name.

I have done a fresh installation of MySQL 5.7.26, but I am failing to create a username and password. the check option is inactive. @jwnasambu @dkayiwa what am I not doing right

Do you remember the password you created while installing mysql ? You didn’t have to install a fresh

my installation is not giving me the provision to create a username and password. i have seen the different steps on YouTube and i am not having that step coming up. could i be having a wrong set up mysql-installer-community-5.7.26.0 msi. That is the setup file am using