Under Tomcat, deploy the Liferay portal from the Liferay source

Source: Internet
Author: User
1, download liferay-portal-src-5.2.3 and liferay-portal-ext-5.2.3 2, build ext: In the Portal project Build.xml in turn to execute clean, start, build-ext tasks; 3, Portal and ext items are added under the App.server.zcb.properties file, the file name "ZCB" for the computer's login, as follows: Lp.ext.dir=f://eclipse_project//liferay b-liferay//trunk//liferay-portal-ext-5.2.3 App.server.parent.dir=e://beans//tomcat//newtomcatforportal
app.server.tomcat.dir=${app.server.parent.dir}/apache-tomcat-6.0.18 4, delete the root project folder (or rename) under Tomcat; 5, Perform deploy tasks in the Build.xml file in the portal project; 6, modify Tomcat Catalina.bat file, increase Tomcat memory size, add the following: Set java_opts=-xms1024m-xmx1024m -xx:newsize=512m-xx:maxnewsize=512m-xx:permsize=128m-xx:maxpermsize=256m 7, Portal and EXT projects in the impl/ SRC under the Add portal-ext.properties file, the contents are as follows: # #
# # can override portal.properties by specifying your own settings in this
# # file.
##
Jdbc.default.driverclassname=com.mysql.jdbc.driver
jdbc.default.url=jdbc:mysql://localhost:3306/liferaytest?useunicode=true&characterencoding=utf-8& Usefastdateparsing=false
Jdbc.default.username=zcb
JDBC.DEFAULT.PASSWORD=ZCB 8, start Tomcat, will automatically open the Liferay home page. Note: 1, the implementation of the start and deploy tasks in Build.xml will take a lot of time, need to wait patiently until the prompt operation is successful, 2, under Tomcat at the same time there are two portal instance projects, if they point to the same database, prone to problems, You need to make another change, so you need to avoid two portal projects under the same tomcat in a simple application.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.