You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

Table of contents

Homepage:

http://www.liferay.com/

Download:

http://www.liferay.com/web/guest/downloads/portal

File(s):

liferay-portal-tomcat-6.0-5.2.3.zip (139 MB)

For developing/testing/running Wicket-portlets a portal server is necessary. There are some opensource portals in the market: Liferay, Jetspeed, JBoss Portal Server, OpenPortal (Sun Java System Portal Server).
Here we describe the setup of Liferay portal server.

Installation

Windows:

  • Unzip file "liferay-portal-tomcat-6.0-5.2.3.zip" to a suitable folder, e.g. "C:\Program Files"

Configuration

If you do not want the portal to run under the port 8080, you have to edit the tomcat configuration file C:\Program Files\liferay-portal-5.2.3\tomcat-6.0.18\conf\server.xml, e.g. to use 18080 instead:

File "server.xml"
...
<Server port="*18005*" shutdown="SHUTDOWN">
  ...
  <Connector port="*18080*" protocol="HTTP/1.1" 
               connectionTimeout="20000" 
               redirectPort="*18443*" URIEncoding="UTF-8" />
    ...
  <Connector port="*18009*" protocol="AJP/1.3" redirectPort="*18443*" URIEncoding="UTF-8" />
  ...
</Server>

Usage

You can start the enclosed Tomcat in the same way as you would if you had downloaded Tomcat separately.
Tomcat is launched by way of a script which is found in its bin subfolder.

Windows:

Command line
C:\> cd "C:\Program Files\liferay-portal-5.2.3\tomcat-6.0.18\bin"
C:\Program Files\liferay-portal-5.2.3\tomcat-6.0.18\bin>startup.bat
Using CATALINA_BASE:   C:\Program Files\apache-tomcat-6.0.18
Using CATALINA_HOME:   C:\Program Files\apache-tomcat-6.0.18
Using CATALINA_TMPDIR: C:\Program Files\apache-tomcat-6.0.18\temp
Using JRE_HOME:        C:\Program Files\Java\jdk1.6.0_13

Problem: If the CATALINA_BASE is different from your installation (like in this example), the startup-script found a "CATALINA_HOME" environment variable for another tomcat installation.
Solution: Remove the environment variable or change the startup-script:

Workaround Tomcat startup.bat
...
rem if not "%CATALINA_HOME%" == "" goto gotHome
...
Command line
C:\> cd "C:\Program Files\liferay-portal-5.2.3\tomcat-6.0.18\bin"
C:\Program Files\liferay-portal-5.2.3\tomcat-6.0.18\bin>startup.bat
Using CATALINA_BASE:   C:\Program Files\liferay-portal-5.2.3\tomcat-6.0.18
Using CATALINA_HOME:   C:\Program Files\liferay-portal-5.2.3\tomcat-6.0.18
Using CATALINA_TMPDIR: C:\Program Files\liferay-portal-5.2.3\tomcat-6.0.18\temp
Using JRE_HOME:        C:\Program Files\liferay-portal-5.2.3\tomcat-6.0.18/jre1.
5.0_17/win
  • No labels