Skip navigation.

So In Conslusion...

The Official Big Eclipse 'Geek' Musings

Posts tagged with "Liferay"

Liferay Installation

, ,

A modified version of the notes posted by Laura Kolker.

The Scripts

First, prepare tomcat:

Make sure all the .sh scripts in the /bin/ are executable
chmod a+x tomcat/bin/*.sh

Change the port LifeRay will run on (or keep default: 8080)
Edit tomcat/conf/server.xml and chance the reference from 8080 to whatever port you want.

You can check to see if you're on the right track, by running tomcat/bin/startup.sh and browsing to localhost:the-port-you-chose
The default user is test@liferay.com with password: test


The Database
If you want to use a different database than Hypersonic (which you most definitely do), you will need to do some extra work:

Download the Liferay Source, or see this comment
Unzip the source somewhere.
Run the source/sql/create/create-db.sql of your choice

NOTE: The default database name will be lportal. The create scripts will delete it if it already exists. If you want it to be called something else, you might be able to change that by editing the create-db.sql.
ex: mysql -u root -p < create-mysql.sql > mysql.out

You'll need to put any DB driver jars in a directory where tomcat can find them (common/lib works)
You'll need to change the tomcat/conf/Catalina/localhost/ROOT.xml context, so that it's using the right driver URL, and the right DB user and password.
Here is a diff of the default ROOT.xml with a configured ROOT.xml:

< driverClassName="org.hsqldb.jdbcDriver"
< url="jdbc:hsqldb:lportal"
< username="sa"
< password=""
---
> driverClassName="com.mysql.jdbc.Driver"
> url="jdbc:mysql://localhost:3306/lportal"
> username="xxxxxxxx"
> password="xxxxxxxx"

You'll have to explicitly give a DB user and password grants to the lportal database after you've run the create-db.sql script
If you get an NPE when you try to start LifeRay, check the logs in tomcat/logs/catalina.out for clues as to which of the many parts is breaking.

Running Liferay

$shell$ cd tomcat
$shell$ ./bin/startup.sh

Implementation of Liferay Portal (Details Coming Soon...)

, ,

There was a request to share the information on my implementation of Liferay Portal using Netbeans 6.0 and as such, i will be posting the process in the up coming days. i will cover the steps involved as well as the 'quirks' that needed to be modified in order to successfully implement Liferay yourselves.

Successful Implementation of Liferay Portal

, , ,

Successfully cofigured, implemented, and deployed the Liferay Portal today. i am a happy camper. Took a bit of tinkering but it was well worth the experience of learning the different requirements of completing such a task. i am currently "toying" around with it; learning more about portlets (and consequently, portlet development), the different applications that can be run from within the portal, and how to provide access to them, etc. There is quite a bit to learn and become familiar with. Major things going on over here. Project X is going to be somthing else.

Linux x86 arch.
Java JDK-1.6.0_03
Tomcat 5.5.25
MySQL 5.0
Jikes
December 2009
S M T W T F S
November 2009January 2010
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31