Fri 27 Jul 2012
Installing WebCenter Sites 11gR1 on Mac OS X with CSDT
Posted by tony.field under Technology , FatWire Content Server , Oracle WebCenter Sites[11] Comments
The following instructions are some great cheat sheet instructions for getting OWCS 11gR1 up and running on a Mac. I use Tomcat & HSQLDB. Installation works perfectly fine.
These instructions should suffice for setting up a complete installation of Oracle WebCenter Sites 11gR1 on Mac OS X Lion. It also includes the steps required to configure CSDT through Eclipse.
It is assumed that nothing is installed at all - no database, application
server, or even Eclipse.
Download the scripts and instructions here. (right-click & “save as” on a PC)
SET UP HOME DIRECTORIES
mkdir /Users/tfield/Metastratus/OWCS11gR1/
mkdir /Users/tfield/Metastratus/OWCS11gR1/home
mkdir /Users/tfield/Metastratus/OWCS11gR1/shared
mkdir /Users/tfield/Metastratus/OWCS11gR1/catalina_base
mkdir /Users/tfield/Metastratus/OWCS11gR1/catalina_base/bin
mkdir /Users/tfield/Metastratus/OWCS11gR1/catalina_base/conf
mkdir /Users/tfield/Metastratus/OWCS11gR1/catalina_base/logs
mkdir /Users/tfield/Metastratus/OWCS11gR1/catalina_base/webapps
mkdir /Users/tfield/Metastratus/OWCS11gR1/catalina_base/work
mkdir /Users/tfield/Metastratus/OWCS11gR1/db
mkdir /Users/tfield/Metastratus/OWCS11gR1/installer
mkdir /Users/tfield/Metastratus/OWCS11gR1/workspace
CREATING DATABASE
Download from http://sourceforge.net/projects/hsqldb/files/hsqldb/hsqldb_1_8_0/
sudo mkdir /usr/local/hsqldb
sudo cp ~/Downloads/hsqldb.jar /usr/local/hsqldb/
cd /Users/tfield/Metastratus/OWCS11gR1/db
vi start-db.sh
chmod +x *.sh
cat start-db.sh
#!/bin/sh
java -cp /usr/local/hsqldb/hsqldb.jar org.hsqldb.Server -database.0 file:csdb -dbname.0 csdb
./start-db.sh
...
INSTALLING TOMCAT
sudo mkdir /usr/local/apache-tomcat-6.0.35
sudo ln -s /usr/local/apache-tomcat-6.0.35 /usr/local/apache-tomcat
cd /usr/local/apache-tomcat-6.0.35/
sudo mv ~/Downloads/apache-tomcat-6.0.35.tar .
sudo tar -xf apache-tomcat-6.0.35.tar
sudo rm apache-tomcat-6.0.35.tar
sudo mv apache-tomcat-6.0.35/* .
sudo rmdir apache-tomcat-6.0.35
DEPLOYING DB DRIVER
sudo cp /usr/local/hsqldb/hsqldb.jar /usr/local/apache-tomcat/lib/
SET UP TOMCAT CONFIG AND CONTROL SCRIPTS
See attached startup.sh, shutdown.sh, catalina.sh for customizations
relating to setting environment params, classpath, etc.
cd /Users/tfield/Metastratus/OWCS11gR1/catalina_base/bin
sudo cp -R /usr/local/apache-tomcat/conf/* /Users/tfield/Metastratus/OWCS11gR1/catalina_base/conf/
sudo chown tfield /Users/tfield/Metastratus/OWCS11gR1/catalina_base/conf/*
sudo cp /usr/local/apache-tomcat/bin/startup.sh /Users/tfield/Metastratus/OWCS11gR1/catalina_base/bin/
sudo cp /usr/local/apache-tomcat/bin/shutdown.sh /Users/tfield/Metastratus/OWCS11gR1/catalina_base/bin/
sudo chown tfield /Users/tfield/Metastratus/OWCS11gR1/catalina_base/bin/*
cd /Users/tfield/Metastratus/OWCS11gR1/catalina_base/bin
cp /usr/local/apache-tomcat/bin/catalina.sh .
cp /usr/local/apache-tomcat/bin/setclasspath.sh .
vi shutdown.sh
vi startup.sh
vi catalina.sh
chmod +x *.sh
CONFIGURE DATASOURCE
See attached server.xml
vi /Users/tfield/Metastratus/catalina_base/conf/server.xml
START TOMCAT
./startup.sh
COPY OWCS INSTALLER TO A HANDY LOCATION
cd /Users/tfield/Metastratus/OWCS11gR1/installer
mv ~/Downloads/WCSSites11 .
cd WCSSites11/ContentServer
chmod +x *.sh
vi cscore.xml
- Add “Mac OS X64″ to the list of platforms that can run the Tomcat package in cscore.xml (line ~526)
- Un-comment HSQLDB from the TOMCAT package (line ~1906)
RUN INSTALLER
./csInstall.sh
Installation Directory : /Users/tfield/Metastratus/OWCS11gR1/home
Installation Type : Single server
Shared Folder Path : /Users/tfield/Metastratus/OWCS11gR1/shared
Host Name : localhost
Port Number : 8080
Platform Type : APPSERVER
Application Server : Tomcat 6.0.32+/7.0.23+
Server Path : /Users/tfield/Metastratus/OWCS11gR1/catalina_base
Database : HSQL Database Engine
JNDI Data Source Name : csDataSource
INSTALL ECLIPSE
- download Eclipse Java EE version (Helios minimum, Juno works)
- unzip it and move the eclipse folder to /Applications
INSTALL CSDT
Copy the com.fatwire.eclipsecsdt_1.2.jar jar file from the csdt.zip
file in the installer folder to your /Applications/eclipse/plugins folder
CONFIGURE CSDT
- Create a new workspace in /Users/tfield/Metastratus/OWCS11gR1/workspace
- Open the workspace
- Open the Oracle WebCenter Sites Perspective
(Window > Open Perspective > Other > Oracle WebCenter Sites) - Synchronize all files to workspace Oracle > WebCenter Sites Sync