Time for action – deploying Liferay
Next, follow these steps to configure Liferay with Tomcat:
Create a folder called
Liferay
, which we will refer to asLIFERAY_HOME
from now on.Extract the Tomcat zip file you have downloaded earlier to
LIFERAY_HOME
. You should see a folder namedapache-tomcat-6.0.33
insideLIFERAY_HOME
. From now on this folder will be referred to asTOMCAT_HOME
.Create a folder called
ext
insideTOMCAT_HOME/lib
. Extract the Portal Dependencies jars zip that you downloaded earlier to thisext
folder.Copy the jars like
mysql.jar
,jta.jar
, andmail.jar
inside theTOMCAT_HOME/lib
folder, which has been provided to you in the code folder of this chapter.Create a file called
ROOT.xml
insideTOMCAT_HOME/conf/Catalina/localhost
. Add the following content insideROOT.xml
:<Context path=””> </Context>
Open the file
TOMCAT_HOME/conf/catalina.properties
and find a property calledcommon.loader
. Append${catalina.home}/lib/ext/*.jar
at the end as follows:common.loader=${catalina...