users@glassfish.java.net

Re: Liferay Portal

From: <glassfish_at_javadesktop.org>
Date: Wed, 30 Jan 2008 08:29:50 PST

For the sake of completeness, I've revised my earlier documentation for Liferay 4.4.0. Here it is again:

Liferay v4 installation and configuration with Glassfish v2

This document has been tested against Glassfish v2ur1 and Liferay 4.4.0. Earlier versions of Liferay had some integration issues with Glassfish that have since been resolved, so this document cannot be used as a reference for anything prior to Liferay 4.4.0.

Downloads

1. Create a directory into which to store and extract the download files (e.g. C:\Liferay).
2. Go to http://www.liferay.com/web/guest/downloads/additional.
3. Download the Liferay Portal 4.X.Y WAR file for Servlet 2.4 to the directory (e.g. C:\Liferay).
4. Download the Liferay Portal 4.X.Y Dependencies file and unzip to the dependencies subdirectory (e.g. C:\Liferay\dependencies).
5. Download the Liferay Portal 4.X.Y SQL Scripts file and unzip to the sql subdirectory (e.g. C:\Liferay\sql).
6. Download the Liferay Plugins SDK 4.X.Y file and unzip to the sdk subdirectory (e.g. C:\Liferay\sdk).
7. Download the Liferay Portal 4.X.Y Web Services Client and unzip to the ws-client subdirectory (e.g. C:\Liferay\ws-client).
8. Download the Liferay Portal 4.X.Y JavaDocs and unzip to the doc subdirectory (e.g. C:\Liferay\doc).

Database configuration

1. Login as the administrator to the database of your choice.
2. Select either the minimal installation (scripts in the sql/create-minimal subdirectory) or the full example installation (scripts in the sql/create subdirectory) and run the script for your database server (e.g. create-mysql.sql). The default database created by the script is called lportal.
3. Recommended security: Create a separate Liferay database user and grant it SELECT, INSERT, UPDATE, and DELETE permissions on all tables in the lportal database.

Glassfish configuration

1. Stop Glassfish if it is running.
2. Copy the Liferay dependencies to the Glassfish domains/<liferay_domain>/lib subdirectory.
3. Copy the xercesImpl.jar file from the Liferay sdk/lib subdirectory to the Glassfish domains/<liferay_domain>/lib subdirectory.
4. Copy any required bridges (e.g. jsf-portlet.jar) to the Glassfish domains/<liferay_domain>/lib subdirectory.
5. Copy the JDBC driver for your database to the domains/<liferay_domain>/lib directory.
6. Start Glassfish and login to the Admin Console.
7. Go to Resources/JDBC/Connection Pools and create a connection pool to connect to the lportal database.
8. Go to Resources/JDBC/JDBC Resources, create a JDBC resource with the name jdbc/LiferayPool, and associate it with the connection pool created in the previous step.
9. Go to Resources/JavaMail Sessions and create a JavaMail resource with the name mail/MailSession.
10. Deploy the Liferay WAR file to the server with the context root /.
a. If the application server is running locally, set the upload option to false (if using the asadmin command-line tool) or use the Local packaged file or directory that is accessible from the Application Server option in the Admin Console.
b. For faster application load times, precompile the JSPs (this will take several minutes).
c. Do not run the verifier, as the sun-web.xml file does not match its DTD and will cause a deployment failure.

Liferay configuration

1. Go to the Liferay portal (http://localhost:8080/ if running locally under Glassfish).
2. Sign in as the administrator (test_at_liferay.com).
3. Add the “Plugin Installer” portlet if not present.
4. Go to the “Configuration” tab of the “Plugin Installer”.
a. Change the “Deploy Directory” to the deployment directory of your choice.
b. Press “Save”.
[Message sent by forum member 'kdeanddd' (kdeanddd)]

http://forums.java.net/jive/thread.jspa?messageID=256607