# NigeriaEMR Custom Module won't start after overiding login page

**URL:** <https://talk.openmrs.org/t/nigeriaemr-custom-module-wont-start-after-overiding-login-page/20962>\
**Category:** Development\
**Tags:** development, module, referenceterm, developers\
**Created:** [December 11, 2018, 5:31pm UTC](https://talk.openmrs.org/t/nigeriaemr-custom-module-wont-start-after-overiding-login-page/20962 "2018-12-11T17:31:26Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![ggomez](https://talk.openmrs.org/user_avatar/talk.openmrs.org/ggomez/32/19309_2.png) [@ggomez](https://talk.openmrs.org/u/ggomez)\
**Post date:** [December 11, 2018, 5:31pm UTC](https://talk.openmrs.org/t/nigeriaemr-custom-module-wont-start-after-overiding-login-page/20962/1 "2018-12-11T17:31:27Z")

</div>

Hello guys! Am having difficulty starting my module. The module is a custom module use to customized our distribution. The module builds successfully but when loaded it load and display this message (Module Nigeriaemr has been loaded). Also when clicking on start to run the module it displays this message (Error while starting module nigeriaemr). Am working on overriding the reference application login page & controller with a custom login page.

Using OpenMRS Version: 2.0.6 Build 453af9

Reference App 2.7.0

Module repo: [https://github.com/gibrilg/openmrs-module-nigeriaemr/tree/gibril\_repo](https://github.com/gibrilg/openmrs-module-nigeriaemr/tree/gibril_repo)

Log file here \>\>\> [https://justpaste.it/6mcqm](https://justpaste.it/6mcqm)

I would really appreciate your feedback on this.

Regards Gibril

---

<div class="post-metadata">

**Author:** ![irenyak1](https://talk.openmrs.org/user_avatar/talk.openmrs.org/irenyak1/32/6339_2.png) [@irenyak1](https://talk.openmrs.org/u/irenyak1)\
**Post date:** [December 11, 2018, 6:19pm UTC](https://talk.openmrs.org/t/nigeriaemr-custom-module-wont-start-after-overiding-login-page/20962/2 "2018-12-11T18:19:24Z")

</div>

sorry about that, let me just tag these guys maybe they could offer some help.

@tendomart, @dkayiwa, @k.joseph, @ssmusoke

---

<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:** [December 11, 2018, 6:20pm UTC](https://talk.openmrs.org/t/nigeriaemr-custom-module-wont-start-after-overiding-login-page/20962/3 "2018-12-11T18:20:49Z")

</div>

Ensure that the openmrs api dependencies in your pom.xml files have a scope set to provided

---

<div class="post-metadata">

**Author:** ![irenyak1](https://talk.openmrs.org/user_avatar/talk.openmrs.org/irenyak1/32/6339_2.png) [@irenyak1](https://talk.openmrs.org/u/irenyak1)\
**Post date:** [December 11, 2018, 6:38pm UTC](https://talk.openmrs.org/t/nigeriaemr-custom-module-wont-start-after-overiding-login-page/20962/4 "2018-12-11T18:38:09Z")

</div>

Actually I just checked and they all have a scope set to provided unless otherwise

---

<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:** [December 11, 2018, 6:50pm UTC](https://talk.openmrs.org/t/nigeriaemr-custom-module-wont-start-after-overiding-login-page/20962/5 "2018-12-11T18:50:55Z")

</div>

@irenyak1 Are you looking at this: [https://github.com/gibrilg/openmrs-module-nigeriaemr/blob/gibril\_repo/omod/pom.xml#L56-L60](https://github.com/gibrilg/openmrs-module-nigeriaemr/blob/gibril_repo/omod/pom.xml#L56-L60) and this? [https://github.com/gibrilg/openmrs-module-nigeriaemr/blob/gibril\_repo/api/pom.xml#L45-L49](https://github.com/gibrilg/openmrs-module-nigeriaemr/blob/gibril_repo/api/pom.xml#L45-L49)

---

<div class="post-metadata">

**Author:** ![irenyak1](https://talk.openmrs.org/user_avatar/talk.openmrs.org/irenyak1/32/6339_2.png) [@irenyak1](https://talk.openmrs.org/u/irenyak1)\
**Post date:** [December 12, 2018, 7:21am UTC](https://talk.openmrs.org/t/nigeriaemr-custom-module-wont-start-after-overiding-login-page/20962/6 "2018-12-12T07:21:44Z")

</div>

No i had not looked at the pom file for the omod. I had looked at the one for the api and I thought the version part was ok as it was. Does he have to change it to scope instead? 🙂

---

<div class="post-metadata">

**Author:** ![ggomez](https://talk.openmrs.org/user_avatar/talk.openmrs.org/ggomez/32/19309_2.png) [@ggomez](https://talk.openmrs.org/u/ggomez)\
**Post date:** [December 14, 2018, 10:07am UTC](https://talk.openmrs.org/t/nigeriaemr-custom-module-wont-start-after-overiding-login-page/20962/7 "2018-12-14T10:07:30Z")

</div>

Thank you for the feedback @dkayiwa and @irenyak1

I have modifided the pom.xml files and run the project again but this time i encounter the following errors below:

[INFO] — maven-compiler-plugin:2.0.2:compile (default-compile) @ nigeriaemr-omod —

[INFO] Compiling 22 source files to /home/heisenberg/eclipse-workspace/test001/omod/target/classes

[INFO] ------------------------------------------------------------------------

[INFO] Reactor Summary:

[INFO]

[INFO] Nigeriaemr API … SUCCESS [12.498s]

[INFO] Nigeriaemr OMOD … FAILURE [7.770s]

[INFO] Nigeriaemr … SKIPPED

[INFO] ------------------------------------------------------------------------

[INFO] BUILD FAILURE

[INFO] ------------------------------------------------------------------------

[INFO] Total time: 21.047s

[INFO] Finished at: Fri Dec 14 11:03:37 UTC 2018

[INFO] Final Memory: 65M/981M

[INFO] ------------------------------------------------------------------------

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile (default-compile) on project nigeriaemr-omod: Compilation failure

[ERROR] /home/heisenberg/eclipse-workspace/test001/omod/src/main/java/org/openmrs/module/nigeriaemr/ndrUtils/Utils.java:[12,28] error: package org.openmrs.parameter does not exist

[ERROR] -\> [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/MojoFailureException](http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException)

[ERROR]

[ERROR] After correcting the problems, you can resume the build with the command

[ERROR] mvn -rf :nigeriaemr-omod

---

<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:** [December 14, 2018, 10:20am UTC](https://talk.openmrs.org/t/nigeriaemr-custom-module-wont-start-after-overiding-login-page/20962/8 "2018-12-14T10:20:06Z")

</div>

Are all your changes committed?

---

<div class="post-metadata">

**Author:** ![ggomez](https://talk.openmrs.org/user_avatar/talk.openmrs.org/ggomez/32/19309_2.png) [@ggomez](https://talk.openmrs.org/u/ggomez)\
**Post date:** [December 14, 2018, 2:02pm UTC](https://talk.openmrs.org/t/nigeriaemr-custom-module-wont-start-after-overiding-login-page/20962/9 "2018-12-14T14:02:54Z")

</div>

I have commit the changes below:

> **[gibrilg/openmrs-module-nigeriaemr](https://github.com/gibrilg/openmrs-module-nigeriaemr/tree/gibril)**
>
> This is custom implementation module of the OpenMRS EMR for Nigeria - gibrilg/openmrs-module-nigeriaemr

---

<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:** [December 19, 2018, 11:04am UTC](https://talk.openmrs.org/t/nigeriaemr-custom-module-wont-start-after-overiding-login-page/20962/10 "2018-12-19T11:04:30Z")

</div>

Did you fix this?

---

<div class="post-metadata">

**Author:** ![ggomez](https://talk.openmrs.org/user_avatar/talk.openmrs.org/ggomez/32/19309_2.png) [@ggomez](https://talk.openmrs.org/u/ggomez)\
**Post date:** [December 20, 2018, 2:25pm UTC](https://talk.openmrs.org/t/nigeriaemr-custom-module-wont-start-after-overiding-login-page/20962/11 "2018-12-20T14:25:34Z")

</div>

@dkayiwa No not yet fixed, i have sent the committed version on my previous reply.

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:** [December 20, 2018, 5:33pm UTC](https://talk.openmrs.org/t/nigeriaemr-custom-module-wont-start-after-overiding-login-page/20962/12 "2018-12-20T17:33:34Z")

</div>

The version here: [https://github.com/gibrilg/openmrs-module-nigeriaemr/blob/gibril/pom.xml#L13](https://github.com/gibrilg/openmrs-module-nigeriaemr/blob/gibril/pom.xml#L13) should be 1.0.0-SNAPSHOT

Also get rid of this: [https://github.com/gibrilg/openmrs-module-nigeriaemr/blob/gibril/pom.xml#L5-L9](https://github.com/gibrilg/openmrs-module-nigeriaemr/blob/gibril/pom.xml#L5-L9)
