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:
- 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.
- Choose New > New Project (Ctrl-Shift-N).
The New Project wizard appears.
- Select the Java EE category, select the
Packaged Archive template, and click Next.
- In the second page of the wizard, fill in the following fields:
- Project Name. The name for your project as it will appear in the Projects window.
- Project Location. The location where the project will be stored on your system.
- Archive File. The JAR file, WAR file, EAR file, or other binary
archive file on which you are basing the project.
- Target Server. The server to which you plan to deploy the
repackaged archive file.
- Click Finish to exit the wizard.
- 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.
- Build the project by right-clicking the project's node and choosing Build.
- Verify the Java EE compliance of the changed files by right-clicking
the project's node and choosing Verify.
- 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