You are on page 1of 11

30/7/2019 Installing Liferay DXP on WebLogic 12c R2 – Liferay

Productos Recursos Seguridad Soporte


Help Center Buscar

Liferay Liferay DXP 7.1 Guía de despliegue


En esta página Deploying Liferay DXP

Configuring
WebLogic’s Node
Deploying Liferay DXP
Manager

Introduction to Deploying Liferay DXP


Configuring
WebLogic
Preparing for Install
Setting Liferay DXP
Properties
Installing Liferay DXP

Installing Liferay
Installing Liferay DXP Manually
DXP Dependencies

Database
Installing Liferay DXP on Tomcat
Configuration
Installing Liferay DXP on Wildfly
Mail Configuration

Installing
Deploying Liferay DXP on JBoss EAP
Liferay
DXP
Installing Liferay DXP on tc Server

Installing Liferay DXP on WebLogic 12c R2

Installing Liferay DXP on WebSphere

Sugerencias
Installing Elasticsearch

Trial Plugin Installation

Activating Liferay DXP

Setting Up Marketplace

Installing a Search Engine

Configuring Liferay DXP

Securing Liferay DXP

Installing Liferay DXP on WebLogic 12c R2


https://help.liferay.com/hc/es/articles/360017896732-Installing-Liferay-DXP-on-WebLogic-12c-R2#setting-liferay-dxp-properties 1/11
30/7/2019 Installing Liferay DXP on WebLogic 12c R2 – Liferay

Productos Recursos Seguridad Soporte


Helpyou
Although Center Buscar
can install Liferay DXP in a WebLogic Admin Server, this isn’t recommended. It’s a best
practice to install web apps, including Liferay DXP, in a WebLogic Managed server. Deploying to a
Managed Server lets you start or shut down Liferay DXP more quickly and facilitates transitioning into a
En esta página
cluster configuration. This article therefore focuses on installing Liferay DXP in a Managed Server.
Configuring
WebLogic’s Node
Before getting started, create your Admin and Managed Servers. See WebLogic’s documentation for
Manager
instructions on setting up and configuring Admin and Managed Servers.
Configuring
WebLogic
You should also read the following articles to familiarize yourself with Liferay DXP’s general installation
steps:
Setting Liferay DXP
Properties
Installing Liferay DXP
Installing Liferay
Preparing for Install
DXP Dependencies
Installing Liferay DXP Manually
Database
Configuration
Finally, download Liferay DXP’s WAR file and dependencies from the Customer Portal. You’ll need these
files:
Mail Configuration

Deploying Liferay
liferay-dxp-digital-enterprise-[version].war : Liferay DXP WAR file
DXP

liferay-dxp-digital-enterprise-dependencies-[version].zip : Liferay DXP dependencies

liferay-dxp-digital-enterprise-osgi-[version].zip : Liferay DXP OSGi dependencies

Checkpoint

Sugerencias
The following jars should be present within the liferay-dxp-digital-enterprise-dependencies-
[version].zip :

1. com.liferay.petra.concurrent.jar
2. com.liferay.petra.executor.jar
3. com.liferay.petra.function.jar
4. com.liferay.petra.io.jar
5. com.liferay.petra.lang.jar
6. com.liferay.petra.memory.jar
7. com.liferay.petra.nio.jar
8. com.liferay.petra.process.jar
9. com.liferay.petra.reflect.jar
10. com.liferay.petra.string.jar
11. com.liferay.registry.api.jar
12. hsql.jar
https://help.liferay.com/hc/es/articles/360017896732-Installing-Liferay-DXP-on-WebLogic-12c-R2#setting-liferay-dxp-properties 2/11
30/7/2019 Installing Liferay DXP on WebLogic 12c R2 – Liferay

13. portal-kernel.jar
Productos Recursos Seguridad Soporte
14.Help Center
portlet.jar Buscar

The following folders should be present within the /liferay/osgi folder:


En esta página

1. Configs
Configuring
WebLogic’s
2. CoreNode
Manager
3. Marketplace
Configuring
4. Modules
WebLogic
5. Portal
6. Static
Setting Liferay DXP
Properties
7. Test
8. War
Installing Liferay
DXP Dependencies
Without any further ado, get ready to install Liferay DXP in WebLogic!
Database
Configuration
Configuring
Mail Configuration
WebLogic’s Node Manager
Deploying
WebLogicLiferay
requires a Node Manager to start and stop managed servers. Before installing Liferay DXP,
DXP
you must configure the Node Manager included with your WebLogic installation. You’ll do this via the
domains/your_domain_name/nodemanager/nodemanager.properties file. Open this file and set the
SecureListener property to false :

