Problem with configuring the servers

11 views
Skip to first unread message

Petar Naukovic

unread,
Mar 15, 2011, 4:37:31 AM3/15/11
to moca-users
Dear all,

I am having problems with configuring my own instances of the MDS and
OpenMRS servers. I have finished all of the instructions in Setup
Servers page, but the problem arises when I try to send the test
request to verify MDS / OpenMRS Connection.
Both MDS and OpenMRS are up and running, and can be accessed
separately from the browser.

By typing http://<ipaddress>/mds/json/validate/credentials/?username=admin&password=<your
OpenMRS admin password>, with the credentials that work when used
directly with OpenMRS, the communication starts, but after the initial
sync and acknowledge sent between MDS and OpenMRS, a POST message is
sent:

POST /openmrsloginServlet HTTP/1.1
Accept-Encoding: identity
Content-Length: 110
Host: 192.168.163.136:8080
Content-Type: application/x-www-form-urlencoded
Connection: close
User-Agent: Python-urllib/2.6

-and an acknowledge received form the OpenMRS, followed by a HTTP
Status 404 message:

</head>
<body>
<h1>HTTP Status 404 - /openmrsloginServlet</h1>
<p><b>type</b> Status report </p>
<p><b>message</b> <u>/openmrsloginServlet</u> </p>
<p><b>description</b> <u>The requested resource (/openmrsloginServlet)
is not available.</u> </p>
<h3>Apache Tomcat/6.0.24</h3>
</body>
</html>

I cannot find the problem, since I'm not experienced with dealing with
servers, and I hope it is a trivial one for you guys. =)

Thank you for your help, in advance!

Petar

Eric Winkler

unread,
Mar 15, 2011, 4:31:04 AM3/15/11
to moca-...@googlegroups.com
Hi Petar,
Check your mds settings.py file for the line:

OPENMRS_SERVER_URL = 'http://<your ip>/openmrs/'

You may just be missing the trailing slash. Hope that helps.
Eric

Petar Naukovic

unread,
Mar 15, 2011, 1:18:05 PM3/15/11
to moca-users
Yes, that was it!

Thanks a lot for your quick reply!

Petar
Reply all
Reply to author
Forward
0 new messages