webcenter_sites_112c
webcenter_sites_112c
October 2012
Oracle® WebCenter Sites: Installing on Apache Tomcat Application Server, 11g Release 1 (11.1.1) Bundled
Patch 1
This software and related documentation are provided under a license agreement containing restrictions on
use and disclosure and are protected by intellectual property laws. Except as expressly permitted in your
license agreement or allowed by law, you may not use, copy, reproduce, translate, broadcast, modify,
license, transmit, distribute, exhibit, perform, publish, or display any part, in any form, or by any means.
Reverse engineering, disassembly, or decompilation of this software, unless required by law for
interoperability, is prohibited.
The information contained herein is subject to change without notice and is not warranted to be error-free. If
you find any errors, please report them to us in writing.
If this is software or related documentation that is delivered to the U.S. Government or anyone licensing it on
behalf of the U.S. Government, the following notice is applicable:
U.S. GOVERNMENT RIGHTS Programs, software, databases, and related documentation and technical
data delivered to U.S. Government customers are "commercial computer software" or "commercial technical
data" pursuant to the applicable Federal Acquisition Regulation and agency-specific supplemental
regulations. As such, the use, duplication, disclosure, modification, and adaptation shall be subject to the
restrictions and license terms set forth in the applicable Government contract, and, to the extent applicable
by the terms of the Government contract, the additional rights set forth in FAR 52.227-19, Commercial
Computer Software License (December 2007). Oracle America, Inc., 500 Oracle Parkway, Redwood City,
CA 94065.
This software or hardware is developed for general use in a variety of information management applications.
It is not developed or intended for use in any inherently dangerous applications, including applications that
may create a risk of personal injury. If you use this software or hardware in dangerous applications, then you
shall be responsible to take all appropriate fail-safe, backup, redundancy, and other measures to ensure its
safe use. Oracle Corporation and its affiliates disclaim any liability for any damages caused by use of this
software or hardware in dangerous applications.
Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of
their respective owners.
Intel and Intel Xeon are trademarks or registered trademarks of Intel Corporation. All SPARC trademarks are
used under license and are trademarks or registered trademarks of SPARC International, Inc. AMD,
Opteron, the AMD logo, and the AMD Opteron logo are trademarks or registered trademarks of Advanced
Micro Devices. UNIX is a registered trademark of The Open Group.
This software or hardware and documentation may provide access to or information on content, products,
and services from third parties. Oracle Corporation and its affiliates are not responsible for and expressly
disclaim all warranties of any kind with respect to third-party content, products, and services. Oracle
Corporation and its affiliates will not be responsible for any loss, costs, or damages incurred due to your
access to or use of third-party content, products, or services.
3
Table of
Contents
1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .7
How This Guide Is Organized . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
Before You Install Oracle WebCenter Sites . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
Installation Quick Reference . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Paths and Directories Used in This Guide. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Part 1. Database
2 Setting Up a Database . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
This guide describes the process of installing Oracle WebCenter Sites on Apache Tomcat
Application Server, connecting to a supported database of your choice. This includes
instructions for installing WebCenter Sites in single-member and vertically clustered
environments.
Applications discussed in this guide are former FatWire products. Naming conventions are
the following:
• Oracle WebCenter Sites is the current name of the application previously known as
FatWire Content Server. In this guide, Oracle WebCenter Sites is also called
WebCenter Sites.
• Oracle WebCenter Sites: Web Experience Management Framework is the current
name of the environment previously known as FatWire Web Experience Management
Framework. In this guide, Oracle WebCenter Sites: Web Experience Management
Framework is also called Web Experience Management Framework, or
WEM Framework.
Audience
This guide is for installation engineers and anyone else who has experience installing and
configuring databases, web servers, and application servers.
Related Documents
For more information, see the following documents:
• Oracle WebCenter Sites: Configuring Supporting Software
• Oracle WebCenter Sites: Integrating with LDAP
• Oracle WebCenter Sites Administrator’s Guide for the WEM Framework
• Oracle WebCenter Sites Administrator’s Guide
• Oracle WebCenter Sites Developer’s Guide
Conventions
The following text conventions are used in this guide:
• Boldface type indicates graphical user interface elements that you select.
• Italic type indicates book titles, emphasis, or variables for which you supply particular
values.
• Monospace type indicates file names, URLs, sample code, or text that appears on the
screen.
• Monospace bold type indicates a command.
Third-Party Libraries
Oracle WebCenter Sites and its applications include third-party libraries. For additional
information, see Oracle WebCenter Sites 11gR1 Bundled Patch 1: Third-Party Licenses.
Chapter 1
Introduction
This chapter provides information that will help you prepare for the WebCenter Sites
installation. It contains the following sections:
• How This Guide Is Organized
• Before You Install Oracle WebCenter Sites
• Installation Quick Reference
• Paths and Directories Used in This Guide
• You will run the WebCenter Sites installer on all systems in your environment. There
are two system types: content management or development (whose installation
processes are identical) and delivery. Content management systems and development
systems run in the same mode but are used for different purposes.
Note
• The system type cannot be changed once you select the type and click
Next (GUI installation) or start running the silent installer.
• The installation process does not install user interfaces on
delivery systems, except for a limited version of the WebCenter Sites
Admin interface to enable the management of select features.
• The names of the systems in your WebCenter Sites environment
might differ from the names used in this document. Typically, the
content management system is also called “staging,” and the delivery
system is also called “production.”
• Remove older versions of the Java Runtime Environment from the CLASSPATH and
PATH environment variables.
• All installations of WebCenter Sites and Satellite Server must use the same JVM time
zone. We recommend setting the JVM time zone to UTC (GMT) to help standardize
the time stamps of distributed data. For example, if content is published from Los
Angeles to New York and both servers run on local time, the content publication times
differ by three hours. Setting both servers to UTC (GMT) alleviates the ambiguity.
Note that log files will report data in UTC (GMT) time.
Note
When setting up a Tomcat instance, keep in mind the following:
• If you plan to create a clustered environment, you will repeat this step to
create a new instance of Tomcat for each cluster member. Before creating
several Tomcat instances, however, it is best to create one instance (as
done in this guide), install WebCenter Sites, and verify that it is functional.
• If you plan to cluster CAS, refer to the instructions in Oracle WebCenter
Sites: Configuring Supporting Software.
3. If you are already running one or more instances of Tomcat on your system (regardless
of the application they are serving), or if you are planning to set up a WebCenter Sites
vertical cluster, ensure that each Tomcat instance runs on a unique port number. For
instructions, see “Setting Up Multiple Instances of Tomcat to Run Simultaneously,”
on page 24.
4. If you plan on running a single instance over SSL, complete the steps in “Configuring
Tomcat for SSL,” on page 25.
2. Install and deploy WebCenter Sites by running the GUI installer or installing silently.
For instructions, see “Running the GUI Installer,” on page 37 or “Installing Silently,”
on page 39.
3. Complete the WebCenter Sites installation by performing the following steps:
a. If you installed WebCenter Sites on Unix, set the permissions for WebCenter Sites
binaries by following the steps in “Setting File Permissions (Unix Only),” on
page 41.
b. WebCenter Sites contains a modified version of the Microsoft XML Parser
(MSXML.jar in the WEB-INF/lib directory). If a different version of the Parser
is referenced in the CLASSPATH environment variable, you must change the path
to refer to the version used by WebCenter Sites; otherwise, WebCenter Sites will
fail when parsing XML. For information, see “Loading the XML Parser,” on
page 41.
c. Add the WebCenter Sites binaries directory to your library path variable as
explained in “Adding the WebCenter Sites Binaries Directory to the Library Path
Variable,” on page 41.
d. Verify the WebCenter Sites installation by logging in to Oracle WebCenter Sites
as the general administrator and accessing the WebCenter Sites Admin interface
and Contributor interface. For instructions, see “Verifying the WebCenter Sites
Installation,” on page 42.
e. If you wish to replace CAS with Oracle Access Manager (OAM), follow the
instructions in Oracle WebCenter Sites: Configuring Supporting Software.
f. If you want to perform LDAP integration, follow the steps in “Integrating with
LDAP (Optional),” on page 46. For detailed instructions about installing and
configuring LDAP servers, see Oracle WebCenter Sites: Configuring Supporting
Software.
g. If you are creating a clustered system, follow the instructions in “Setting Up a
WebCenter Sites Cluster (Optional),” on page 46.
h. If you are clustering CAS, follow the instructions in Oracle WebCenter Sites:
Configuring Supporting Software.
i. If you need to redeploy CAS, refer to the instructions in Oracle WebCenter Sites:
Configuring Supporting Software.
j. Once the entire installation is completed and verified, set up WebCenter Sites for
its business purpose. For instructions, see the Oracle WebCenter Sites
Administrator’s Guide and the Oracle WebCenter Sites Developer’s Guide.
Part 1
Database
This part contains a short chapter summarizing the databases that WebCenter Sites uses.
Instructions on creating and configuring the databases are given in Oracle WebCenter
Sites: Configuring Supporting Software.
This part contains the following chapter:
• Chapter 2, “Setting Up a Database”
Chapter 2
Setting Up a Database
Part 2
Application Server
This part contains information about installing and configuring the Tomcat Application
Server as well as integrating Tomcat with Apache Web Server.
This part contains the following chapter:
• Chapter 3, “Installing and Configuring Tomcat”
Chapter 3
The chapter shows you how to install and configure Tomcat Application Server for
WebCenter Sites, for running over SSL, and for simultaneously running multiple instances
of Tomcat.
This is not an exhaustive chapter, as its covers the installation of Tomcat Application
Server only so far as needed to install and run WebCenter Sites. For more extensive
documentation on the installation process and best practices, see the documentation on the
Apache Tomcat website.
This chapter contains the following sections:
• Start/Stop Commands
• Installing Tomcat
• Configuring Tomcat
Start/Stop Commands
This section lists commands for starting and stopping Tomcat instances.
Note
All commands require that CATALINA_HOME and JAVA_HOME are set to the proper
directories.
Action Command
$CATALINA_HOME/bin/shutdown.sh -force
9. After you have successfully installed Tomcat, continue with the next section,
“Configuring Tomcat.”
URL jdbc:jtds:sqlserver://
<server>:<dbport>/<dbname>
Ex:
jdbc:jtds:sqlserver://
127.0.0.1:1433/contentDB
URL jdbc:db2://<hostname>:<dbport>/
<dbname>
Ex.
jdbc:db2://127.0.0.1:50001/
contentDB
URL jdbc:oracle:thin:@//
<hostname>:1521/<dbname>
Ex.
jdbc:oracle:thin:@//
127.0.0.1:1521/
contentDB
Note
If you are using an Oracle database and require text attributes greater than 2000
characters, you will have to set cc.bigtext to CLOB. You will set cc.bigtext to
CLOB when you run the WebCenter Sites installer (as explained in “Installation
Procedures,” on page 36.)
Note
Sample configuration for an Oracle Database:
<Context path="/cs" docBase="cs" reloadable="true"
crossContext="true">
<Resource name="csDataSource" auth="Container"
type="javax.sql.DataSource"
maxActive="100"
maxIdle="30"
username="csuser"
password="password"
driverClassName="oracle.jdbc.driver.OracleDriv
er"
url="jdbc:oracle:thin:@//127.0.0.1:1521/
contentDB"/>
</Context>
Note
If the classpath and library path are not set properly, the CAS web
application will not start and the System Tools node in the Admin tab of
the WebCenter Sites Admin interface will have reduced functionality.
Note
This section applies only to single-server WebCenter Sites installations.
1. Generate a certificate:
keytool -genkey -alias tomcat -keyalg RSA –keystore
<path_to_$CATALINA_HOME>/keys/.keystore
a. Set the -keystore parameter to the location where you want the generated keys
to be stored.
b. When prompted for the keystore password, you may use your own password, or
the default “changeit.” If a custom password is entered, a value in the
server.xml file will need to be changed (as explained in step 2).
c. Enter your first and last name, name of organization, city, state, and country code
when prompted, then click Yes to confirm.
d. At the next prompt, “Enter key password for <tomcat> (RETURN if
same as keystore password),” press Enter, as the key password must be the
same as the keystore password.
2. Edit $CATALINA_HOME/conf/server.xml, uncomment the SSL section, and add
the following attributes to the SSL connector:
- keystoreType="JKS"
This attribute is set to JKS for “Java Keystore” (the format produced by Java’s
keytool).
- keystoreFile="<path_to_$CATALINA_HOME>/keys/.keystore"
This attribute is set to the path where the .keystore file was created and the
same path used in step 1.
- keystorePass="<new_password>"
This attribute is needed only if the keystore password used in step 1 is not
“changeit”, and should be set to the custom password used.
a. If the redirectPort values in the <Connector> tags are not already set to
8443, change them now.
3. Point your browser to https://<hostname>:8443/test/tomcat.gif.
If your system works correctly, you will be prompted to accept the certificate. When
you accept the certificate, the Tomcat image is displayed.
4. For the next step, see the “Installation Quick Reference,” on page 9.
Part 3
Web Server
This part shows you how to install and configure Apache Web Server.
This part contains the following chapter:
• Chapter 4, “Integrating with Apache Web Server”
Chapter 4
Integrating with Apache Web Server
The chapter shows you how to install Apache Web Server 2.2.x and then integrate it with
the Tomcat Application Server. The steps in this chapter are required if you wish to
integrate Tomcat with Apache Web Server or to create a vertical cluster that will be load
balanced through Apache Web Server.
This chapter contains the following section:
• Installing and Integrating Apache Web Server 2.2.x
<Proxy balancer://cluster>
BalancerMember ajp://<host>:<ajp_port> loadfactor=1
route=jvm1
</Proxy>
Part 4
This part shows you how to install WebCenter Sites. It contains the following chapter:
• Chapter 5, “Installing and Configuring Oracle WebCenter Sites”
Chapter 5
Note
If you need to change the type of database you have specified during the
installation, you must delete the installed WebCenter Sites file structure and
restart the installation.
• In the second stage, the installer populates the database with the tables and data
required for WebCenter Sites to function. If the second stage fails, you must drop the
database tables, undeploy the WebCenter Sites application, delete the WebCenter Sites
file structure, and re-install WebCenter Sites.
Installation Procedures
Note
The WebCenter Sites installer includes the installation of CAS. By default, CAS
will be installed on the primary cluster member.
6. Halfway through the installation, after the WebCenter Sites and CAS applications are
deployed, the GUI installer displays the “Installation Actions” window, which lists the
steps you must perform to complete the installation.
If necessary, deploy the WebCenter Sites and CAS web applications. Do the following
before continuing with the installation process:
a. Edit the cas-cache.xml, cs-cache.xml, ss-cache.xml, and linked-
cache.xml files (located in the WebCenter Sites deployed directory under the
WEB-INF/classes folder). Ensure that the following fields are unique for each
cache type:
- multicastGroupAddress
- multicastGroupPort
- timeToLive
Note
When setting up a cluster, ensure that each corresponding file has identical
values across the cluster members. Edit the timeToLive field to control the
propagation of multicast packets. The following is a list of possible options:
• 1- (multicast packets restricted to the same subnet)
• 32- (multicast packets restricted to the same site)
• 64- (multicast packets restricted to the same region)
• 128- (multicast packets restricted to the same continent)
• 255- (multicast packets are unrestricted)
Note
When setting up a CAS cluster, ensure that each cluster member has
identical values for the following fields:
• ClusterName
• mcast addr
• mcast port
• ip_ttl (set this value to 1 or 32 depending on your network)
For more details on setting up a CAS cluster, see Oracle WebCenter Sites:
Configuring Supporting Software.
c. If you are using an Oracle database and require text attributes greater than 2000
characters set the cc.bigtext property to CLOB:
1) Open the Property Editor by clicking the Property Editor button.
2) In the Property Editor, open the futuretense.ini file.
3) Click the Database tab.
4) Locate the cc.bigtext property and set its value to CLOB.
5) Save your changes and close the Property Editor.
7. When the installation completes successfully, continue with “Post-Installation Steps,”
on page 41.
Installing Silently
To install WebCenter Sites silently:
1. Ensure you have completed Steps I – IV.1 in the “Installation Quick Reference,” on
page 9.
2. Extract the WebCenter Sites installer archive into a temporary directory.
3. The Misc/silentinstaller folder of the temporary directory contains sample
omii.ini files that you can use for your silent installation.
- If you are installing a content management or development system, use the
generic_omii.ini file.
- If you are installing a delivery system, use the delivery_omii.ini file.
a. Edit the file for your type of installation by verifying the default values and
entering additional values as required. Refer to the comments in the file for
guidance.
b. Save the file and copy it to a folder outside <cs_install_dir>.
4. If you are installing a delivery system, you must set unique passwords for the
fwadmin and ContentServer/SatelliteServer users:
a. Open the cscore.xml file in the ContentServer folder of the temporary
directory.
b. Set passwords in the following section:
<IF COND=“Variables.bShowInstallTypeDialog=false”>
<THEN>
<DIALOGACTION>
<SETVARIABLE NAME=“passwordVar” VALUE=“ ”/>
<SETVARIABLE NAME=“passwordAdminVar” VALUE=“ ”/>
</DIALOGACTION>
</THEN>
</IF>
1) Set the password for the fwadmin user in the VALUE field following
NAME=“passwordVar”.
2) Set the password for the ContentServer/SatteliteServer user in the
VALUE field following NAME=“passwordAdminVar”.
c. Save and close the file.
5. Edit the install.ini file in the root folder of the temporary directory:
a. Set the nodisplay property to true.
b. Uncomment the loadfile property and set it to the path and name of the
omii.ini file from step 3b.
Note
Verify that you have correctly specified the file system path. For
example, for Windows:
CSInstallDirectory=C\:/csinstall
- or -
c\:\\install
Post-Installation Steps
When the installation process completes successfully, perform the steps in this section, as
required for your configuration:
A.Setting File Permissions (Unix Only)
B.Loading the XML Parser
C.Adding the WebCenter Sites Binaries Directory to the Library Path Variable
D.Verifying the WebCenter Sites Installation
E.Integrating Oracle Access Manager (OAM) with WebCenter Sites (Optional)
F.Integrating with LDAP (Optional)
G.Setting Up a WebCenter Sites Cluster (Optional)
H.Setting Up a CAS Cluster (Optional)
I.Redeploying CAS (Optional)
J.Setting Up WebCenter Sites for Its Business Purpose
Note
If the classpath and library path are not set properly, the System Tools node in the
Admin tab of the WebCenter Sites Admin interface will have reduced
functionality and CAS will not start.
In order for the ContentServer component to function in WebCenter Sites, you must add
the WebCenter Sites binaries directory, <cs_install_dir>/bin, to your library path
variable as follows:
• For HP-UX:
Add <cs_install_dir>/bin to SHLIB_PATH.
Note
In the WebCenter Sites log file, the following message indicates that the correct
libraries are not found in the library path:
“UnsatisfiedLinkError caught: Content Server is unable to gather/display system
information. Ensure that java.library.path (or LD_LIBRARY_PATH) is
pointed to CSInstallDirectory/bin”
In such cases, set -Djava.library.path=<cs_install_dir>/bin for the
application server.
The default WebCenter Sites log file (sites.log) is created during the
installation process in the <cs_install_dir>/logs directory.
WEM Admin
5. Switch to the WebCenter Sites Admin interface by navigating to the applications bar
and selecting the icon for the WebCenter Sites Admin interface:
Admin Applications bar
The WebCenter Sites Admin interface (on AdminSite) is displayed. Only system
administration functionality is available.
Note
The WebCenter Sites Contributor interface is not associated with AdminSite. If
the avisports and FirstSite II sample sites are installed, you can switch to either
one of these sample sites to access the Contributor interface. If no sample sites
are installed, you will have to access the WEM Admin interface (see step 4 on
page 43), create a site, create users, and then assign the users to the site. The
Contributor interface is automatically assigned to the site. (For instructions, see
the Oracle WebCenter Sites Administrator’s Guide for the Web Experience
Management Framework.) Then continue with this step.
a. Navigate to the applications bar. In the site selection drop-down menu, select a
site other than AdminSite.
Site selection drop-down menu
b. Since this is the first time you are accessing the selected site, the following screen
is displayed. Select the icon for the Contributor interface.
Contributor
(Upon subsequent access, WebCenter Sites opens the application you last
accessed for the site you selected.)
The Contributor interface on the site to which you are logged in is displayed:
WebCenter Sites is now ready to be configured. Follow the steps in the rest of this
chapter.
Note
If you have configured LDAP for the primary cluster member, make sure to run
the configureLDAP.sh for all secondary cluster members.
Note
If you are clustering CAS, you will have to manually redeploy all secondary CAS
cluster members. For instructions, see Oracle WebCenter Sites: Configuring
Supporting Software.
expireSessionsOnShutdown="false"
notifyListenersOnReplication="true"/>
<Channel
className="org.apache.catalina.tribes.group.GroupChannel"
>
<Membership
className="org.apache.catalina.tribes.membership.Mcast
Service"
address="228.0.0.4"
port="45564"
frequency="500"
dropTime="3000"/>
<Receiver
className="org.apache.catalina.tribes.transport.nio.Ni
oReceiver"
address="auto"
port="4180"
autoBind="100"
selectorTimeout="5000"
maxThreads="6"/>
<Sender
className="org.apache.catalina.tribes.transport.Replic
ationTransmitter">
<Transport
className="org.apache.catalina.tribes.transport.nio
.PooledParallelSender"/>
</Sender>
<Interceptor
className="org.apache.catalina.tribes.group.intercepto
rs.TcpFailureDetector"/>
<Interceptor
className="org.apache.catalina.tribes.group.intercepto
rs.MessageDispatch15Interceptor"/>
</Channel>
<Valve className="org.apache.catalina.ha.tcp.ReplicationValve"
filter=""/>
<Valve
className="org.apache.catalina.ha.session.JvmRouteBinderV
alve"/>
<Deployer
className="org.apache.catalina.ha.deploy.FarmWarDeployer"
tempDir="/tmp/war-temp/"
deployDir="/tmp/war-deploy/"
watchDir="/tmp/war-listen/"
watchEnabled="false"/>
<ClusterListener
className="org.apache.catalina.ha.session.JvmRouteSession
IDBinderListener"/>
<ClusterListener
className="org.apache.catalina.ha.session.ClusterSessionL
istener"/>
</Cluster>
b. Check the following:
- All Tomcat instances belonging to the same cluster have the same values for
the mcastAddr and mcastPort in the Membership tag.
Note
Each member can be given any node name as long as the names are unique
across members.
2. Open the httpd.conf file and add the following to the “Main” server configuration
section:
<Location /balancer-manager>
SetHandler balancer-manager
Order Deny,Allow
Deny from all
</Location>
<Proxy balancer://cluster>
BalancerMember ajp://<tomcat_1>:<ajp_port_tomcat1>
loadfactor=1 route=<jvmroute_of_tomcat_1>
BalancerMember ajp://<tomcat_2>:<ajp_port_tomcat2>
loadfactor=1 route=<jvmroute_of_tomcat_2>
ProxySet stickysession=JSESSIONID
</Proxy>