Redeploying an Application to a Different Server

See Also 

If you need to redeploy a Java EE application to a different server, you can easily create a new archive that is deployable to the other server. You can do so using the IDE's Packaged Archive project template.

To create a Packaged Archive project, you only need the deployable archive file (such as an EAR file, an EJB JAR file, or a WAR file). You do not need the application's sources. Also, it is not necessary to have developed the application in the IDE.

You can then configure that project for deploying the application on the other server. For example, you might have to modify deployment descriptor files. Then you can create a new archive file and deploy the file to the other server.

To redeploy a project to a different server:

  1. Make sure that you have the server registered in the IDE's Server Manager.

    If you do not have the server registered, choose Tools > Servers and register the server.

  2. Choose New > New Project (Ctrl-Shift-N).

    The New Project wizard appears.

  3. Select the Java EE category, select the Packaged Archive template, and click Next.
  4. In the second page of the wizard, fill in the following fields:
  5. Click Finish to exit the wizard.
  6. As necessary, add, modify, and delete the configuration files for the archive file. For example, you probably need to delete a server-specific deployment descriptor and create a new deployment descriptor that is specific to the server to which you will redeploy.

    You can find these files by opening the Projects window and expanding the node for the newly created project. The files are grouped within the Server Resources and Config Files nodes. If the project contains sub-archives, Config nodes for those sub-archives also appear.

    You can add server resources and other configuration files by right-clicking the project's node and choosing from a template in the New submenu.

  7. Build the project by right-clicking the project's node and choosing Build.
  8. Verify the Java EE compliance of the changed files by right-clicking the project's node and choosing Verify.
  9. Deploy the application to the new server by right-clicking the project's node and choosing Deploy.
See Also
About Packaged Archive Projects
About Deployment Descriptors
Verifying an Enterprise Application
About Standard Projects
About Free-Form Projects

Legal Notices