...
- Download latest Tomcat
- Windows:
- Download “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 7.
- Note: OpenCDS will not deploy on JBoss without making some changes to the included libraries
- 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
- Linux/Mac:
- download the tar.gz package, and unpack it to the desired location.
- Set CATALINA_HOME to the location of the Tomcat folder
- export CATALINA_HOME=/path/to/tomcat
- Add CATALINA_HOME/bin to PATH
- export PATH=$PATH:$CATALINA_HOME/bin
- Windows:
OpenCDS Configuration
Externalized OpenCDS configuration options are stored in the folder:
Windows:
%HOME%\.opencds\opencds.properties
Linux/Mac:
$HOME/.opencds/opencds.properties
Code Block | ||
---|---|---|
| ||
|
Linux/Mac:
Code Block | ||
---|---|---|
| ||
|
Install OpenCDS Sample Knowledge Repository
- OpenCDS currently supports two configuration methods:
- jar on the classpath which contains the configuration files
- files on a connected filesystem
Jar-based Method
Filesystem-based Method
- A sample knowledge repository is distributed with the OpenCDS deployment file (the 'war').
- 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"
...