So, the problem is that in our Bahmni build of OpenMRS there is no WEB-INF/bundledOwas folder, and this leads to an uncaught exception. I don’t know if that’s actually specific to our Bahmni build, or in general, but it seems like the wrong behavior.
Uncaught Error: [$injector:unpr] Unknown provider: $$HashMapProvider <- $$HashMap <- $$animateQueue <- $animate <- $compile <- $$animateQueue
http://errors.angularjs.org/1.6.6/$injector/unpr?p0=%24%24HashMapProvider%20%3C-%20%24%24HashMap%20%3C-%20%24%24animateQueue%20%3C-%20%24animate%20%3C-%20%24compile%20%3C-%20%24%24animateQueue
at vendor.bundle.js:2
at vendor.bundle.js:2
at Object.n [as get] (vendor.bundle.js:2)
at vendor.bundle.js:2
at n (vendor.bundle.js:2)
at r (vendor.bundle.js:2)
at Object.o [as invoke] (vendor.bundle.js:2)
at vendor.bundle.js:2
at n (vendor.bundle.js:2)
at r (vendor.bundle.js:2)
Have the files been updated in the openmrs_application_data_dir/owa/openconceptlab? Did you try Ctrl+F5? (I forgot to change the version so ignore that)
I did try shift-reload. I also just now deleted the folder and restarted OpenMRS (so it got recreated), and I still get the same error:
Uncaught Error: [$injector:unpr] Unknown provider: $$HashMapProvider <- $$HashMap <- $$animateQueue <- $animate <- $compile <- $$animateQueue
http://errors.angularjs.org/1.6.7/$injector/unpr?p0=%24%24HashMapProvider%20%3C-%20%24%24HashMap%20%3C-%20%24%24animateQueue%20%3C-%20%24animate%20%3C-%20%24compile%20%3C-%20%24%24animateQueue
at vendor.bundle.js:2
at vendor.bundle.js:2
at Object.n [as get] (vendor.bundle.js:2)
at vendor.bundle.js:2
at n (vendor.bundle.js:2)
at r (vendor.bundle.js:2)
at Object.o [as invoke] (vendor.bundle.js:2)
at vendor.bundle.js:2
at n (vendor.bundle.js:2)
at r (vendor.bundle.js:2)
I tried with version 1.8.1. With that I no longer see the java.lang.IllegalArgumentException: Parameter ‘directory’ is not a directory at error, but, still seeing the below error when I opened the status page, (https://192.168.33.10/openmrs/owa/openconceptlab/index.html#/)
HTTP Status 404 - /openmrs/owa/openconceptlab/index.html
type Status report
message /openmrs/owa/openconceptlab/index.html
description The requested resource is not available.
@raff, just to make sure I tried this out in a new browser, and then I deployed an SDK server (to remove the Bahmni variable) and I get exactly the same behavior.
By the way it also says that it tries to load angular more than once. (I wonder if there’s a copy of angular in the openmrs-contrib-uicommons bundle?)
For it to work, I have followed the way suggested by @sanish i.e. changed my App Folder Path to “/var/www/html/owa/”. In my vagrant folder /var/www/html/owa/, linked openconceptlab to the openceptlab module in my local:
lrwxrwxrwx. 1 root root 46 Dec 5 16:37 openconceptlab -> /bahmni/openmrs-module-openconceptlab/owa/app/
Also, checked out version 1.2.1 (tag) of openmrs-module-openconceptlab.
With this, I am able to see openceptlab app in https://192.168.33.10/openmrs/module/owa/manage.form.
@raff and @darius As I am not able to bring up the UI of openconceptlab, trying to understand the behavior of module by posting using Postman. Created a separate thread for it.
@pramidat I just tried this in my bahmni vagrant (just downloaded a vanilla 0.90 box yesterday, and I do not have local dev folders linked yet).
I just dropped the owa module (1.8.1) and the openconceptlab module (1.2.1) in my /opt/openmrs/modules folder, restarted the openmrs service, and the OWA loads (without my having to set appBaseUrl). I still get the same error (error in the JS console) that I mentioned earlier in the thread, but not a 404.
This probably doesn’t help you, and I’m not in a position to debug anything right now, but it’s possible that things will work without needing the hack mentioned by Sanish. I’m also hoping that @binduak can share whether she had to do any special configuration.
openconceptlab.zip will be created. I couldn’t upload the openconceptlab.zip file from openmrs -> Admin -> Manage Apps. I also got Permission Denied exception as mentioned in the thread.
Copied the openconceptlab.zip file to /opt/openmrs/owa folder and extracted the zip file.
(I haven’t changed anything from openmrs -> settings under Open Web Apps Module )
The steps that @binduak. This approach worked. I could see some UI with “Subscription” button. Don’t see input elements for URL and Token. Nothing happens on hitting the Subscription button. Looks like some UI issues from OWA of openconceptlab.