Automated Error Report: ModuleException: /var/lib/tomcat6/webapps/openmrs/WEB-INF/dwr-modules.xml file doesn't exist.

Description

Version: 1.8.3 Build 24510

Summary:
org.openmrs.module.ModuleException: /var/lib/tomcat6/webapps/openmrs/WEB-INF/dwr-modules.xml file doesn't exist.

Description:
Stack trace:
org.openmrs.module.web.WebModuleUtil.startModule(WebModuleUtil.java:279)
org.openmrs.module.web.controller.ModuleListController.onSubmit(ModuleListController.java:222)
at [ignored] ...
javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
<snip>

Attachments

1

Activity

Show:

Kaweesi Joseph October 9, 2014 at 6:25 AM

If the testing procedures involved just deleting the dwr-modules.xml file and re-run the app to check whether it can be re-created, then i pass it

Daniel Kayiwa March 19, 2014 at 2:22 AM

Daniel Kayiwa March 19, 2014 at 2:00 AM

I have put comments on github.

Ujjwal Arora March 14, 2014 at 1:14 PM

Done. Added 2 unit tests such that they PASS in the edited file and FAIL in the previous configurations.
Yes, done 'mvn clean install'

Steps to Test :

//Unit Tests
1.) The first 2 unit tests are added for the purpose in WebModuleUtilTest.java

//Manually
1.) Delete the dwr-modules.xml from /webapps/openmrs/WEB-INF/dwr-modules.xml.
2.) Try to add/delete a module
3.) New dwr-modules.xml file would be created with the module info

https://github.com/openmrs/openmrs-core/pull/789

Daniel Kayiwa March 10, 2014 at 5:41 AM

Can you add a unit test for this?
Secondly, can you always run "mvn clean install" before you commit to ensure that your changes are formatted according to our conventions?

Fixed

Details

Assignee

Reporter

Complexity

Low

Designated Committer

Time tracking

20m logged1d remaining

Fix versions

Priority

Created June 4, 2012 at 8:16 AM
Updated October 28, 2014 at 3:23 AM
Resolved October 28, 2014 at 3:23 AM