SecureListener=false

Sugerencias
This setting disables the encryption (SSL) requirement for the Node Manager, allowing it to accept
unencrypted connections. Although it’s possible to run Liferay DXP with this property set to true , you
may encounter di iculties doing so. Also note that with SecureListener set to true , you must
configure your machine in the Admin Server’s console to accept unencrypted connections from the
Node Manager. To do this, first log in to your Admin Server and select Environment → Machines from the
Domain Structure box on the le . Click your machine in the table and then select the Configuration →
Node Manager tab. In the Type field, select Plain from the selector menu, and then click Save. You must
restart your Admin Server for this change to take e ect.

If you’re running WebLogic on Mac or Linux, you may also need to set the NativeVersionEnabled
property to false :

NativeVersionEnabled=false

This tells the Node Manager to start in non-native mode. This is required for the platforms where
https://help.liferay.com/hc/es/articles/360017896732-Installing-Liferay-DXP-on-WebLogic-12c-R2#setting-liferay-dxp-properties 3/11
30/7/2019 Installing Liferay DXP on WebLogic 12c R2 – Liferay

WebLogic doesn’t provide native Node Manager libraries.


Productos Recursos Seguridad Soporte
Help Center Buscar

Configuring WebLogic
En esta página

Next, you must set some variables in two WebLogic startup scripts. These variables and scripts are as
Configuring
follows. BeNode
WebLogic’s sure to use set instead of export if you’re on Windows.
Manager
1. your-domain/startWebLogic.[cmd|sh] : This is the Admin Server’s startup script.
Configuring
WebLogic
2. your-domain/bin/startWebLogic.[cmd|sh] : This is the startup script for Managed Servers.
Setting Liferay DXP
Properties
Add the following variables to both startWebLogic.[cmd|sh] scripts:
Installing Liferay
DXP Dependencies

Database export DERBY_FLAG="false"


Configuration
export JAVA_OPTIONS="${JAVA_OPTIONS} -Dfile.encoding=UTF-8 -Duser.timezone=GMT -da
export MW_HOME="/your/weblogic/directory"
Mail Configuration
export USER_MEM_ARGS="-Xmx2048m"
Deploying Liferay
DXP

Important: For Liferay DXP to work properly, the application server JVM must use the GMT time
zone and UTF-8 file encoding.

The DERBY_FLAG setting disables the Derby server built in to WebLogic, as Liferay DXP doesn’t
require this server. The remaining settings support Liferay DXP’s memory requirements, UTF-8

Sugerencias
requirement, Lucene usage, and Aspect Oriented Programming via AspectJ. Also make sure to set
MW_HOME to the directory containing your WebLogic server on your machine. For example:

export MW_HOME="/Users/ray/Oracle/wls12210"

3. Some of the settings are also found in the your-domain/bin/SetDomainEnv.[cmd|sh] . Add the
following variables (Windows):

set WLS_MEM_ARGS_64BIT=-Xms512m -Xmx2048m


set WLS_MEM_ARGS_32BIT=-Xms512m -Xmx2048m

or on Mac or Linux:

WLS_MEM_ARGS_64BIT="-Xms512m -Xmx2048m"
export WLS MEM ARGS 64BIT
https://help.liferay.com/hc/es/articles/360017896732-Installing-Liferay-DXP-on-WebLogic-12c-R2#setting-liferay-dxp-properties 4/11
30/7/2019 Installing Liferay DXP on WebLogic 12c R2 – Liferay
p _ _ _
Productos Recursos Seguridad Soporte
Help Center Buscar
WLS_MEM_ARGS_32BIT="-Xms512m -Xmx2048m"
export WLS_MEM_ARGS_32BIT
En esta página

4. Set the Java file encoding to UTF-8 in your-domain/bin/SetDomainEnv.[cmd|sh] by appending


Configuring
WebLogic’s Node
-Dfile.encoding=UTF-8 ahead of your other Java properties:
Manager

