Please join your peers on either March 26 (8pm GMT) or March 28 (8am GMT) to watch as user extraordinaire and forum legend @"lindsay.stevens" demonstrates OpenClinica Insight.

See preview and register at

Insight makes it easy to ask questions of ALL of your clinical and operational data and visualize answers via interactive reports and dashboards. The idea is simple, but the results are powerful: ask your questions, choose your visualizations, then return often for updated, interactive results that link you to all of the underlying data.

Install Web Services on 3.11 VM Image


I have been trying to install the Web Services on to the VM image that can be downloaded from the 'Download Latest OpenClinica Release'. Having followed the installation instructions I cannot get the Web Services to work; I get a blank page when I go to http://localhost:8080/OpenClinica-ws. I have edited the database variables in file in webapps/OpenClinica-ws/WEB-INF/classes so they match the equivalent file in webapps/OpenClinica/WEB-INF/classes, this does not seem to have resolved the issue.

Has anyone successfully installed the Web Services on the VM Image supplied by OpenClinica, or have any advice?

Many thanks


  • toskriptoskrip Posts: 253 ✭✭

    in newer versions of OpenClinica and OpenClinica-ws the config files have been actually moved from webapps directly under tomcat home directory. So that they can be preserved during app redeployment or upgrade (that is normally touching webapp folder). This means that after first deployment you should see (openclinica.config,, openclinica-ws.config, folder directly under tomcat home and you should modify files in these config folders.


  • dvmurraydvmurray Posts: 14
    Hi Tomas

    Thank you for the advice. I have updated the files within the tomcat directory /usr/share/tomcat, unfortunately I still get a blank screen when I go to http://localhost:8080/openclinica-ws. However, I did notice that the directory did appear after the first deployment.

    Thinking I may have corrupted the installation during my initial editing of the config files, I restored the server to a previous state, and reinstalled the web services. Before the testing the web services I noticed the and openclinica-ws.config directories did not exist; I then tested the web services, which failed but did create the directory. I edited the config file in, and retested the web services, unfortunately they still do not work. Any thoughts what might be cause?

    My knowledge of tomcat is limited but I understand moving the config files out of the webapps directory is good idea, as you mention it makes upgrading the application easier. However, I never had a problems installing previous versions of OC and web services. Anyway I'll keep persevering and will update once I have resolved the problem.

    Best wishes

  • dvmurraydvmurray Posts: 14
    Apologies for the late response.

    I now have web services working on the VM image; the file that is included with the OpenClinica-ws.war is not properly configured to work with the VM.

    For web services to work in the VM image you should stop tomcat and replace the files in the /usr/share/tomcat/openclinica-ws.config/ and /usr/share/tomcat/webapps/OpenClinica-ws/WEB-INF/classes/ directories with the attached version. You should also issue the command "chown -R tomcat:tomcat /usr/share/tomcat/" to make sure that ownership of the config files is correct. You should now be able to start tomcat and access web services.

    Please note this is for OC Community 3.11 VM image. The VM image for OC 3.12 includes web services.

    Best wishes
Sign In or Register to comment.