Installing WebCenter Sites on WebLogic

Oracle WebCenter Sites is a high-performance, large-scale content management. You and your development team use Oracle WebCenter Sites to create and manage large and complex websites, sites that run businesses, and other types of sites, all of which are generically referred to as “online sites” or “websites”.

Let’s install Oracle WebCenter Sites!
First of all, we need to create and configure a database.
Using Oracle Database XE, execute:

CREATE USER csuser IDENTIFIED BY welcome1 DEFAULT TABLESPACE users TEMPORARY TABLESPACE temp;
GRANT CREATE session, CREATE table, CREATE view TO csuser;
GRANT UNLIMITED TABLESPACE TO csuser; 
COMMIT;

installing-webcenter-sites-on-weblogic1

To install Oracle WebLogic Server, use this post: Instalação do Oracle WebCenter Portal – Parte 3: Oracle WebLogic Server.

To create a domain, go to Middleware Home and execute:

Windows: wlserver_10.3/common/bin/config.cmd
Linux: ./wlserver_10.3/common/bin/config.sh

Select “Create a new WebLogic Domain” option. Click on Next twice.

installing-webcenter-sites-on-weblogic2

Set the domain name and domain path. Click on Next.

installing-webcenter-sites-on-weblogic3

Set the admin user and password. Click on Next five times.

installing-webcenter-sites-on-weblogic4

Click on Create.

installing-webcenter-sites-on-weblogic5

Click on Finish.

installing-webcenter-sites-on-weblogic6

Open the file <MIDDLEWARE_HOME>/user_projects/domains/wcs_domain/bin/setDomainEnv.cmd (setDomainEnv.sh for Linux), and change the following:

if "%JAVA_VENDOR%"=="Sun" (
  set WLS_MEM_ARGS_64BIT=-Xms512m -Xmx2048m
  set WLS_MEM_ARGS_32BIT=-Xms512m -Xmx2048m
) else (
  set WLS_MEM_ARGS_64BIT=-Xms512m -Xmx2048m
  set WLS_MEM_ARGS_32BIT=-Xms512m -Xmx2048m
)

set MEM_PERM_SIZE_64BIT=-XX:PermSize=256m
set MEM_PERM_SIZE_32BIT=-XX:PermSize=256m

set MEM_MAX_PERM_SIZE_64BIT=-XX:MaxPermSize=256m
set MEM_MAX_PERM_SIZE_32BIT=-XX:MaxPermSize=256m

Start the WebLogic Server, and go to WebLogic Server Administration Console to create a datasource. Navigate to Services | Datasources, and select New | Generic Datasources.
Set the Name to CSUSERDS, JNDI Name to csDataSource, and Database Type to Oracle. Click on Next.

installing-webcenter-sites-on-weblogic7

Select “Oracle’s Driver (Thin) for Instance connections; Versions:9.0.1 and later” option. Click on Next.

installing-webcenter-sites-on-weblogic8

Click on Next.

installing-webcenter-sites-on-weblogic9

Set Database Name to xe, Host to localhost, Port to 1521, User to csuser and Password to welcome1. Click on Next.

installing-webcenter-sites-on-weblogic10

Click on Next.

installing-webcenter-sites-on-weblogic11

Select AdminServer and click on Finish.

installing-webcenter-sites-on-weblogic12

Select CSUSERDS, and then Connection Pool tab.
Change Initial Capacity to 10 and Maximum Capacity to 100. Click on Save.

installing-webcenter-sites-on-weblogic13

Stop the WebLogic Server.

Go to Oracle website to download Oracle WebCenter Sites Release 11g R1 (11.1.1.8.0): http://www.oracle.com/technetwork/middleware/webcenter/sites/downloads/index.html.
Unzip the file downloaded, go to WebCenterSites_11.1.1.8.0/WCS_Sites, unzip the WCS_Sites.zip file and execute:

Windows: Sites/csInstall.bat
Linux: Sites/csInstall.sh

Click on Next two times.

installing-webcenter-sites-on-weblogic14

installing-webcenter-sites-on-weblogic15

Here, you can change the WebCenter Sites installation directory. Click on Next.

installing-webcenter-sites-on-weblogic16

Click on Yes to create the WebCenter Sites installation directory.

installing-webcenter-sites-on-weblogic17

Click on Next twice.

installing-webcenter-sites-on-weblogic18

installing-webcenter-sites-on-weblogic19

