Refactoring Web project content roots

The context root is the web application root, which is the top-level directory of your application when it is deployed to the web server.

Procedure

  1. Right-click your web project and select Properties.
  2. In the Properties list, click Web Project Settings.
  3. In the Context root field, type the new context root. Click Apply. The Rename Context Root dialog opens. Click OK to close the dialog.
  4. Click OK to close the Properties dialog.
  5. Expand the EAR project for your web project and then expand META-INF.
  6. Double-click application.xml to open the Application Deployment Descriptor in the editor.
  7. In the Application list, select the web project. In the Details section, update the Context root field and ensure it has the same context root that you typed in the Web Project Settings properties.
  8. Save application.xml if needed.
Icon that indicates the type of topic Task topic
Timestamp icon Last updated: July 17, 2017 21:58

File name: trefactorcontextroot.html