Weblogic 14.1.1 + Liferay Installation

NOTE: Liferay Support does not recommend or endorse specific third-party products over others. The information provided about products not created by Liferay is for reference purposes only, and any implementation of these principles will be at your team's discretion.

Prerequisites:

Oracle Java.
War and OSGI file from Liferay help center (DXP 7.4 update 31)

1. Sign up for an Oracle Account

2. WebLogic Server

3. Weblogic Server Installation

  • Use the below command to run the WebLogic setup

java -jar fmw_14.1.1.0.0_wls_lite_generic.jar


  • Change the location if you want and click Ok

  • Welcome -> Next

  • Auto updates -> Next

  • Installation Location -> Next

  • Installation Type -> Next

  • Prerequisite Checks

  • Installation Summary -> Install 

  • Installation Progress -> Next 

  • Installation Complete -> Finish

Fusion Middleware Configuration Wizard UI Weblogic

  • Configuration Type > Update the location, change base_domain to liferay_31 > Next

  • Available Templates -> Select all and Click -> Next

  • Administrator Account > Remember the name and enter the Password > Next

  • Domain Mode and JDK > Keep as default > Next

  • Advanced Configuration > Select all > Next

  • Administration Server > Keep as default > Next

  • Node Manager > The credentials are the same as your Administrator Account > Next

  • Click next until you reach End of configuration then -> Finish

  • After successfully configuring WebLogic we can see this path in our local instance 

  • Copy the downloaded OSGI file in this folder and extract it

  • Use this command: “Unzip liferay-dxp-osgi-7.4.13.U31-20220628145020251.zip”

  • In nodemanager.properties add the below two properties

NativeVersionEnabled=false
StartScriptEnabled=true

 

  • Go inside liferay_u31/bin location

Create a file called “setUserOverridesLate.sh”.
Paste the below line into the file.
Change the location to your WebLogic installation location.
Make it executable by using this command: “chmod u+x setUserOverridesLate.sh 

export DERBY_FLAG="false"

export JAVA_OPTIONS="${JAVA_OPTIONS} -Dfile.encoding=UTF-8 -Djava.locale.providers=JRE,COMPAT,CLDR -Djava.net.preferIPv4Stack=true -Dlog4j2.formatMsgNoLookups=true -Duser.timezone=GMT -da:org.apache.lucene... -da:org.aspectj..."

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

export MW_HOME="/home/me/Oracle_DXP31/Middleware/Oracle_Home/wlserver"

export USER_MEM_ARGS="-Xms2560m -Xmx2560m -XX:MaxNewSize=1536m -XX:MaxMetaspaceSize=768m -XX:MetaspaceSize=768m -XX:NewSize=1536m -XX:SurvivorRatio=7"

  • Change the liferay-dxp-osgi-7.4.13.u31 to osgi

  • Now start the WebLogic server by using ./startWebLogic.sh inside liferay/bin folder

It will run in the default port 7001 you can access it through localhost:7001/console

  • After login go to Deployments and Click on Install

  • Upload the war file that you have downloaded for u31 in case if you are using different liferay war place it accordingly. 

  • Click on Choose file on Deployment Archive 

  • After uploading click Next and you will get a successful message after importing the war file after that click Next

  • Select Install this deployment as an application 

  • Click Next 

  • Click -> Finish  It will take some time after that your Liferay u31 is successfully installed on the WebLogic server 

  • You can check the folder where all Liferay-related folders are installed and deploy your activation key in the deploy folder. 

  • You can check the state is Active and Health is OK which means our Liferay is installed on the Weblogic server. 

5. Patching tool installation

  • There is no patching tool in the default folder so you can download it from the help centre and we can configure it. Download the correct patching tool version based on the compatibility.

Download this version if you are using DXP 7.4
  • Install the downloaded patching tool version in the below location

  • Go to this location and see the war file is there now unzip the war file by using the below command

jar -xvf liferay-dxp-7.4.13.u31-20220628145020251.war
  • Create a file called default.properties in a patching-tool folder and add the below lines to the file

global.lib.path=../liferay_31/servers/AdminServer/upload/liferay-dxp-7.4.13.u31-20220628145020251.war/app/WEB-INF/shielded-container-lib
war.path=../liferay_31/servers/AdminServer/tmp/_WL_user/liferay-dxp-7.4.13.u31-20220628145020251/xv098/war
liferay.home=/home/me/Oracle/Middleware/Oracle_Home/user_projects/domains

Change the location of global.lib.path, war.path, liferay.home according to your file structure. 

 

  • If you face the below error you can enable this property in default.properties
    update.cache=false”

  • After enabling the above property it resolves the error after that you can install a hotfix on the WebLogic application. 

 

 

¿Fue útil este artículo?
Usuarios a los que les pareció útil: 0 de 0