To setup Liferay in your System, you have to follow these 4 steps:
Step 1 :
Liferay Installation 1 : Java & Liferay
http://lifebyliferay.blogspot.com/2008/01/liferay-installation-java-liferay.html
Step 2 :
Liferay Installation 2. Jikes,Ant & Liferay Portal Source
http://lifebyliferay.blogspot.com/2008/01/liferay-installation-2-jikesant-liferay.html
Step 3 :
Liferay Installation - 3. EXT Environment
http://lifebyliferay.blogspot.com/2008/01/liferay-installation-3-ext-environment.html
Step 4 :
Liferay Installation 4 : Database Connection
http://lifebyliferay.blogspot.com/2008/01/liferay-installation-4-database.html
- Gnaniyar
Tuesday, January 15, 2008
Monday, January 14, 2008
Liferay Installation 4 : Database Connection
1.Download MySQL
2.Install MySQL
3. Create the MySQL database
4. Populate the MySQL database
5.Configure Tomcat to use MySQL
6.Copy mysql.jar
7.Deploy the MySQL Driver
1.Download MySQL
Download MySQL 4.1Windows Essentials (x86)
http://dev.mysql.com/downloads/mysql/4.1.html
2.Install MySQL
(i) Install MySQL by double clicking mysql-essential-4.1.*-win32.msi
(ii) Select Typical
(iii) Select Skip Sign-up
(iv) Click Finish to run the MySQL Server Instance Configuration Wizard

(i))Select Standard Configuration
(ii)Select Include Bin Directory in Windows PATH
(iii))Click Next

(i)Enter asdf for the password
(ii)Select Create An Anonymous Account
(iii)On the next screen, click Execute
3. Create the MySQL database
(i) Click Start - Run
(ii) Type cmd
(iii) Type mysql
(iv) Type create database training;
4. Populate the MySQL database

(i)Click Start - Run
(ii) Type cmd
(iii) Go to C:\training\liferay\ext\sql\portal (in command prompt)
(iv) Type mysql training <>
5.Configure Tomcat to use MySQL
(i) Go to C:\training\liferay\tomcat\conf\Catalina\localhost
(ii) Open ROOT.xml with Notepad

(iii)Change the driverClassName
driverClassName="com.mysql.jdbc.Driver"
(iv) Change the url
url="jdbc:mysql://localhost/training?useUnicode=true&characterEncoding=UTF-8"
(v) Change the username
username="root"
(vi)Change the password
password="asdf"
Your Root.xml will look like this:

6.Copy mysql.jar
(i) Go to C:\training\liferay\ext\lib\development
(ii) Copy mysql.jar
(iii) Go to C:\training\liferay\ext\ext-lib\global and paste mysql.jar here
7.Deploy the MySQL Driver
(i) Click Start - Run
(ii) Type cmd and press Enter
(iii) Go to C:\training\liferay\ext ( in Command prompt)
(iv) Type ant deploy

(v) Checkpoint!
Go to C:\training\liferay\tomcat\common\lib\ext and
verify that mysql.jar exists
Congratulations!
You have just configured Tomcat to use a
MySQL database!
Troubleshooting: Connection Error
(i) If the Connection Error window pops up, click Skip
(ii) Click Start - Programs - MySQL - MySQL Server 4.1 - MySQL Server Instance Config Wizard
(iii) Reconfigure MySQL

