Migrating WebSphere Portal v5.0 portlets to v5.1
Most portlets written for WebSphere Portal v5.0 will run unchanged in WebSphere Portal v5.1. Some of the Portlet 5.0 APIs are now marked as deprecated, but are still available on WebSphere Portal v5.1. However, some portlets will have to be migrated as described in this topic. It is recommended that you migrate portlet projects to the version of WebSphere Portal that your portlets will be installed on.
Note: Migrated portlet application projects are not backward compatible.
To migrate portlet applications for WebSphere Portal v5.0 to v5.1, do the following:
- Migrate the Portal v5.0 portlet projects to Portal v5.1 portlet projects:
- Right-click the portlet project that you want to migrate.
- Select Properties > Portlet API to open the Portlet API page.
- Select WebSphere Portal Version v5.1 from the Portlet API version drop-down list.
- Click OK, and the following changes are automatically made:
- The tag library descriptor (TLD) file for the portlet API is removed if it exists.
- The JRE containers for WebSphere Portal v5.0 that are associated with the project will be changed to WebSphere Portal v5.1 JRE containers.
- The WebSphere Portal v5.0 target runtime servers that are associated with the project will be changed to WebSphere Portal v5.1 target runtime servers.
- If your portlet project is associated with an enterprise application project, it is recommended that you migrate the target server of the EAR project to WebSphere Portal v5.1.
- If the migrated portlet project is only associated with the enterprise application project, do the following:
- Close all editors in the workbench.
- Right-click the enterprise application project with which the migrated portlet project is associated.
- Select Properties > Server to open the Server page.
- Select WebSphere Portal v5.1 as the Target Runtime.
- Click Apply.
- If other portlet projects are associated with the enterprise application project, remove the migrated portlet project and add it to another enterprise application project. Follow these steps:
- Remove the module of the migrated portlet project from the enterprise application project.
- Expand the enterprise application project and select the deployment descriptor.
- Select Open With > Deployment Descriptor Editor.
- Select the Module tab. On the Module page of the editor, select the WAR file of the migrated portlet project.
- Click Remove.
- Select File > Save to save the changes.
- Create a new enterprise application project and add the portlet project to it.
- Select File > New > Project.
- Select the Show All Wizards check box.
- Expand J2EE and select Enterprise Application Project.
- Fill in the project Name field.
- Select J2EE version 1.3
- Select WebSphere Portal v5.1 as the target server
- Click Next.
- On the EAR Module Projects page, select the migrated portlet project and click Finish.
Related tasks
Migrating to the portal tools in Rational Application Developer V6.0