Select “Avisports Sample Site” option. Click on Next.

installing-webcenter-sites-on-weblogic20

Select All options and click on Next.

installing-webcenter-sites-on-weblogic21

Select “WCC Integration” option and click on Next six times.

installing-webcenter-sites-on-weblogic22

installing-webcenter-sites-on-weblogic23

installing-webcenter-sites-on-weblogic24

installing-webcenter-sites-on-weblogic25

installing-webcenter-sites-on-weblogic26

installing-webcenter-sites-on-weblogic27

Change the Hostname to localhost and Port Number to 7001. Click on Next twice.

installing-webcenter-sites-on-weblogic28

installing-webcenter-sites-on-weblogic29

Select “WebLogic 10.3.6+” option and click on Next.

installing-webcenter-sites-on-weblogic30

Change the Path to the WebLogic Application server directory to <MIDDLEWARE_HOME>/wlserver_10.3. Click on Next.

installing-webcenter-sites-on-weblogic31

Change the Domain Name to wcs_domain and Path to the manual deployment directory to <MIDDLEWARE_HOME>/user_projects/domains/wcs_domain. Click on Next six times.

installing-webcenter-sites-on-weblogic32

installing-webcenter-sites-on-weblogic33

installing-webcenter-sites-on-weblogic34

installing-webcenter-sites-on-weblogic35

installing-webcenter-sites-on-weblogic36

installing-webcenter-sites-on-weblogic37

Click on Install.

installing-webcenter-sites-on-weblogic38

When the dialog appear, don’t click on OK.
Open the file <MIDDLEWARE_HOME>/user_projects/domains/wcs_domain/bin/startWebLogic.cmd (startWebLogic.sh for Linux), and add the following: (Remember to change <MIDDLEWARE_HOME> and <WCS_INSTALL_HOME>)

## Windows ##
set JAVA_OPTIONS=-Dfile.encoding=UTF-8 -Dnet.sf.ehcache.enableShutdownHook=true -Djava.net.preferIPv4Stack=true -Djava.io.tmpdir=<MIDDLEWARE_HOME>/user_projects/domains/wcs_domain/servers/AdminServer/tmp -Djava.library.path=<CS_INSTALL_HOME>/bin %JAVA_OPTIONS%

set CLASSPATH=<WCS_INSTALL_HOME>/bin; %CLASSPATH%

set PRE_CLASSPATH=<MIDDLEWARE_HOME>/user_projects/domains/wcs_domain/CS/WEB-INF/lib/commons-lang-2.4.jar; %PRE_CLASSPATH%

## Linux ##
JAVA_OPTIONS="-Dfile.encoding=UTF-8 -Dnet.sf.ehcache.enableShutdownHook=true -Djava.net.preferIPv4Stack=true -Djava.io.tmpdir=<MIDDLEWARE_HOME>/user_projects/domains/wcs_domain/servers/AdminServer/tmp -Djava.library.path=<CS_INSTALL_HOME>/bin ${JAVA_OPTIONS}"

CLASSPATH="<WCS_INSTALL_HOME>/bin:$CLASSPATH"

PRE_CLASSPATH="<MIDDLEWARE_HOME>/user_projects/domains/wcs_domain/CS/WEB-INF/lib/commons-lang-2.4.jar:$PRE_CLASSPATH"

installing-webcenter-sites-on-weblogic39

Restart WebLogic Server and go to WebLogic Server Administration Console to install CS and CAS applications. Navigate to Deployments and click on Install. Select CS (open directory), then click on Next twice.

installing-webcenter-sites-on-weblogic40

installing-webcenter-sites-on-weblogic41

Select “I will make the deployment accessible from the following location” option. Click on Finish.

installing-webcenter-sites-on-weblogic42

Do the same to deploy the CAS application.

installing-webcenter-sites-on-weblogic43

Go to Dialog and click on OK to continue the installation.
Click on Ok to complete the installation.

installing-webcenter-sites-on-weblogic44

The installation of Oracle WebCenter Sites is completed successfully.
To access the WebCenter Sites go to http://localhost:7001/servlet

installing-webcenter-sites-on-weblogic45

Waslley Souza

Author: Waslley Souza

Consultor Oracle com foco em tecnologias Oracle Fusion Middleware e SOA. Certificado Oracle WebCenter Portal, Oracle ADF e Java.

Leave a Reply

Your email address will not be published. Required fields are marked *