Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Table of Contents
1.Introduction
2.Prerequisites
Introduction
This document describes how to quickly set up Open Content Delivery Server
(OpenCDS). The document is intended for a technical audience with basic
knowledge of Sun Solaris operating system, Oracle database server, and
either Sun Java System Application Server or BEA WebLogic Server.
Instructions in this document assume that you are using the bash shell on the
Solaris platform. If you are using another platform, representation of the
environment variables and other adjustments to the commands given might
be required.
*
Binary Package
Source Package
If you have source code from the Source Package or checked out of the SVN
repository, you need to compile the source into binary first. If you have
source code, skip the section titled Setting up From the Binary Package. If
you have the Binary Package, skip the section title Setting up From the
Source Code.
Prerequisites
o
Oracle Database version 9.2i, Enterprise Edition
If you want to set up OpenCDS from the source code, skip this section.
Download the OpenCDS Binary Package and complete the following steps to
prepare the installation for deployment:
1.
2.
When you unzip the OpenCDS Binary Package zip file, a temporary
directory is created that contains another zip file.
3.
Unzip the other zip file into the directory of your choice. This is referred to
as the OpenCDS home directory. For example,
4.
Export the environment variable CDS_HOME to be the absolute path of
the OpenCDS home directory. For example, in a bash shell on a UNIX system,
use:
export CDS_HOME=/cds-home
set CDS_HOME=C:\cds-home
5.
Copy the sample configuration file to the configuration file of your choice,
for example, $CDS_HOME/cfg/my.cfg. Your file must have a .cfg file extension
and must exist in the $CDS_HOME/cfg directory.
6.
export BEA_HOME=/opt/bea81
export WL_HOME=/opt/bea81/weblogic/server
export JAVA_HOME=/opt/j2sdk1.4.2_12
7.
Add $CDS_HOME/bin to the beginning of your PATH environment variable.
For example, in a bash shell on a UNIX system, use:
export PATH=$CDS_HOME/bin:$PATH
set PATH=%CDS_HOME%\bin;%PATH%
8.
Download ojdbc14.jar from Oracle or grab the one that came with your
Oracle installation at $ORACLE_HOME/jdbc/lib/ojdbc14.jar and place it into the
$CDS_HOME/dist/cds/lib/external directory.
If you are working with a binary package and not the source code, skip this
section.
Make a directory where you want the source code to exist. This is referred to
as your Base Directory. After you obtain the code, you will have the following
directories under your Base Directory:
*
dependencies: The directory where we keep all our third party libraries.
Read dependencies/external/readme.txt for a list of the third party libraries
used.
Obtain the latest version of the source code from the provided zip:
1.
2.
Unzip the OpenCDS Source Package zip file into your Base Directory.
For example,
3.
cd into the opencds directory under your Base Directory to find the
trunk and dependencies subdirectories.
Check out a specific version (i.e., 5.0) of the source code from the
repository:
1.
Make sure the Subversion command line tool (svn) is in your path.
2.
3.
4.
5.
Check out the latest version of the source code from the repository:
1.
2.
3.
svn checkout
4.
svn checkout
5.
1.
export CDS_HOME=/opencds-src/opencds/trunk
set CDS_HOME=C:\opencds-src\opencds\trunk
2.
export CDS_TOOLS=/opencds-src/opencds/dependencies
In a command prompt on a Windows system, use: [7]
set CDS_TOOLS=C:\opencds-src\opencds\dependencies
3.
If you used Subversion to check out the source code from the repository,
run the $CDS_HOME/prepare.sh script on a UNIX system or the %CDS_HOME
%\prepare.bat script on a Windows system.
4.
Copy the sample configuration to the configuration file of your choice, for
example, $CDS_HOME/cfg/my.cfg. Your file must have a .cfg file extension
and must exist in the $CDS_HOME/cfg directory.
5.
export BEA_HOME=/opt/bea81
export WL_HOME=/opt/bea81/weblogic/server
export JAVA_HOME=/opt/j2sdk1.4.2_12
6.
Add $CDS_HOME/bin and $CDS_HOME/tools to the beginning of your
PATH environment variable. For example, in a bash shell on a UNIX system,
use:
export PATH=$CDS_HOME/bin:$CDS_HOME/tools:$PATH
set PATH=%CDS_HOME%\bin;%CDS_HOME%\tools;%PATH%
7.
Download ojdbc14.jar from Oracle or grab the one that came with your
Oracle installation at $ORACLE_HOME/jdbc/lib/ojdbc14.jar and place it into the
$CDS_TOOLS/external/oracle/lib directory.
8.
JavaServer Pages™ (JSP™) are compiled at runtime. To compile all the JSP
files at build time, execute cdst builddist instead of cdst buildall.
The OpenCDS source is now compiled into binary and your installation is now
ready to deployed.
1.
Edit the configuration file that you created from a sample configuration
file, for example, $CDS_HOME/cfg/my.cfg. This file contains the configuration
parameters for the deployment process. Make the following changes:
1.
2.
2.
3.
1.
2.
Edit the $CDS_HOME/cfg/DBSysUser.xml file and set the password for
the database system user.
4.
Skip this section if you are not installing OpenCDS with Sun Java System
Application Server.
1.
2.
3.
When the script finishes, the broker is automatically shut down. Start the
broker again. This is done so the application server does not attempt to
create a new broker instance on the same port. Execute ./broker.sh start to
start the broker.
Note
The JMS broker is required for OpenCDS to function properly. The broker
must be started by this command prior to starting OpenCDS. To shut down
the broker use the ./broker.sh stop command from
$CDS_HOME/deployment/cds/sun/applications directory.
4.
Now that you have configured and deployed OpenCDS, you need to know
how to start and stop the server. Execute cdse startserver to start OpenCDS.
Execute cdse stopserver to stop OpenCDS.
If you deployed OpenCDS onto the Sun Java System Application Server, the
Java Messaging Service (JMS) broker needs to be started and stopped
separately from OpenCDS. The broker control script is located in the
$CDS_HOME/deployment/cds/sun/applications directory and is called
broker.sh. Before starting OpenCDS, execute ./broker.sh start to start the JMS
broker. After stopping OpenCDS, execute ./broker.sh stop to stop the JMS
broker.
After the server starts, you can access it with your web browser using the
host name and the port number that you specified in your configuration file
(i.e., my.cfg). Use the following URLs to access each of the portals:
Index Page
Subscriber Device Portal
Subscriber Portal
Vending Manager
Catalog Manager
Developer Portal
The default login for Catalog Manager and Vending Manager portals are user
name admin and password admin. You are prompted to change the password
the first time you log in. To log in to the Developer Portal or Subscriber Portal,
you must first create an account. However, before creating accounts or
making any other modifications see the Loading Sample Data section.
To quickly test drive all of the OpenCDS portals, you can load sample data
into the OpenCDS database. The sample data includes content, devices,
subscriber accounts, and a developer account. Load the sample data after
the database is initialized and OpenCDS has been started for the first time.
Do not load sample data if you have already added content, devices,
accounts, or made any other modifications to the database.
Execute cdsi sample_data to load the sample data. After loading the sample
data, the developer account rudy and subscriber accounts linda, stella and
alex are available. The passwords for all of four accounts is the same as the
user name.
[1] If using WebLogic application server, only 32bit x86 platform is supported.
[3] Though OpenCDS does not require any specific version of Linux, most of
the software on which OpenCDS depends require RedHat Enterprise or SuSE
Enterprise versions of Linux.
[4] Currently, only WebLogic Server can be used with OpenCDS on Microsoft
Windows platforms.
[5] Only SP3 is supported. SP4 and higher are incompatible with OpenCDS.
[7] On Windows, you can also set environment variables from the System
option of the control panel.