Configuring
JAVA_PROPERTIES="-Dfile.encoding=UTF-8 ${JAVA_PROPERTIES} ${CLUSTER_PROPERTIES}"
WebLogic

Setting Liferay DXP


Properties
5. You must also ensure that the Node Manager sets Liferay DXP’s memory requirements when
starting
Installing Liferaythe Managed Server. In the Admin Server’s console UI, navigate to the Managed Server
DXP Dependencies
you want to deploy Liferay DXP to and select the Server Start tab. Enter the following parameters
Database
into the Arguments field:
Configuration

Mail Configuration
-Xmx2048m -XX:MaxMetaspaceSize=512m
Deploying Liferay
DXP
Click Save when you’re finished.

Next, you’ll set some Liferay DXP-specific properties for your Liferay DXP installation.

Setting Liferay DXP Properties

Sugerencias
Before installing Liferay DXP, you must set the Liferay Home folder’s location via the liferay.home
property in a portal-ext.properties file. You can also use this file to override other Liferay DXP
properties that you may need.

First, decide which folder you want to serve as Liferay Home. In WebLogic, your domain’s folder is
generally Liferay Home, but you can choose any folder on your machine. Then create your portal-
ext.properties file and add the liferay.home property:

liferay.home=/full/path/to/your/liferay/home/folder

Remember to change this file path to the location on your machine that you want to serve as Liferay
Home.

Now that you’ve created your portal-ext.properties file, you must put it inside the Liferay DXP WAR
file. Expand the Liferay DXP WAR file and place portal-ext.properties in the WEB-INF/classes
https://help.liferay.com/hc/es/articles/360017896732-Installing-Liferay-DXP-on-WebLogic-12c-R2#setting-liferay-dxp-properties 5/11
30/7/2019 Installing Liferay DXP on WebLogic 12c R2 – Liferay

folder. Later, you can deploy the expanded archive to WebLogic. Alternatively, you can re-WAR the
Productos Recursos Seguridad Soporte
Helparchive
expanded Center Buscar
for later deployment. In either case, Liferay DXP reads your property settings once it
starts up.

En esta página
If you need to make any changes to portal-ext.properties a er Liferay DXP deploys, you can find it
Configuring
in your domain’s autodeploy/ROOT/WEB-INF/classes folder. Note that the autodeploy/ROOT folder
WebLogic’s Node
contains the Liferay DXP deployment.
Manager

Next, you’ll install Liferay DXP’s dependencies.


Configuring
WebLogic

Installing Liferay DXP Dependencies


Setting Liferay DXP
Properties

Installing Liferay
DXP Dependencies
You must now install Liferay DXP’s dependencies. Recall that earlier you downloaded two ZIP files
Database
containing these dependencies. Install their contents now:
Configuration

Mail 1.
Configuration
liferay-dxp-digital-enterprise-dependencies-[version].zip : Unzip this file and place its
contents in your WebLogic domain’s lib folder.
Deploying Liferay
DXP
2. liferay-dxp-digital-enterprise-osgi-[version].zip : Unzip this file and place its contents
in the Liferay_Home/osgi folder (create this folder if it doesn’t exist).

You must also add your database’s driver JAR file to your domain’s lib folder. Note that although
Hypersonic is fine for testing purposes, you should not use it for production Liferay DXP instances.

Sugerencias
Checkpoint

Your domain lib folder has these jars:

com.liferay.petra.concurrent.jar
com.liferay.petra.executor.jar
com.liferay.petra.function.jar
com.liferay.petra.io.jar
com.liferay.petra.lang.jar
com.liferay.petra.memory.jar
com.liferay.petra.nio.jar
com.liferay.petra.process.jar
com.liferay.petra.reflect.jar
com.liferay.petra.string.jar
com.liferay.registry.api.jar
hsql.jar
https://help.liferay.com/hc/es/articles/360017896732-Installing-Liferay-DXP-on-WebLogic-12c-R2#setting-liferay-dxp-properties 6/11
30/7/2019 Installing Liferay DXP on WebLogic 12c R2 – Liferay
q j
portal-kernel.jarProductos Recursos Seguridad Soporte
Help Center Buscar
portlet.jar

A
EnJDBC driver for your database has been added to your domain’s lib folder. Here are some common
esta página
JDBC drivers:
Configuring
WebLogic’s Node
Managermariadb.jar
mysql.jar
Configuring
postgres.jar
WebLogic

