Setting Up Liferay Portal 6.2 on Weblogic 11g

This guide is to help the user set up WebLogic 11g (10.3.6).

Resolution

Obtain the required .jar files.

  1. Copy the serializer.jar and the xalan.jar from the [$build]/lib/portal.
  2. Obtain the Liferay Portal 6.2 EE .war file.
  3. Obtain the Liferay dependencies.

Configure the portal-ext.properties

  1. In the portal-ext.properties, set MySQL as the database. (see below)
  2. 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.
  3. 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=
    	
    
  4. Place the portal-ext.properties inside the Liferay.war file

Setting up WebLogic

  1. Start the WebLogic Server Configuration Wizard.
  2. 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.
  3. Navigate to the jdk/jre/lib folder and create a folder named “endorsed”.
  4. Place inside this folder the serializer.jar and the xalan.jar files.
  5. 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.
  6. 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.
    • hsql.jar
    • portal-service.jar
    • portlet.jar

Setting up WebLogic

  1. There are two ways to start WebLogic Server Domain.
    1. The first way is through the command console. 1. Navigate to C:\oracle\middleware\user_projects\domains\base_domain\bin 2. Enter startWebLogic.cmd
    2. The other way is through the Windows Start menu 1. Programs> Oracle WebLogic> User Projects> base_domains> Start Admin Server
  2. Open a browser to [IP address]:7001/console
  3. Login as "WebLogic" and enter the password set earlier.
  4. Click Deployments
  5. Click Install in the console and select the liferay.war file. When prompted, check the "Install this deployment as an application."
  6. Check the "DD Only: Use only roles and polices that are defined in the deployment descriptors."
  7. Check the "I will make the deployment accessible from the following location"
  8. Finish the installation.
  9. 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.

Additional Information

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

这篇文章有帮助吗?
0 人中有 0 人觉得有帮助