77范文网 - 专业文章范例文档资料分享平台

Liferay6 开发 环境部署 Liferay6实例

来源:网络收集 时间:2019-04-22 下载这篇文档 手机版
说明:文章内容仅供预览,部分内容可能不全,需要完整文档或者需要复制内容,请下载word后使用。下载word有问题请添加微信号:或QQ: 处理(尽可能给您提供完整文档),感谢您的支持与谅解。点击这里给我发消息

Liferay 6 Development Documentation

Liferay6

Development Documentation

TABLE OF CONTENTS

1. PREFACE ................................................................................................................................. 2 WHAT'S COVERED ......................................................................................................................... 2 PREREQUISITE SOFTWARE ............................................................................................................. 2 ASSUMPTION ................................................................................................................................ 3

2. LIFERAY INSTALLATION AND CONFIGURATION ..................................................... 3 DOWNLOAD .................................................................................................................................. 3 JDK 1.6 INSTALLATION ................................................................................................................ 3 MYSQL INSTALLATION................................................................................................................ 3 TOMCAT 6 INSTALLATION AND CONFIGURATION ....................................................................... 4

3. 4.

LIFERAY 6 DEVELOPMENT ENVIRONMENT SETUP ................................................... 6 DEVELOPING & DEPLOYING CUSTOM PORTLET TO LIFERAY 6 ......................... 10 LIFERAY EXTEND STRUCTURE ....................................................................... 错误!未定义书签。 CREATE A NEW EMPTY LIFERAY PROJECT .................................................................................... 10 CREATE A NEW PORTLET ............................................................................................................. 12 COMPILING & DEPLOYING PORTLET .......................................................................................... 15

5. 6. 7.

TABLE MAINTENANCE PORTLET DEVELOPMENT .................................................. 15 FAQ(FREQUENT ASKED QUESTIONS).......................................................................... 35 APPENDIX ............................................................................................................................ 36

Liferay 6 Development Documentation

1. Preface

This guide was written as a quick reference to getting started developing on the Liferay Portal 6 platform (non-bundled) for Java developer step by step.

What's covered

The following list details all of the various parts of the documentation that are covered over the course of the tutorial.

? Preparation, development environment setup ? The basic portlet development & deployment. ? Logic code with MySql

Prerequisite software

The following prerequisite software and environment setup is assumed. You should also be reasonably comfortable using the following technologies. ? Java SDK 1.5+ ? Liferay Portal 6 ? Eclipse 3.6 ? Ant 1.7

Liferay 6 Development Documentation

? Apache Tomcat 6.0.14 ? MySql

Assumption

? MySQL is installed

2. Liferay installation and configuration

Download

Download Liferay 6 war & sdk file from website War:

http://sourceforge.net/projects/lportal/files/Liferay Portal/6.0.5/liferay-portal-6.0.5.war/download Dependency file:

http://sourceforge.net/projects/lportal/files/Liferay Portal/6.0.5/liferay-portal-dependencies-6.0.5.zip/download

SDK: http://www.liferay.com/downloads/ Tomcat 6: http://tomcat.apache.org/download-60.cgi ()

Now we have 4 files:

apache-tomcat-6.0.20.zip liferay-portal-6.0.5.war, liferay-plugins-sdk-6.0.5.zip liferay-portal-dependencies-6.0.5.zip

JDK 1.6 Installation

Refer to:

http://www.oracle.com/technetwork/java/javase/documentation/install-windows-152927.html

MySQL Installation

Refer to:

Liferay 6 Development Documentation

http://dev.mysql.com/doc/refman/5.1/en/windows-install-wizard.html

Tomcat 6 installation and configuration

1. Unpack apache-tomcat-6.0.20.zip to your prefer directory such as C:\\java\\tomcat60.

From now on, we shall call this path as ${TOMCAT_HOME}. Notice: we are using non-install version.

2. Create and edit ${TOMCAT_HOME}/conf/Catalina/localhost/ROOT.xml to set up the portal web application: 3. Edit ${TOMCAT_HOME}/conf/catalina.properties: common.loader=${catalina.home}/lib,${catalina.home}/lib/*.jar,${catalina.home}/lib/ext/*.jar

4. Make sure your database server is installed and is working. If it's installed in a different machine, make sure that it's accessible from the one where Liferay is being installed.

5. Make sure the JDBC driver for your database is accessible by Tomcat. We will use MySQL as database, please copy connector-java-{$version}-bin.jar to ${TOMCAT_HOME}/lib/ext Download url:

http://dev.mysql.com/downloads/mirror.php?id=13520#mirrors

6. JNDI configure, edit

${TOMCAT_HOME}/conf/Catalina/localhost/ROOT.xml Be sure to enter the user name and password to your database in the Liferay 6 Development Documentation

appropriate fields above.

Notice:

1) You need to create a file name portal-ext.properties, the following steps will

talk about this.

2) Copy jta.jar/mysql-connector-java-x.x.xx-bin.jar to

${TOMCAT_HOME}/lib/ext

7. Create a mail session bound to mail/MailSession. Edit

${TOMCAT_HOME}/conf/Catalina/localhost/ROOT.xml and configure a mail session Beside, you need to copy mail.jar to ${TOMCAT_HOME}/lib/ext

8. Configure JAAS … … 9. Create a file name ${TOMCAT_HOME}/conf/jaas.config and add: PortalRealm { com.liferay.portal.kernel.security.jaas.PortalLoginModule required; };

百度搜索“77cn”或“免费范文网”即可找到本站免费阅读全部范文。收藏本站方便下次阅读,免费范文网,提供经典小说综合文库Liferay6 开发 环境部署 Liferay6实例在线全文阅读。

Liferay6 开发 环境部署 Liferay6实例.doc 将本文的Word文档下载到电脑,方便复制、编辑、收藏和打印 下载失败或者文档不完整,请联系客服人员解决!
本文链接:https://www.77cn.com.cn/wenku/zonghe/619664.html(转载请注明文章来源)
Copyright © 2008-2022 免费范文网 版权所有
声明 :本网站尊重并保护知识产权,根据《信息网络传播权保护条例》,如果我们转载的作品侵犯了您的权利,请在一个月内通知我们,我们会及时删除。
客服QQ: 邮箱:tiandhx2@hotmail.com
苏ICP备16052595号-18
× 注册会员免费下载(下载后可以自由复制和排版)
注册会员下载
全站内容免费自由复制
注册会员下载
全站内容免费自由复制
注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信: QQ: