Configuring a non-root context for a WebLogic instance

By default, Studio uses the root context. If you are installing Studio on a non-root context, then before you deploy the Studio .ear file, you need to update the application.xml file to specify the context root.

Note that any change to the context root only affects the Studio application. Components, themes, and other hooks still use their default context paths.

To change the context root:

  1. Open the META-INF/application.xml file in endeca-portal-weblogic.ear.
  2. Find the following xml snippet:
    <module>
      <web>
        <web-uri>endeca-portal.war</web-uri>
        <context-root>/</context-root>
      </web>
    </module>
  3. Update the value of the context-root element to your chosen context root path.

    The value should have a trailing slash. For example:

    <module>
      <web>
        <web-uri>endeca-portal.war</web-uri>
        <context-root>/mycompany/portal/</context-root>
      </web>
    </module>

For a non-root context, you also must specify the context root in the portal-ext.properties that you install in the Liferay Home directory. Deploying the Studio .ear file includes instructions for installing and updating this version of portal-ext.properties.