- Gnaniyar
2.Install MySQL
3. Create the MySQL database
4. Populate the MySQL database
5.Configure Tomcat to use MySQL
6.Copy mysql.jar
7.Deploy the MySQL Driver
1.Download MySQL
Download MySQL 4.1Windows Essentials (x86)
http://dev.mysql.com/downloads/mysql/4.1.html
2.Install MySQL
(i) Install MySQL by double clicking mysql-essential-4.1.*-win32.msi
(ii) Select Typical
(iii) Select Skip Sign-up
(iv) Click Finish to run the MySQL Server Instance Configuration Wizard
(i))Select Standard Configuration
(ii)Select Include Bin Directory in Windows PATH
(iii))Click Next
(i)Enter asdf for the password
(ii)Select Create An Anonymous Account
(iii)On the next screen, click Execute
3. Create the MySQL database
(i) Click Start - Run
(ii) Type cmd
(iii) Type mysql
(iv) Type create database training;
4. Populate the MySQL database
(i)Click Start - Run
(ii) Type cmd
(iii) Go to C:\training\liferay\ext\sql\portal (in command prompt)
(iv) Type mysql training <>
5.Configure Tomcat to use MySQL
(i) Go to C:\training\liferay\tomcat\conf\Catalina\localhost
(ii) Open ROOT.xml with Notepad
(iii)Change the driverClassName
driverClassName="com.mysql.jdbc.Driver"
(iv) Change the url
url="jdbc:mysql://localhost/training?useUnicode=true&characterEncoding=UTF-8"
(v) Change the username
username="root"
(vi)Change the password
password="asdf"
Your Root.xml will look like this:
6.Copy mysql.jar
(i) Go to C:\training\liferay\ext\lib\development
(ii) Copy mysql.jar
(iii) Go to C:\training\liferay\ext\ext-lib\global and paste mysql.jar here
7.Deploy the MySQL Driver
(i) Click Start - Run
(ii) Type cmd and press Enter
(iii) Go to C:\training\liferay\ext ( in Command prompt)
(iv) Type ant deploy
(v) Checkpoint!
Go to C:\training\liferay\tomcat\common\lib\ext and
verify that mysql.jar exists
Congratulations!
You have just configured Tomcat to use a
MySQL database!
(i) If the Connection Error window pops up, click Skip
(ii) Click Start - Programs - MySQL - MySQL Server 4.1 - MySQL Server Instance Config Wizard
(iii) Reconfigure MySQL
- Gnaniyar
Sunday, January 13, 2008
Liferay Installation - 3. EXT Environment
The EXT Environment allows you to extend the Liferay Portal source.
a. Set the Location of the EXT Environment
b. Build the EXT Environment
c. Set the Type of Server
d. Set the Location of the Server
e. Deploy your Files to TOMCAT
a. Set the Location of the EXT Environment
a1.Find Out Your User Name
a2. Create release.${user.name}.properties file
a1.Find Out Your User Name

Here, USERNAME = Administrator
a2. Create release.${user.name}.properties file
(i) Go to C:\training\liferay\portal
(ii) Create any text file and save that file as release.${user.name}.properties

(iii) then open that file and type : lp.ext.dir=C:/training/liferay/ext
lp.ext.dir is the property that tells where we want to build the EXT Environment
b. Build the EXT Environment
(i) Go to command prompt
(ii) Go to C:\training\liferay\portal ( in the command prompt)
(iii) Type ant clean start build-ext

(iv)Make sure that the EXT Environment was created in C:\training\liferay\ext
Remember, the location of the EXT environment was set using lp.ext.dir
lp.ext.dir=C:/training/liferay/ext
(v) Checkpoint!
Go to C:\training\liferay\ext and make sure that the following folders and files were created
c. Set the Type of Server
(i) Create the app.server.${user.name}.properties file
we should create app.server.type (Application Server Type) which is the property file that tells Liferay what server we want to deploy to.
(i) Go to C:\training\liferay\ext
(ii) Create any text file and save that file as app.server.${user.name}.properties

(iii) then open that file and type : app.server.type=tomcat
d. Set the Location of the Server
Enter the following in app.server.${user.name}.properties
app.server.tomcat.dir=C:/training/liferay/tomcat

e. Deploy your Files to TOMCAT
(i) Go to command prompt
(ii) Go to C:\training\liferay\ext ( in the command prompt)
(iii) Type ant deploy
(iv) checkpoint :
Make sure that your files were deployed to C:\training\liferay\tomcat

