This wiki does not contain official documentation and is currently deprecated and read only. Please try reading the documentation on the Liferay Developer Network, the new site dedicated to Liferay documentation. DISCOVER Build your web site, collaborate with your colleagues, manage your content, and more. DEVELOP Build applications that run inside Liferay, extend the features provided out of the box with Liferay's APIs. DISTRIBUTE Let the world know about your app by publishing it in Liferay's marketplace. PARTICIPATE Become a part of Liferay's community, meet other Liferay users, and get involved in the open source project. Deploying JSF Portlets on Oracle WebLogic 12c
This tutorial first shows how to install Liferay Portal on WebLogic 12c, then redirects to Liferay's official documentation, which steps through how to configure WebLogic 12c to successfully deploy JSF portlets to Liferay Portal. Note that this tutorial assumes that you are using Liferay Portal 6.2.
Download Oracle WebLogic Server #
Download wls1212_dev.zip (WebLogic Server 12.1.2.0) from the OTN Downloads page
Install Oracle WebLogic Server #
Step 1: Define the JAVA_HOME environment variable:
# Example Mac syntax export JAVA_HOME=`/usr/libexec/java_home`
Step 2: Define the USER_MEM_ARGS environment variable:
export USER_MEM_ARGS="-Xms512m -Xmx1024m -XX:MaxPermSize=256m"
Step 3: Define the Oracle Middleware MW_HOME environment variable:
export MW_HOME=$HOME/Oracle/Middleware
Step 4: Create the Oracle Middleware folder:
mkdir -p $MW_HOME
Step 5: Switch to the new folder:
cd $MW_HOME
Step 6: Extract wls1212_dev.zip into $HOME/Oracle/Middleware
unzip wls1212_dev.zip mv wls12120/* . rmdir wls12120
Step 7: Verify that you have the following folder hierarchy:
- $MW_HOME/coherence/
- $MW_HOME/configure.cmd
- $MW_HOME/configure.sh
- $MW_HOME/configure.xml
- $MW_HOME/domain-registry.xml
- $MW_HOME/logs/
- $MW_HOME/oracle_common/
- $MW_HOME/osarch.xml
- $MW_HOME/user_projects/
- $MW_HOME/wlserver/
Step 8: Execute the WebLogic configuration script:
./configure.sh
Step 9: Define additional WebLogic environment variables:
./wlserver/server/bin/setWLSEnv.sh
Configure WebLogic Server Domain #
Step 10: Run the WebLogic Configuration Wizard
./wlserver/common/bin/config.sh
Step 11: On the Create Domain page, enter the full path to the domain that you want to create and click Next
Step 12: On the Templates page, accept the default options and click Next
Step 13: On the Administrator Account page, enter a password and click Next.
Step 15: On the Domain Mode and JDK page, select "Development" and click Next.
Step 16: On the Advanced Configuration page, accept the default options and click Next.
Step 17: On the Configuration Summary page, click Create.
Step 18: On the Configuration Progress page, click Next when the installation is complete.
Step 19: On the Configuration Success page, click Finish.
Install Liferay Portal 6.2 #
In order to install Liferay Portal 6.2 in WebLogic Server, please follow the instructions in the official Liferay documentation titled Installing Liferay on Oracle WebLogic 12c (12.1.2 and higher).
Configuration for Deploying JSF Portlets #
This article has been incorporated into the official Liferay documentation. Refer to the section titled Configuration for Deploying JSF Portlets in the Installing Liferay on Oracle WebLogic 12c (12.1.2 or higher) chapter.