9/9/2016
Cấu hình liferay và xây dựng portlet
Slideshare uses cookies to improve functionality and performance, and to provide you with relevant advertising.
If you continue browsing the site, you agree to the use of cookies on this website. See our Privacy Policy and
User Agreement for details.
SlideShare Explore Search You
Upload
Login
Signup
Search
Home
Technology
Education
More Topics
For Uploaders
Get Started
Tips & Tricks
Tools
Search
Cấu hình liferay và xây dựng portlet
916 views
Share
Like
Download
/>
1/8
9/9/2016
Cấu hình liferay và xây dựng portlet
Thơm Nguyễn Văn, Working at VLCC Health Care Ltd.
Follow
0 0 0
Published on Nov 14, 2014
zxz
...
Published in: Education
2 Comments
0 Likes
Statistics
Notes
Full Name
Comment goes here.
12 hours ago Delete Reply Spam Block
Are you sure you want to Yes No
Your message goes here
Share your thoughts…
Post
QuyenHap
/>10 months ago Reply
Are you sure you want to Yes No
Your message goes here
QuyenHap
Lập trình web java với framework liferay 6.2, các bạn tham khảo />v=mNJ5Xq12HiQ
10 months ago Reply
Are you sure you want to Yes No
Your message goes here
Be the first to like this
No Downloads
Views
Total views
/>
2/8
9/9/2016
Cấu hình liferay và xây dựng portlet
916
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
18
Comments
2
Likes
0
Embeds 0
No embeds
No notes for slide
Cấu hình liferay và xây dựng portlet
1. 1. CẤU HÌNH LIFERAY VÀ XÂY DỰNG PORTLET Phần 1: Các công cụ cần thiết 1.Các công c h trụ ỗ
ợ JDK 1.6 apacheant1.8.1 LifeRay 6.0.2 liferaypluginssdk6.0.5 Eclipse Java EE IDE for Web
Developers MySQL 5.1 2.Cài đ t c u hìnhặ ấ 1. JDK Download jdk6windowsi586.exe (53.16 MB) •
Gỡ bỏ tất cả các version cũ của JDK trước khi cài đặt • Để thuận tiện bạn nên tạo một thư mục C:Java, sau
đó install JDK vào C:Javajdk1.6.0 cũng như các chương trình Java liên quan vào thư mục này, thay vì
install vào C:Program Files • Tạo biến môi trường JAVA_HOME = C:JavaJdk1.6.0 • Chèn thêm giá trị sau
vào biến PATH: %JAVA_HOME%bin; 2. Ant Thực ra khi bạn cài đặt Eclipse thì bạn đã có thể sử dụng
Ant plugin của IDE rồi. Tuy nhiên, để thuận tiện, bạn có thể cài đặt ANT độc lập để có thể
compile+deploy dễ dàng mà không cần mở Eclipse
2. 2. • Sau đó install vào C:LifeRayapacheant1.8.1 • Tạo biến môi trường ANT_HOME =
C:LifeRayapacheant1.8.1 • Thêm vào biến PATH giá trị sau: %ANT_HOME%bin; Kiểm tra: Biến môi
trường PATH:
%SystemRoot%system32;%SystemRoot%;%SystemRoot%System32Wbem;%JAVA_HOME
%bin;%ANT_HOME%bin; Phần 2: Cấu hình chạy liferay Sau khi tạo xong các biến môi trường, giải nén
file LifeRay.rar trong đó bao gồm (Ant; Eclipse; liferaypluginssdk;portal) vào cùng thư mục Bước 1: Bỏ
kết nối tới csdl trong file portalext.properties C:LifeRayPortaltomcat6.0.26webappsROOTWEB
INFclassesportalext.properties
3. 3. Cấu hình lại đường dẫn cho Server tomcat trong file build.properties app.server.type=tomcat
app.server.dir=C:/Liferay/Portal/tomcat6.0.26 Bước 2: Bật Eclipse tạo workspace Bước 3: Tạo Server
4. 4. Hộp thoại định nghĩa Server bật lên, chọn LifeRay v6.0 Server (Tomcat6)
5. 5. Chọn Next, tiếp tục Browse tới thư mục chứa tomcat trong thư mục Portal Chọn Finish Bước 4: Khởi
động server
6. 6. Khởi động server thành công, bật trình duyệt vào http://localhost:8080/web để vào trang chủ liferay
7. 7. Phần 3: Tạo một portlet 1. Cấu hình Ant Vào Window>Prefernce Chọn Ant –> Runtime, sau đó nhấn
nút Ant Home trỏ tới thư mục Apacheant1.8.1 2. Tạo protlet Vào File>New>LifeRay Plugin Project
8. 8. Chọn Configure Chọn Add trỏ đến thư mục liferaypluginsdk, tiếp tục ấn OK Sau đó ấn Finish
9. 9. Trong phần Package Explorer chọn file build.xml từ portlet vừa tạo, quá trình deploy thành công. Bật
trình duyệt để xem portlet vừa tạo
10. 10. Trong phần Package Explorer chọn file build.xml từ portlet vừa tạo, quá trình deploy thành công. Bật
trình duyệt để xem portlet vừa tạo
/>
3/8
9/9/2016
Cấu hình liferay và xây dựng portlet
Recommended
Liferay Portal Introduction
Nguyen Tung
How can Liferay Developers, Deployers move to the Cloud
CloudBees
Introduction to Portlets Using Liferay Portal
rivetlogic
Asp.net tiengviet
Thơm Nguyễn Văn
/>
4/8
9/9/2016
Cấu hình liferay và xây dựng portlet
Thiết kế website cổng thông tin điện tử Portal
Trinh LeMinh
10 Features of Liferay 6.2 You Must Have
CIGNEX Datamatics
Liferay architecture By Navin Agarwal
Navin Agarwal
Liferay Developer Best Practices for a Successful Deployment
rivetlogic
Liferay Portal 2016 Inspire for Solutions Development
Inspire for Solutions Development
Liferay overview
AbhishekSRC
/>
5/8
9/9/2016
Cấu hình liferay và xây dựng portlet
English
Español
Português
Français
Deutsch
About
Dev & API
Blog
Terms
Privacy
Copyright
Support
LinkedIn Corporation © 2016
×
Share Clipboard
×
Email
Enter email addresses
Add a message
From
Send
Email sent successfully..
Facebook
Twitter
LinkedIn
Google+
Link
Public clipboards featuring this slide
×
/>
6/8
9/9/2016
Cấu hình liferay và xây dựng portlet
No public clipboards found for this slide
×
Save the most important slides with Clipping
Clipping is a handy way to collect and organize the most important slides from a presentation. You
can keep your great finds in clipboards organized around topics.
Start clipping
No thanks. Continue to download.
Select another clipboard
×
Looks like you’ve clipped this slide to already.
Search for a clipboard
/>
7/8
9/9/2016
Cấu hình liferay và xây dựng portlet
Create a clipboard
You just clipped your first slide!
Clipping is a handy way to collect important slides you want to go back to later. Now customize the name of a
clipboard to store your clips.
Name* Best of Slides
Description Add a brief description so others know what your Clipboard is about.
Visibility
Others can see my Clipboard
Cancel Save
Save this document
/>
8/8