Your Liferay DXPHome]/osgi folder has these subfolders:


Setting[Liferay
Properties
Configs
Installing Liferay
Core
DXP Dependencies
Marketplace
Database
Modules
Configuration
Portal
Mail Configuration
Static
Test
Deploying Liferay
DXP War

Next, you’ll configure your database.

Database Configuration

Sugerencias
Use the following procedure if you want WebLogic to manage your database for Liferay DXP. You can
skip this section if you want to use Liferay DXP’s built-in Hypersonic database.

1. Log in to your AdminServer console.

2. In the Domain Structure tree, find your domain and navigate to Services → JDBC → Data Sources.

3. To create a new data source, click New. Fill in the Name field with Liferay Data Source and the
JNDI Name field with jdbc/LiferayPool . Select your database type and driver. For example,
MySQL is MySQL’s Driver (Type 4) Versions:using com.mysql.jdbc.Driver. Click Next to continue.

4. Accept the default settings on this page and click Next to move on.

5. Fill in your database information for your MySQL database.

6. If using MySQL, add the text ?useUnicode=true&characterEncoding=UTF-


8&\useFastDateParsing=false to the URL line and test the connection. If it works, click Next.
https://help.liferay.com/hc/es/articles/360017896732-Installing-Liferay-DXP-on-WebLogic-12c-R2#setting-liferay-dxp-properties 7/11
30/7/2019 Installing Liferay DXP on WebLogic 12c R2 – Liferay

Productos Recursos Seguridad Soporte


7.Help
SelectCenter
the target for the data source and click Finish. Buscar

8. You must now tell Liferay DXP about the JDBC data source. Create a portal-ext.propreties file
En esta página
in your Liferay Home directory, and add the line jdbc.default.jndi.name=jdbc/LiferayPool .
Configuring
WebLogic’s Node
Alternatively,
Manager
you can make the above configuration strictly via properties in the portal-
ext.properties file. To do so, place the following properties and values in the file. Be sure to change
Configuring
the your* values with the values appropriate for your database’s configuration (if using MySQL):
WebLogic

Setting Liferay DXP


jdbc.default.driverClassName=com.mysql.jdbc.Driver
Properties
jdbc.default.url=jdbc:mysql://your.db.ip.address/yourdbname?useUnicode?useUnicode=true&
Installing Liferay
DXP Dependencies
jdbc.default.username=yourdbuser
Database
jdbc.default.password=yourdbpassword
Configuration

Mail Configuration
Next, you’ll configure your mail session.
Deploying Liferay
DXP
Mail Configuration

If you want WebLogic to manage your mail session, use the following procedure. If you want to use
Liferay’s built-in mail session (recommended), skip this section.

Sugerencias
1. Start WebLogic and log in to your Admin Server’s console.

2. Select Services → Mail Sessions from the Domain Structure box on the le hand side of your Admin
Server’s console UI.

3. Click New to begin creating a new mail session.

4. Name the session LiferayMail and give it the JNDI name mail/MailSession . Then fill out the
Session Username, Session Password, Confirm Session Password, and JavaMail Properties fields as
necessary for your mail server. See the WebLogic documentation for more information on these
fields. Click Next when you’re done.

5. Choose the Managed Server that you’ll install Liferay DXP on, and click Finish. Then shut down
your Managed and Admin Servers.

6. With your Managed and Admin servers shut down, add the following property to your portal-
ext.properties file in Liferay Home:

https://help.liferay.com/hc/es/articles/360017896732-Installing-Liferay-DXP-on-WebLogic-12c-R2#setting-liferay-dxp-properties 8/11
30/7/2019 Installing Liferay DXP on WebLogic 12c R2 – Liferay

Productos Recursos Seguridad Soporte


Help Center Buscar
mail.session.jndi.name=mail/MailSession

En esta página
Liferay DXP references your WebLogic mail session via this property setting. If you’ve already
deployed Liferay DXP, you can find your portal-ext.properties file in your domain’s
Configuring
WebLogic’s Node
autodeploy/ROOT/WEB-INF/classes folder.
Manager

Your changes take e ect upon restarting your Managed and Admin servers.
Configuring
WebLogic

Deploying Liferay DXP


Setting Liferay DXP
Properties

Installing Liferay
DXP Dependencies
As mentioned earlier, although you can deploy Liferay DXP to a WebLogic Admin Server, you should
Database
instead deploy it to a WebLogic Managed Server. Dedicating the Admin Server to managing other
Configuration
servers that run your apps is a best practice.
Mail Configuration
Follow these steps to deploy Liferay DXP to a Managed Server:
Deploying Liferay
DXP
1. Make sure the Managed Server you want to deploy Liferay DXP to is shut down.

2. In your Admin Server’s console UI, select Deployments from the Domain Structure box on the le
hand side. Then click Install to start a new deployment.

Sugerencias
3. Select the Liferay DXP WAR file or its expanded contents on your file system. Alternatively, you
can upload the WAR file by clicking the Upload your file(s) link. Click Next.

4. Select Install this deployment as an application and click Next.

5. Select the Managed Server you want to deploy Liferay DXP to and click Next.

6. If the default name is appropriate for your installation, keep it. Otherwise, give it a name of your
choosing and click Next.

7. Click Finish. A er the deployment finishes, click Save if you want to save the configuration.

8. Start the Managed Server where you deployed Liferay DXP. Liferay DXP precompiles all the JSPs
and then launches.

Nice work! Now you’re running Liferay DXP on WebLogic.

A er deploying Liferay DXP, you may see excessive warnings and log messages, such as the ones below,
https://help.liferay.com/hc/es/articles/360017896732-Installing-Liferay-DXP-on-WebLogic-12c-R2#setting-liferay-dxp-properties 9/11
30/7/2019 Installing Liferay DXP on WebLogic 12c R2 – Liferay

involving PhaseOptimizer . These are benign and can be ignored. Make sure to adjust your app server’s
Productos Recursos Seguridad Soporte
Help
logging Center
level or log filters to avoid excessive benign log messages. Buscar

En esta
Maypágina
02, 2018 9:12:27 PM com.google.javascript.jscomp.PhaseOptimizer$NamedPass process
WARNING: Skipping pass gatherExternProperties
Configuring
May 02,Node
WebLogic’s 2018 9:12:27 PM com.google.javascript.jscomp.PhaseOptimizer$NamedPass process
Manager
WARNING: Skipping pass checkControlFlow
May 02, 2018 9:12:27 PM com.google.javascript.jscomp.PhaseOptimizer$NamedPass process
Configuring
INFO: pass supports: [ES3 keywords as identifiers, getters, reserved words as propertie
WebLogic
current AST contains: [ES3 keywords as identifiers, getters, reserved words as properti
Setting Liferay DXP
Properties

Installing Liferay
DXP Dependencies

Database
Configuration
¿Fue útil este artículo?
Mail Configuration
Sí No
Deploying Liferay
DXP
Usuarios a los que les pareció útil: 0 de 0

Sugerencias
¿Necesitas más ayuda?

Abre un ticket

Contacta con nosotros

Pregunta en la Comunidad

Liferay University
Forma a tu equipo en los puntos esenciales del uso de Liferay con videos detallados y ejercicios prácticos
diseñados para simular una formación presencial

https://help.liferay.com/hc/es/articles/360017896732-Installing-Liferay-DXP-on-WebLogic-12c-R2#setting-liferay-dxp-properties 10/11
30/7/2019 Installing Liferay DXP on WebLogic 12c R2 – Liferay

Productos Recursos Seguridad Soporte


Help Center Buscar

Liferay Global Services


Aumenta
En esta páginatu conocimiento sobre el producto y el desarrollo gracias a expertos que te ayudarán a
maximizar tu ROI
Configuring
WebLogic’s Node
Manager

Configuring
WebLogic

Setting Liferay DXP


Properties

Installing Liferay
DXP Dependencies
Recursos
Database
Configuration
Descargas

Mail Configuration
Documentación

Deploying
Códigos deLiferay
activación
DXP
LESA

Suscripciones

Contacta con nosotros

Sugerencias
Soporte de la cuenta

Preguntas frecuentes a soporte

Sitios relacionados

Liferay.com

Marketplace

© 2019 LIFERAY INC. ALL RIGHTS RESERVED

Español 

https://help.liferay.com/hc/es/articles/360017896732-Installing-Liferay-DXP-on-WebLogic-12c-R2#setting-liferay-dxp-properties 11/11

You might also like