How to install Liferay on Tomcat

xiaoxiao2021-03-06  43

How to install Liferay on Tomcat

Erqi old Spring

Open source J2EE Portal product Liferay Portal (http://www.liferay.com) released version 3.0. From this release, Liferay is divided into two separate products: LifeRay Enterprise Edition and Liferay Professional. Among them, the professional version completely uses a lightweight architecture based on the Spring framework (http://www.springframework.org), using AOP-based infrastructure implementation, so you can completely detach the high-end J2EE application server, run in the form of web applications. Servlet containers (such as Tomcat). From the perspective of technology, this is enough to prove that the Lightweight architecture based on the IOC container and AOP can fully replace EJB to provide enterprise intensity products.

This article mainly describes how to install Liferay on the Tomcat server of the Windows operating system.

Simple installation

1. Download and install the JDK 1.4. Set the% java_home% in the environment variable to your JDK installation path. 2. Download LifeRay-Portal-Pro-3.1.0-Tomcat.zip.

3. Put Liferay-Portal-Pro-

3.1.0

-tomcat.zip decompress to disk (C: / life)

4. Perform C: /LifeRay/bin/startup.bat, run an attached database and application server.

Note: Application Server defaults to 80 ports.

5. Enter http:// localhost in the browser address bar to click My Liferay to log in, Username: Test@lifeRay.com

Password: Test

Installed.

Custom installation

1. Download and install JDK 1.4. Set% java_home% in the environment variable to your JDK installation path.

2. Download and install Tomcat. Server.

3. Create the /conf/catalina/localhost/liferay.xml file for the portal service under Tomcat, the content is

The red word part is the future deployment address and can be customized as needed.

4. Download LifeRay-Portal-Pro-3.1.0.war.

5. Install the database, here we use SQL Server as an example

1. Add the content in /conf/catalina/localhost/liferay.xml

... Driverclassname net.sourceforge.jtds.jdbc.driver URL jdbc: jtds: sqlserver: // localhost / lportal Username test password test 2. Copy SQL Server JDBC driver to% Tomcat% / Common / lib

3. Create a LPORTAL database in SQL Server. Database sheets have downloaded on the official website of Liferay.

6. Edit% Tomcat% / conf / Catalina.properties file:

Common.loader = $ {catalina.home} / common / class, / ... / $ {catalina.home} / common / lib / ext / *. jar

Note: The JMS is not required in version 3.0.0 because ActiveMQ has integrated this feature.

7. Set the mailsession photo as follows below% Tomcat% / conf / Catalina / Localhost / Liferay.xml

mail.smtp .host localhost

8. Set JaAs as follows: Tomcat% / conf / catalina / localhost / life.xml

Create% Tomcat% / conf / jaas.config file, the content is as follows

Portalm {com.liferay.portal.jaas.portalloginmodule.

The edit% Tomcat% / bin / startup.bat content is as follows (it seems to have problems, Tomcat does not start normally after modification.)

...

SET EXECUTABLE =% Catalina_Home% / BIN / CATALINA.BAT

Set java_opts =% java_opts% -djava.security.auth.login.config =% catalina_Home% / conf / jaas.config

9. Deploy LifeRay-Portal-Pro-

3.1.0

Wr

Unpacking into% Tomcat% / LifeRay directory, copying / loomage / web-inf / lib directory except all JAR files outside Util-Taglib.jar to% Tomcat% / CommON / lib / ext

10. Start Tomcat

If you find java.lang.outofMemoryError exception, it means that the memory allocated is not enough, editing% Tomcat% / bin / startup.bat content is as follows

. . . . . . . .

SET EXECUTABLE =% Catalina_Home% / BIN / CATALINA.BAT

Set java_opts = -XMS

256M

-Xmx

512M

. . . . . . . .

Installed

转载请注明原文地址:https://www.9cbs.com/read-69599.html

New Post(0)