To migrate the WAR project to WTP, create a project in WTP, and then migrate the resources of the WAR project. The procedure for migration is described below.
Create a dynamic Web project in WTP. For details on the procedure for creating the dynamic Web project, see 4.4.1 Creating a dynamic Web project.
The notes on creating a dynamic Web project during migration to WTP are as follows:
Table J-13 Values to be specified when creating a dynamic Web project
Item | Value |
---|---|
Project name | Specifies the project name of the WAR project. |
Content directory | Specifies the same value as that specified in WAR root folder of the WAR project. |
Context root | Specifies the value of the <context-root> tag of the DD (application.xml) of EAR project. |
Migrate the resources of the WAR project. For details on the resources that can be migrated, see Appendix J.2(3) Migrating the resources of a WAR project.
To migrate the resources of the WAR project, copy the resources to be migrated in the dynamic Web project created in WTP. You can use the import functionality of WTP to copy the resources. For details on the import procedure, see Appendix J.4(2) Migrating the resources of an EJB-JAR project.