Installation and Setup of Infrastructure Components
Table of Contents |
---|
...
|
...
Install Java SE SDK version 6
- Download appropriate 32-bit or 64-bit Java SE SK from http://www.oracle.com/technetwork/java/javase/downloads/index.html
- Run executable, install using default options
- You can use a non-default installation directory if desired
- Control Panel → System → Advanced → Environment Variables → System Variables
- Set JAVA_HOME to Java SE SDK location
- e.g., C:\Program Files\Java\jdk1.6.0_26
- Add %JAVA_HOME%\bin to path
- In this example, was added to beginning of path
- Set JAVA_HOME to Java SE SDK location
Install Tomcat
- Download latest Tomcat using “32-bit/64-bit Windows Service Installer” from relevant download page at http://tomcat.apache.org
OpenCDS has been tested using both Apache Tomcat versions 6 and 7, and it can be built to run on either, but the public download is built for Tomcat version 6.
- Note: OpenCDS will not deploy on JBoss without making some changes to the included librari
- Accept defaults
Installation directory may be changed if desired
Set Tomcat Administrator Login to something secure
- You may even prefer to remove the administrator login if you have physical access to the server.
Control Panel → System → Advanced → Environment Variables → System Variables
Set CATALINA_HOME to, e.g., “C:\Program Files\Apache Software Foundation\Tomcat 6.0”
Add %CATALINA_HOME%\bin to Path
- In this example, was added to beginning of Path
Install OpenCDS Sample Knowledge Repository
- Download opencds-knowledge-repository-data.zip from the OpenCDS website | Members | Binary Downloads | at http://develop.opencds.org/OpenCDSDemo/latest/opencds-knowledge-repository-data.zip
- Unzip it to a location on the same machine where you will be running Tomcat.
- NOTE: you won't have to change any configuration settings if you unzip it into "C:/OpenCDS".
- NOTE: There is a configuration file named "opencds-decision-support-service-config.xml" that you will need to update if you have located the sample KR somewhere other than "C:/OpenCDS".
- This file is found inside the exploded war file at <servletContainerPath>/opencds-decision-support-service/WEB-INF/classes
- it specifies a default path of "C:/OpenCDS/opencds-knowledge-repository-data/resources_v1.1"
Install OpenCDS RunTime WAR file
- Download latest OpenCDS RunTime war file from the OpenCDS website | Members | Binary Downloads | OpenCDS11
- Rename the file to “opencds-decision-support-service.war”
- (this step is not absolutely necessary, but will make your runtime match other instructions in our documentation, and so it is probably a good idea unless you know what you are doing).
- Stop Tomcat
- Copy the opencds-decision-support-service.war file into the %CATALINA_HOME%\webapps folder
- Restart Tomcat
Test the Installation
- Open a web browser on the same machine that you installed Tomcat on, and go to
- http://localhost:8080/opencds-decision-support-service/evaluate?wsdl
- The browser should display the WSDL.
- If it is installed on a different machine, or you changed the default port to something different than 8080, make the appropriate changes to the URL above.
- To interact with the DSS, a convenient program to use for testing and demo is the oXygen XML editor (http://www.oxygenxml.com). We use the Academic/Non-Commercial version, and a free trial license is available at http://www.oxygenxml.com/register.html.
- Other tools are available, and some are open-source, such as SoapUI at http://www.soapui.org , or the Firefox addon at https://addons.mozilla.org/en-US/firefox/addon/soa-client, for those of you who want to experiment.
- You can also use the open-source MirthConnect software to test rules, as well as in a production environment, because it includes support for web services. The software can be found at http://www.mirthcorp.com/products/mirth-connect. We have some sample channels available in the Demo folder.
- If you are using oXygen, go to Tools → WSDL SOAP Analyzer → Saved SOAP request, and use the sample .wssc files available from the OpenCDS website | Members | Binary Downloads | OpenCDS11. Hitting the "Send" button will interact with the DSS. Note that a base64 converter for reading base64 payloads is available at http://ostermiller.org/calc/encode.html or http://www.opinionatedgeek.com/DotNet/Tools/Base64Encode/default.aspx
Document Version History
(Duplicated/reversed from original document. Document above has minor edits from the original version.)
...