ODK Collect and OXD Setup

44 views
Skip to first unread message

Caesar

unread,
Oct 16, 2014, 1:22:21 AM10/16/14
to openxda...@googlegroups.com
Dear fellow users,

I am have set up openXdata from war file and and trying to get it working with ODK Collect. I have followed the steps mentioned on https://trac.openxdata.org/wiki/ODKCollect but on testing the page (http://<server_url>:443/openXdata/mpsubmit/odk/formList) , I get the page shown on the attached file. When I just login to openXdata using the URL http://<server_url>:8080/openXdata/, I am able to login to openXdata and view sample forms. Has anybody bumped onto a similar issue.

Regards,
Caesar
error_display.JPG

Raghu Mittal

unread,
Oct 16, 2014, 2:26:53 AM10/16/14
to openxdata-users
Hi Caesar,

You have specified different port numbers i.e. 443 and 8080 in the different urls. But I am assuming that this is a typo in the email and you are probably using the right url while testing.

The error that you see when you try the link in the browser may be due to SSL not being setup correctly or it needs https to be specified. Can you give something like this and try again, i.e. use https instead of http:
https://<server_url>:443/openXdata/mpsubmit/odk/formList

Regards,
Raghu


--
You received this message because you are subscribed to the Google Groups "openXdata Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openxdata-use...@googlegroups.com.
To post to this group, send email to openxda...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openxdata-users/0e661d11-c645-4825-97be-b052480d9df6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Dagmar Timler

unread,
Oct 16, 2014, 3:10:10 AM10/16/14
to openxda...@googlegroups.com
Raghu's advice is good. 

My comment is that sometimes when a browser renders XML it omits all XML tags. In that case you would see only the form names (and would need to view the source of the page to see the XML). If your form names were using a different charset, then you may very well see something like the attached screenshot and it would be working correctly!


Caesar

unread,
Oct 16, 2014, 3:47:59 AM10/16/14
to openxda...@googlegroups.com
Thanks Raghu,

Funny enough, if I use the URL as https://<server_url>/openXdata/,  I am able to login to openXdata but using http://<server_url>:443/openXdata/ brings the same error as shown in the previous screen shot. Browsing to

https://<server_url>/openXdata/mpsubmit/odk or http://<server_url>:8880/openXdata/mpsubmit/odk show a 404 error. Sorry about the previous typo I had configured the tomcat server to listen to port 8880. Could this be a certificate issue as you mentioned. I am using a self signed certificate for testing purposes before implementing this in a production environment so judged that I might need the CA certified certificate once ready to deploy project to production.

Regards,

Caesar

Caesar

unread,
Oct 16, 2014, 3:51:31 AM10/16/14
to openxda...@googlegroups.com
Thanks Dagmar,

Would then suggest/advice an SSL certificate regeneration before trying again then?

Regards,
Caesar

Dagmar Timler

unread,
Oct 16, 2014, 4:31:52 AM10/16/14
to openxda...@googlegroups.com
Personally I'd advise going without a self-signed certificate - test with the 8443 or 443 ports as described in the oXd documentation, and then when you are satisfied with the oXd ODK bridge just take the plunge and purchase a certificate. My experience with self-signed certificates has never been great - you need to manually add them to the Java keystore in order to have them automatically recognized or otherwise bypass all the nice security given with SSL. I have never tested oXd with a self-signed certificate to see how it would work with the emulator. It wouldn't work with a phone until you manually add it to the keystore.

However, having said all that, if you can't even login to the Dashboard using SSL, you may wish to check how you did your certificate creation and installation. Maybe try these instructions? https://www.sslshopper.com/article-how-to-create-a-self-signed-certificate-using-java-keytool.html

Dagmar Timler

unread,
Oct 16, 2014, 4:34:57 AM10/16/14
to openxda...@googlegroups.com
Also, please take note of the latest "Poodle" venerability with SSL. Here is some more information with the correct Tomcat configuration: https://access.redhat.com/solutions/1232233
Reply all
Reply to author
Forward
0 new messages