Congratulations!
You have just built the EXT Environment! Next We have to setup Database.
- Gnaniyar
a. Set the Location of the EXT Environment
b. Build the EXT Environment
c. Set the Type of Server
d. Set the Location of the Server
e. Deploy your Files to TOMCAT
a. Set the Location of the EXT Environment
a1.Find Out Your User Name
a2. Create release.${user.name}.properties file
a1.Find Out Your User Name
1. Go to your command prompt
2. Type set in the command prompt
3. Write down your user name
Here, USERNAME = Administrator
a2. Create release.${user.name}.properties file
(i) Go to C:\training\liferay\portal
(ii) Create any text file and save that file as release.${user.name}.properties
For Ex: if your user name is Administrator, then save as release.Administrator.properties
if your user name is ed, then save as release.ed.properties
(iii) then open that file and type : lp.ext.dir=C:/training/liferay/ext
lp.ext.dir is the property that tells where we want to build the EXT Environment
b. Build the EXT Environment
(i) Go to command prompt
(ii) Go to C:\training\liferay\portal ( in the command prompt)
(iii) Type ant clean start build-ext
(iv)Make sure that the EXT Environment was created in C:\training\liferay\ext
Remember, the location of the EXT environment was set using lp.ext.dir
lp.ext.dir=C:/training/liferay/ext
(v) Checkpoint!
Go to C:\training\liferay\ext and make sure that the following folders and files were created
c. Set the Type of Server
(i) Create the app.server.${user.name}.properties file
we should create app.server.type (Application Server Type) which is the property file that tells Liferay what server we want to deploy to.
(i) Go to C:\training\liferay\ext
(ii) Create any text file and save that file as app.server.${user.name}.properties
For Ex: if your user name is Administrator, then save as app.server.Administrator.properties
if your user name is ed, then save as app.server.ed.properties
(iii) then open that file and type : app.server.type=tomcat
d. Set the Location of the Server
Enter the following in app.server.${user.name}.properties
app.server.tomcat.dir=C:/training/liferay/tomcat
e. Deploy your Files to TOMCAT
(i) Go to command prompt
(ii) Go to C:\training\liferay\ext ( in the command prompt)
(iii) Type ant deploy
(iv) checkpoint :
Make sure that your files were deployed to C:\training\liferay\tomcat
Congratulations!
You have just built the EXT Environment! Next We have to setup Database.
- Gnaniyar
Liferay Installation 2. Jikes,Ant & Liferay Portal Source
We should install these tools to build the EXT environment.
Ext Enviroinment - is the place where all the files should stay.
a. JIKES
b. ANT
c. Liferay Portal Source
a. Install JIKES
Jikes is a compiler tool that used to compile java files faster than java ordinary javac compiler.
Download Jikes 1.22
http://downloads.sourceforge.net/jikes/jikes-1.22-1.windows.zip
(i) Create folder C:\jikes-1.22
(ii) Unzip your jikes-1.22-1-windows.zip file to C:\jikes-1.22
Set CLASSPATH for JIKES
(i) Go to :
Start -Setting - Control Panel-System -Advanced - Environment Variables
(ii) Under System Variable click New.
(iii) Variable Name : JIKES_HOME
Value : C:\jikes-1.22
(iii) Click OK
Set PATH for JIKES
(i)Under the System variable, Click path and Edit
(ii)Type %JIKES_HOME%\bin; ( Don't forget to give semicolon )
(iii) To confirm that Jikes path is correct : Go to command prompt
type jikes -version
It will display the version of jikes..then you have set the path successfully.
b. Install ANT
ANT is a build tool that used to clean out directories , moving the files and compiles set of java files.
Download ANT 1.7.0
(i) Unzip your apache-ant-1.7.0-bin.zip file to C:\
(ii) It will set to C: \apache-ant-1.7.0
Set CLASSPATH for ANT
(i) Go to :
Start -Setting - Control Panel-System -Advanced - Environment Variables
(ii) Under System Variable click New.
(iii) Variable Name : ANT_HOME
Value : C:\apache-ant-1.7.0
(iii) Click OK
Set PATH for ANT
(i) Under the System variable, Click path and Edit
(ii) Type %ANT_HOME%\bin; ( Don't forget to give semicolon )
(iii) To confirm that ANT path is correct : Go to command prompt
type ant -version
It will display the version of ANT..then you have set the path successfully.
It has many files that we will need to build EXT environment.
Download Liferay Portal Source
http://sourceforge.net/project/downloading.php?group_id=49260&use_mirror=nchc&filename=liferay-portal-src-4.3.4.zip
The file should look like this :
liferay-portal-src-4.3.4-*.zip
(i) Create folder structure : c:\training\liferay\portal
(ii) Unzip liferay-portal-src-4.3.4-*.zip to c:\training\liferay\portal
(iii)Make sure that file extensions are visible on your computer by these steps:
Now we are ready to build the EXT environment.
Ext Enviroinment - is the place where all the files should stay.
a. JIKES
b. ANT
c. Liferay Portal Source
a. Install JIKES
Jikes is a compiler tool that used to compile java files faster than java ordinary javac compiler.
Download Jikes 1.22
http://downloads.sourceforge.net/jikes/jikes-1.22-1.windows.zip
(i) Create folder C:\jikes-1.22
(ii) Unzip your jikes-1.22-1-windows.zip file to C:\jikes-1.22
Set CLASSPATH for JIKES
(i) Go to :
Start -Setting - Control Panel-System -Advanced - Environment Variables
(ii) Under System Variable click New.
(iii) Variable Name : JIKES_HOME
Value : C:\jikes-1.22
(iii) Click OK
Set PATH for JIKES
(i)Under the System variable, Click path and Edit
(ii)Type %JIKES_HOME%\bin; ( Don't forget to give semicolon )
(iii) To confirm that Jikes path is correct : Go to command prompt
type jikes -version
It will display the version of jikes..then you have set the path successfully.
-----------------------------------------
b. Install ANT
ANT is a build tool that used to clean out directories , moving the files and compiles set of java files.
Download ANT 1.7.0
(i) Unzip your apache-ant-1.7.0-bin.zip file to C:\
(ii) It will set to C: \apache-ant-1.7.0
Set CLASSPATH for ANT
(i) Go to :
Start -Setting - Control Panel-System -Advanced - Environment Variables
(ii) Under System Variable click New.
(iii) Variable Name : ANT_HOME
Value : C:\apache-ant-1.7.0
(iii) Click OK
Set PATH for ANT
(i) Under the System variable, Click path and Edit
(ii) Type %ANT_HOME%\bin; ( Don't forget to give semicolon )
(iii) To confirm that ANT path is correct : Go to command prompt
type ant -version
It will display the version of ANT..then you have set the path successfully.
-----------------------------------------
c. Install Liferay Portal SourceIt has many files that we will need to build EXT environment.
Download Liferay Portal Source
http://sourceforge.net/project/downloading.php?group_id=49260&use_mirror=nchc&filename=liferay-portal-src-4.3.4.zip
The file should look like this :
liferay-portal-src-4.3.4-*.zip
(i) Create folder structure : c:\training\liferay\portal
(ii) Unzip liferay-portal-src-4.3.4-*.zip to c:\training\liferay\portal
(iii)Make sure that file extensions are visible on your computer by these steps:
Double Click My Computer
From the Menu , Click Tool- Folder Option - View
Uncheck "Hide extension for Known file types"
Now we are ready to build the EXT environment.
-----------------------------------------
- GnaniyarThursday, January 10, 2008
Liferay Installation 1 : Java & Liferay
1. Install Java and Set the Java path
Download Java Latest Version :
http://java.sun.com/javase/downloads/index.jsp
Install Java

To set the classpath for JAVA, ( class path for compile the Java program)

Go to : Start -Setting-Control Panel- System- Advanced-
Environment Variables
Under System Variable click New.
Variable Name : JAVA_HOME
Value : c:\Program Files\Java\jdk1.6.0_03
Click OK
Then set path, ( path for run the Java program)

Under the System variable, Click path and Edit
Type %JAVA_HOME%\bin; ( Don't forget to give semicolon )
To confirm that Java path is correct :

Go to command prompt type java -version
It will display the version of java..then you set the path successfully.
Download Liferay-Tomcat-Bundle zip file from here.
http://www.liferay.com/web/guest/downloads
The file look like this :
liferay-portal-tomcat-jdk5-*.zip
Create folder structure : c:\training\tomcat
Unzip Tomcat to C:\training\tomcat
Goto c:\training\tomcat\bin
Double click startup.bat
Then open your web browser and type http://localhost:8080

If you get this screenshot, then you have installed liferay sucessfully
- Gnaniyar
Download Java Latest Version :
http://java.sun.com/javase/downloads/index.jsp
Install Java
To set the classpath for JAVA, ( class path for compile the Java program)
Go to : Start -Setting-Control Panel- System- Advanced-
Environment Variables
Under System Variable click New.
Variable Name : JAVA_HOME
Value : c:\Program Files\Java\jdk1.6.0_03
Click OK
Then set path, ( path for run the Java program)
Under the System variable, Click path and Edit
Type %JAVA_HOME%\bin; ( Don't forget to give semicolon )
To confirm that Java path is correct :
Go to command prompt type java -version
It will display the version of java..then you set the path successfully.
-------------------------------------------------
Download Liferay-Tomcat-Bundle zip file from here.
http://www.liferay.com/web/guest/downloads
The file look like this :
liferay-portal-tomcat-jdk5-*.zip
Create folder structure : c:\training\tomcat
Unzip Tomcat to C:\training\tomcat
Goto c:\training\tomcat\bin
Double click startup.bat
Then open your web browser and type http://localhost:8080
If you get this screenshot, then you have installed liferay sucessfully
- Gnaniyar
Knock the Door of Liferay
Before you continue you should have a basic understanding of the following:
Java - Web application program
JSP & Servlets - For client ,server side interaction
XML - to describe data and to focus on what data is.
Ant - Ant is a Java-based build tool. Using ant, we can compile more java files at a time and can create drectory structures....
Struts - Framework
Required Tools for Liferay :
1.Java
2.Liferary bundled with Tomcat
3.Jikes
4.Ant
5.Liferay Portal Siurce to Build EXT Environment
6.EXT Environment
7.SQL (any database)
- Gnaniyar
- Java , Servlets & JSP
- XML, Ant
- Struts
Java - Web application program
JSP & Servlets - For client ,server side interaction
XML - to describe data and to focus on what data is.
Ant - Ant is a Java-based build tool. Using ant, we can compile more java files at a time and can create drectory structures....
Struts - Framework
Required Tools for Liferay :
1.Java
2.Liferary bundled with Tomcat
3.Jikes
4.Ant
5.Liferay Portal Siurce to Build EXT Environment
6.EXT Environment
7.SQL (any database)
- Gnaniyar
Wednesday, January 9, 2008
Liferay Gateway
What is Liferay?
Is there any ray passing ? Nothing....
Liferay is open source portal server framework.
open source - Anybody can access without any license/cost
portal - is a web application like Yahoo, Google, etc.
Server - which provide services to other machines / Storing and displaying data according to client request
Framework - Working within Frame......
--------------------------------------------------------------------------------------------------------------------------------------
What is Framework?
you are working in Java platform... you cant use any new keyword / new structure which is not mentioned in Java language... So, you are working within Java Frame... This is Frame work.
"what they said..you follow that structure"..like Hutch Dog...( wherever you go, it follows like that wherever it tells, you should follow) .
To develop portlets, we are using one Framework called Struts.
--------------------------------------------------------------------------------------------------------------------------------------
Why Frameworks?
- Saves developers time
- Many eyes on the code increases stability
- Gives developers a place to start
- Ensures all developers develop code using the same approach.
--------------------------------------------------------------------------------------------------------------------------------------
What is Struts?
This is not any language , software and any company name. It provides components for building Web applications that speed development
Struts is a Java MVC Framework to build a web application.
MVC - Model View Controller
Model Components - Access Data and Systems ( Database)
View Components - What the users see ( JSP pages)
Controller Components - Direct the Action ( Java , Java Bean and Servlet files)
--------------------------------------------------------------------------------------------------------------------------------------
Why do yo want to use Struts?
To learn more about struts, Visit
http://www.roseindia.net/struts/
- Gnaniyar
Is there any ray passing ? Nothing....
Liferay is open source portal server framework.
open source - Anybody can access without any license/cost
portal - is a web application like Yahoo, Google, etc.
Server - which provide services to other machines / Storing and displaying data according to client request
Framework - Working within Frame......
--------------------------------------------------------------------------------------------------------------------------------------
What is Framework?
Technically,
When a large number of objects are required to perform a task, there also exist repeatable patterns which can be used to make building projects simpler. Frameworks take advantage of these reusable patterns to speed up and increase reliability of coding a project.For example,
you are working in Java platform... you cant use any new keyword / new structure which is not mentioned in Java language... So, you are working within Java Frame... This is Frame work.
"what they said..you follow that structure"..like Hutch Dog...( wherever you go, it follows like that wherever it tells, you should follow) .
To develop portlets, we are using one Framework called Struts.
--------------------------------------------------------------------------------------------------------------------------------------
Why Frameworks?
- Saves developers time
- Many eyes on the code increases stability
- Gives developers a place to start
- Ensures all developers develop code using the same approach.
--------------------------------------------------------------------------------------------------------------------------------------
What is Struts?
This is not any language , software and any company name. It provides components for building Web applications that speed development
Struts is a Java MVC Framework to build a web application.
MVC - Model View Controller
Model Components - Access Data and Systems ( Database)
View Components - What the users see ( JSP pages)
Controller Components - Direct the Action ( Java , Java Bean and Servlet files)
--------------------------------------------------------------------------------------------------------------------------------------
Why do yo want to use Struts?
- Do You need applications to run in a Web Browser.?
- Do Your developers have Java expertise.?
- Do You are currently using JavaServer Pages (JSP).?
- Do You are using the J2EE Platform (Tomcat, Weblogic, etc)?
- Do You are considering building an application "Framework".?
To learn more about struts, Visit
http://www.roseindia.net/struts/
- Gnaniyar
Introduction
Hay,
I am Gnaniyar, did my MCA in M.S University during 1999-2002 after that i was not in Software field as i went to Dubai for job. Then i realized that all my classmates are earning good package than me even in India.
So, I decided to switch over into IT field. I was collecting the data regarding this. That time, i met Mr.Hasan, CEO of TransIT mPower Labs , Bangalore who advised and guided me to get training in Liferay portlet development ( using Java - J2EE -Struts) which is booooooming now.
Now I am getting well training by TransIT mPower Labs. now a days i am capable of develop JSP and Struts portlets . Also i want to get more knowledge in this Liferay development that's why i have created this blog.
Here you can easily understand about Liferay and portlet development. i am ready to explain what i know in Liferay also same what i am expecting from you.
Your co-operation shall be highly appreciated to gain our knowledge.
Become a Master in Liferay and Master in your Life.
Thank you
- Rasikow @ Gnaniyar
I am Gnaniyar, did my MCA in M.S University during 1999-2002 after that i was not in Software field as i went to Dubai for job. Then i realized that all my classmates are earning good package than me even in India.
So, I decided to switch over into IT field. I was collecting the data regarding this. That time, i met Mr.Hasan, CEO of TransIT mPower Labs , Bangalore who advised and guided me to get training in Liferay portlet development ( using Java - J2EE -Struts) which is booooooming now.
Now I am getting well training by TransIT mPower Labs. now a days i am capable of develop JSP and Struts portlets . Also i want to get more knowledge in this Liferay development that's why i have created this blog.
Here you can easily understand about Liferay and portlet development. i am ready to explain what i know in Liferay also same what i am expecting from you.
Your co-operation shall be highly appreciated to gain our knowledge.
Become a Master in Liferay and Master in your Life.
Thank you
- Rasikow @ Gnaniyar
Subscribe to:
Comments (Atom)
