This guide is to help the user set up WebLogic 11g (10.3.6).
Obtain the required .jar files.
- Copy the serializer.jar and the xalan.jar from the [$build]/lib/portal.
- Obtain the Liferay Portal 6.2 EE .war file.
- Obtain the Liferay dependencies.
Configure the portal-ext.properties
- In the portal-ext.properties, set MySQL as the database. (see below)
- Set the directory for the Liferay Home folder. WebLogic will not create this file so create this file manually. As a best practice, create this file in the C:\ folder and name it "Home". This is important because the WebLogic will not hot deploy a folder unless a Liferay Home folder has been set in the portal-ext.properties.
- When everything is added, the portal-ext.properties file should look something like this:
plugin.notifications.enabled=false jdbc.default.jndi.name=jdbc.default.driverClassName=com.mysql.jdbc.Driver jdbc.default.url=jdbc:mysql:localhost/lportal?useUnicode=true&characterEncoding=UTF-8&useFastDateParsing=false jdbc.default.username=[whatever you want] jdbc.default.password=[whatever you want] liferay.home=
- Place the portal-ext.properties inside the Liferay.war file
Setting up WebLogic
- Start the WebLogic Server Configuration Wizard.
- Create a new WebLogic domain
- Generate a domain configured automatically
- Leave most defaults.
- Enter password1 in the password field.
- Flag Other JDK and select the JDK installed earlier.
- Navigate to the jdk/jre/lib folder and create a folder named “endorsed”.
- Place inside this folder the serializer.jar and the xalan.jar files.
- Navigate to C:/Oracle/Middleware/user_projects/domains/base_domain/bin
- Open the setDomainEnv.cmd file.
- Find set “MEM_MAX_PERM_SIZE_32BIT=-XX:MaxPermSize=128m” and replace it with set “MEM_MAX_PERM_SIZE_32BIT=-XX:MaxPermSize=256m”
- Find set “WLS_MEM_ARGS_32BIT=-Xms256m -Xmx512m” and replace it with set “WLS_MEM_ARGS_32BIT=-Xms256m -Xmx1024m”
Note: There are two; change them both.
- Change the JDK from the default JDK 1.6.29 to newer versions. Note: the file path to the JDK must not contain spaces.
- Place the files from the dependencies folder into C:\Oracle\Middleware\user_projects\domains\base_domain\lib\ext. Create the \ext folder if it does not already exists.
Setting up WebLogic
- There are two ways to start WebLogic Server Domain.
- The first way is through the command console. 1. Navigate to C:\oracle\middleware\user_projects\domains\base_domain\bin 2. Enter startWebLogic.cmd
- The other way is through the Windows Start menu 1. Programs> Oracle WebLogic> User Projects> base_domains> Start Admin Server
- Open a browser to [IP address]:7001/console
- Login as "WebLogic" and enter the password set earlier.
- Click Deployments
- Click Install in the console and select the liferay.war file. When prompted, check the "Install this deployment as an application."
- Check the "DD Only: Use only roles and polices that are defined in the deployment descriptors."
- Check the "I will make the deployment accessible from the following location"
- Finish the installation.
- Once the .war file has been loaded, click Save.
These are the steps to setup Liferay Portal on WebLogic 10.3.6. Once the user has completed these steps, Liferay Portal is ready to be deployed.
There was a change made to
weblogic.xml file. It contains prefer-application-packages that are not compatiblewith 10.3.2. For Weblogic 10.3.2, additional configurations are required. Follow the steps found here: Portal on Weblogic 10.3.2