Publishing J2EE enterprise application projects to a J2EE publishing server

The J2EE publishing server supports the publishing of J2EE enterprise application (EAR) projects, dynamic Web projects, and enterprise bean (EJB) projects. The J2EE publishing server does not support static Web projects.

 

 

Prerequisites:

  1. Create either an EAR project, dynamic Web project or EJB project.

  2. Create a server, selecting J2EE publishing server as the server type.

  3. Add the project to the server .

To edit the J2EE publishing server configuration:

  1. In the Servers view, open the server editor by double-clicking your J2EE publishing server.

  2. You can edit the following settings:

    • HTTP port number The default HTTP port number is set to 80. Change the HTTP port number by selecting the field.

  3. In the Publishing settings table, you can edit the following columns after you have added projects to the server:

    • Project Name. Name of the projects that are associated with this server. You can not edit, remove, or add associated projects.

    • Document Root Relative URL The relative path to the project off the server root after publishing. For example if the Document Root Relative URL is /projects/myProject, then the project will be published to document_root/projects/myProject

    • Alias .The Alias is an alternative name used to specify a server relative URL.

  4. Save your changes.

  5. To publish using the J2EE publishing server, in the Servers view, select the J2EE publishing server that you want to publish.

  6. On the Servers view toolbar, click Publish to the server

    Picture of Publish toolbar icon, or right-click the server and select Publish.