Changing the context path for Studio on WebLogic Server

When you first install Studio, it uses the context path /eid/. After you deploy Studio, you can change to a different context path.

To change the context path, you use the deployment plan provided with Studio. By default, as an example, the deployment plan is configured to change the context path from /eid/ to /studio/.

To deploy Studio to a different context path:

  1. From the top level of the WebLogic .zip file, extract the file change-context-roots-deployment-plan.xml.
  2. In the <module-override> section of the file:
    1. Verify that the value of <module-name> matches the actual name of the Studio WebLogic .ear file.

      For example:

      <module-override>
          <module-name>endeca-portal-weblogic-3.1.0.12345.ear</module-name>

      If necessary, update the value to match the file name.

    2. Under <variable-definition>, edit the values of the <variable> elements to reflect the new context path.

      Make sure to update all of the variables. There are variables for Studio as a whole as well as individual variables for each Studio component.

      By default, as an example, the <variable> elements are configured to change the context path to /studio/, as shown in the following excerpt.

      <variable>
          <name>endeca-portal-context-root</name>
          <value>/studio/</value>
      </variable>
      <variable>
          <name>endeca-navigation-portlet-context-root</name>
          <value>/studio/endeca-navigation-portlet/</value>
      </variable>

      Replace all instances of /studio/ with the context path you want to use. For example, if you were changing the context path to /newpath/, in values of the <variable> elements, you would replace all instances of /studio/ with /newpath/:

      <variable>
          <name>endeca-portal-context-root</name>
          <value>/newpath/</value>
      </variable>
      <variable>
          <name>endeca-navigation-portlet-context-root</name>
          <value>/newpath/endeca-navigation-portlet/</value>
      </variable>
    3. Save the file.
  3. Apply the file to your Studio deployment.
    1. Go to the Administration Console at <hostname>:8101/console.
    2. Click Lock & Edit at the top left of the page.
    3. Under Domain Structure, click Deployments.
    4. In the Deployments list, check the checkbox for your Studio deployment.
    5. Click the Update button.
    6. Click the Redeploy this application using the following deployment files radio button.
    7. Under Deployment plan path, click the Change Path button.
    8. In the Path field, specify the full path to change-context-roots-deployment-plan.xml.
    9. Click the radio button next to the file name.
    10. Click Finish.
    11. Click Activate Changes.