Thursday, October 15, 2009

Liferay - Tomcat Bundle Setup

1. Introduction
This document gives the step by step instruction required for Liferay Tomcat Bundle setup.
2. Liferay Downloads
Liferay tomcat bundle can be downloaded from the Liferay website, from this site you can download the latest version of Liferay Bundle. http://www.liferay.com/web/guest/downloads/portal
Download “Liferay Portal Standard Edition”.
If you want to refer the previous versions of the Liferay Bundles you can download it from the SourceForge site.
http://sourceforge.net/projects/lportal/files/

3. Software Downloads
Before starting Liferay installation, make sure the following software installable are available in your system.
Java – JDK 1.5
Jikes 1.2 (site :
http://jikes.sourceforge.net/ )
Ant 1.7.1 (site :
http://ant.apache.org/ )

If you have multiple versions of java installed in your system. Uninstall the Versions and have only one version of Java. Errors that occur from having multiple versions of Java will cause delays for the entire class.

4. Installation
Install all Java related tools Java, Jikes and Ant in, C:\Java folder
How to set Environment variables.

Right click My Computer
Click Properties ==> Advanced ==> Environment Variables
Under System Variables click
new


Note: Step 2 & 3 can be ignored, if the Liferay Ext Environment is not created.

1. Java Installation
a. Install Java 1.5, Run java installable (.exe file)
b. Create JAVA_HOME environment variable, this required for Tomcat
c. Add JAVA_HOME to Path variable. Under the System Variables click Path and click Edit, Type %JAVA_HOME%\bin;


2. Jikes Installation - it compiles faster than Java’s default compiler
a. Create a folder for jikes-1.22, as C:\Java\jikes-1.22
b. Unzip Jikes (jikes-1.22-1.windows.zip) to C:\Java\jikes-1.22
c. Set System Variable JIKES_HOME, with value C:\Java\jikes-1.22
d. Update Path variable for JIKES_HOME, add %JIKES_HOME%\bin; after %JAVA_HOME%\bin;


3. ANT installation – ANT uses build scripts to automate tasks like cleaning out directories, compiling classes and moving files
a. Unzip Ant (apache-ant-1.6.5-bin.zip) to C:\Java
b. Set System Variable ANT_HOME, with value C:\Java\apache-ant-1.7.1
c. Update Path variable for ANT_HOME, add %ANT_HOME%\bin; after %JIKES_HOME%\bin;

4. Liferay Tomcat Bundle Installation
a. Unzip Tomcat (liferay-portal-tomcat-jdk5-4.1.1.zip) to C:\Training\liferay\tomcat
b. Double click C:\Training\liferay\tomcat\bin\startup.bat to start the Liferay Tomcat server
c. The below console will be displayed when the server successfully started.

No comments:

Post a Comment