Automated Error Report: ModuleException: /var/lib/tomcat6/webapps/openmrs/WEB-INF/dwr-modules.xml file doesn't exist.
Description
Attachments
Activity
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
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?
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>