Changing the Liferay Home directory for Studio on WebLogic Server

For a Studio installation on WebLogic Server, the default location of the Liferay Home directory is <MiddlewareHomeDirectory>/user_projects/domains, where <MiddlewareHomeDirectory> is the directory where you installed WebLogic Server. You can, if needed, use a different directory as the Liferay Home directory.

To create and configure a different location for the Liferay Home directory:

  1. Create the directory you want to use as the Liferay Home directory.
  2. Next, you need to update the version of portal-ext.properties located in the web-inf/classes directory of the endeca-portal-3.0.x.war file.

    This version of portal-ext.properties is only used to provide a pointer to the Liferay Home directory.

    To update this file:

    1. Use a .zip utility to open EID_3.0.x_Studio_portal_weblogic.zip.
    2. From EID_3.0.x_Studio_portal_weblogic.zip, copy out the file endeca-portal-weblogic-3.0.x.ear.
    3. From endeca-portal-weblogic-3.0.x.ear, extract endeca-portal-3.0.x.war to a temporary directory.
    4. In the web-inf/classes subdirectory, open portal-ext.properties.
    5. Add the liferay.home parameter to the top of the file.

      For example:

      liferay.home=/localdisk/liferay

      Note that for Windows, you must escape the back slashes. For example:

      liferay.home=C:\\Oracle\\Middleware\\user_projects\\domains
    6. Repackage endeca-portal-3.0.x.war.
    7. Use the updated version of endeca-portal-3.0.x.war to replace the version in endeca-portal-weblogic-3.0.x.ear.
    8. Use the updated version of endeca-portal-weblogic-3.0.x.ear to replace the version in EID_3.0.x_Studio_portal_weblogic.zip.
  3. Start the deployment process. The first step in the deployment process is to place portal-ext.properties in the Liferay Home directory. If you have changed the Liferay Home directory from the default, then you must add the liferay.home parameter to the top of the file:
    1. Extract the file portal-ext.properties from the top level of EID_3.0.x_Studio_portal_weblogic.zip.
    2. Place portal-ext.properties in the Liferay Home directory you created.
    3. Open the file.
    4. Add the liferay.home parameter to the top of the file.

      For example:

      liferay.home=/localdisk/liferay

      Remember that for Windows, you must escape the back slashes. For example:

      liferay.home=C:\\Oracle\\Middleware\\user_projects\\domains
  4. After adding the liferay.home property, you can then continue with step 2c of the Studio deployment process.