# Can we keep Reference Application modules (omod files) in openmrs-webapp's /WEB-INF/view/module/ folder?

**URL:** <https://talk.openmrs.org/t/can-we-keep-reference-application-modules-omod-files-in-openmrs-webapps-web-inf-view-module-folder/21612>\
**Category:** Implementing\
**Created:** [February 4, 2019, 2:26pm UTC](https://talk.openmrs.org/t/can-we-keep-reference-application-modules-omod-files-in-openmrs-webapps-web-inf-view-module-folder/21612 "2019-02-04T14:26:38Z")\
**Posts on this page:** 14\
**Page:** 3

<div class="post-metadata">

**Author:** ![vamsioptum](https://talk.openmrs.org/letter_avatar/vamsioptum/32/5_5575768a8748004e209b776fc1b2916d.png) [@vamsioptum](https://talk.openmrs.org/u/vamsioptum)\
**Post date:** [February 8, 2019, 1:40pm UTC](https://talk.openmrs.org/t/can-we-keep-reference-application-modules-omod-files-in-openmrs-webapps-web-inf-view-module-folder/21612/42 "2019-02-08T13:40:04Z")

</div>

yes @dkayiwa.

---

<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:** [February 8, 2019, 1:52pm UTC](https://talk.openmrs.org/t/can-we-keep-reference-application-modules-omod-files-in-openmrs-webapps-web-inf-view-module-folder/21612/43 "2019-02-08T13:52:03Z")

</div>

Are there any new changes in the file that you first sent?

---

<div class="post-metadata">

**Author:** ![vamsioptum](https://talk.openmrs.org/letter_avatar/vamsioptum/32/5_5575768a8748004e209b776fc1b2916d.png) [@vamsioptum](https://talk.openmrs.org/u/vamsioptum)\
**Post date:** [February 11, 2019, 7:30am UTC](https://talk.openmrs.org/t/can-we-keep-reference-application-modules-omod-files-in-openmrs-webapps-web-inf-view-module-folder/21612/44 "2019-02-11T07:30:17Z")

</div>

Hi @dkayiwa, here are the most recent logs. [openmrs-pod\_logs.txt](https://talk.openmrs.org/uploads/default/original/2X/d/d7bbf8b90f683a97629e8fbc3abc2e8f78af8b3f.txt) (59.3 KB)

[openmrs\_log.txt](https://talk.openmrs.org/uploads/default/original/2X/1/1106be9ef754f946bc505e2ff63ffffadca5e5f9.txt) (53.0 KB)

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:** [February 11, 2019, 7:47am UTC](https://talk.openmrs.org/t/can-we-keep-reference-application-modules-omod-files-in-openmrs-webapps-web-inf-view-module-folder/21612/45 "2019-02-11T07:47:02Z")

</div>

What is the name of the file from which you are getting the contents for openmrs\_log.txt? It is not the full log as i expected. It looks truncated.

---

<div class="post-metadata">

**Author:** ![vamsioptum](https://talk.openmrs.org/letter_avatar/vamsioptum/32/5_5575768a8748004e209b776fc1b2916d.png) [@vamsioptum](https://talk.openmrs.org/u/vamsioptum)\
**Post date:** [February 11, 2019, 7:50am UTC](https://talk.openmrs.org/t/can-we-keep-reference-application-modules-omod-files-in-openmrs-webapps-web-inf-view-module-folder/21612/46 "2019-02-11T07:50:40Z")

</div>

the log file name is: openmrs.log only. As upload option is not allowing .log extensions I just copied it to text file.

---

<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:** [February 11, 2019, 7:59am UTC](https://talk.openmrs.org/t/can-we-keep-reference-application-modules-omod-files-in-openmrs-webapps-web-inf-view-module-folder/21612/47 "2019-02-11T07:59:14Z")

</div>

Can you try a non snapshot but officially released version? For instance the OpenMRS Reference Application version 2.8.1?

---

<div class="post-metadata">

**Author:** ![vamsioptum](https://talk.openmrs.org/letter_avatar/vamsioptum/32/5_5575768a8748004e209b776fc1b2916d.png) [@vamsioptum](https://talk.openmrs.org/u/vamsioptum)\
**Post date:** [February 11, 2019, 8:01am UTC](https://talk.openmrs.org/t/can-we-keep-reference-application-modules-omod-files-in-openmrs-webapps-web-inf-view-module-folder/21612/48 "2019-02-11T08:01:48Z")

</div>

ok… sure… So I need to try with non snapshot version of Platform? Please confirm. I will try the same. Thanks

---

<div class="post-metadata">

**Author:** ![vamsioptum](https://talk.openmrs.org/letter_avatar/vamsioptum/32/5_5575768a8748004e209b776fc1b2916d.png) [@vamsioptum](https://talk.openmrs.org/u/vamsioptum)\
**Post date:** [February 11, 2019, 2:02pm UTC](https://talk.openmrs.org/t/can-we-keep-reference-application-modules-omod-files-in-openmrs-webapps-web-inf-view-module-folder/21612/49 "2019-02-11T14:02:14Z")

</div>

Hi @dkayiwa, As you suggested, I have tried with Platform version 2.1.4. Still facing the same issue. The app is working fine with Tomcat server. Its the issue with JBOSS EAP server.

ERROR - AbstractLoggingWriter.write(71) |2019-02-11 08:54:04,452| java.lang.IllegalStateException: JBWEB000243: Context /openmrs has already been initialized

[openmrs\_2.1.4\_logs.txt](https://talk.openmrs.org/uploads/default/original/2X/4/4345be6151741f67282c9e02e9657a0c501317e6.txt) (5.3 KB)

Could you please help to resolve the issue. 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:** [February 11, 2019, 2:15pm UTC](https://talk.openmrs.org/t/can-we-keep-reference-application-modules-omod-files-in-openmrs-webapps-web-inf-view-module-folder/21612/50 "2019-02-11T14:15:57Z")

</div>

I mean trying out the reference application version 2.8 [https://openmrs.org/download/](https://openmrs.org/download/)

---

<div class="post-metadata">

**Author:** ![vamsioptum](https://talk.openmrs.org/letter_avatar/vamsioptum/32/5_5575768a8748004e209b776fc1b2916d.png) [@vamsioptum](https://talk.openmrs.org/u/vamsioptum)\
**Post date:** [February 11, 2019, 2:28pm UTC](https://talk.openmrs.org/t/can-we-keep-reference-application-modules-omod-files-in-openmrs-webapps-web-inf-view-module-folder/21612/51 "2019-02-11T14:28:35Z")

</div>

I already tried reference application version 2.8.0 WAR but it didnt work for us as we were deploying it on JBOSS server.

---

<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:** [February 11, 2019, 2:40pm UTC](https://talk.openmrs.org/t/can-we-keep-reference-application-modules-omod-files-in-openmrs-webapps-web-inf-view-module-folder/21612/52 "2019-02-11T14:40:37Z")

</div>

What is the meaning of it didn’t work for us?

---

<div class="post-metadata">

**Author:** ![vamsioptum](https://talk.openmrs.org/letter_avatar/vamsioptum/32/5_5575768a8748004e209b776fc1b2916d.png) [@vamsioptum](https://talk.openmrs.org/u/vamsioptum)\
**Post date:** [February 12, 2019, 5:57am UTC](https://talk.openmrs.org/t/can-we-keep-reference-application-modules-omod-files-in-openmrs-webapps-web-inf-view-module-folder/21612/53 "2019-02-12T05:57:27Z")

</div>

the WAR file deployment didnt work for us because:

1. When we deploy the WAR file on Openshift Origin - JBOSS EAP server, we faced the below issue:

[Error: Invalid ‘log4jConfigLocation’ parameter: class path resource [log4j.xml] ](https://talk.openmrs.org/t/error-invalid-log4jconfiglocation-parameter-class-path-resource-log4j-xml-while-hosting-core-module-on-openshift-origin-jboss-server/21515)

1. We cannot deploy the WAR, as there is no option to restart the OSO Pod. We were not able to keep the omod files and restart the application/Pod.

Thats why we are trying with openmrs-core module through source code.

Hope you understand. Thanks

---

<div class="post-metadata">

**Author:** ![vamsioptum](https://talk.openmrs.org/letter_avatar/vamsioptum/32/5_5575768a8748004e209b776fc1b2916d.png) [@vamsioptum](https://talk.openmrs.org/u/vamsioptum)\
**Post date:** [February 12, 2019, 12:21pm UTC](https://talk.openmrs.org/t/can-we-keep-reference-application-modules-omod-files-in-openmrs-webapps-web-inf-view-module-folder/21612/54 "2019-02-12T12:21:43Z")

</div>

Hi @dkayiwa, any suggestion from your side?

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:** [February 12, 2019, 3:03pm UTC](https://talk.openmrs.org/t/can-we-keep-reference-application-modules-omod-files-in-openmrs-webapps-web-inf-view-module-folder/21612/55 "2019-02-12T15:03:27Z")

</div>

How about deploying an officially released war file, but afterwards edit the web.xml file in expanded openmrs folder?

[Previous page](https://talk.openmrs.org/t/can-we-keep-reference-application-modules-omod-files-in-openmrs-webapps-web-inf-view-module-folder/21612.md?page=2)
