Deploying portal projects

The Deploy Portal wizard allows you to publish your portal project directly to a Portal server from Rational Developer.

During deployment, all referenced portlets in portlet projects that do not exist on the server will be deployed. You can also update existing portlets from the workspace to the server.

Portal Designer deploys portal configurations using XML configuration interface, and optionally deploys files to WebSphere_install_directory/installedApps/node/wps.ear directory. To deploy files, have read, write, and delete access to this directory via copy or FTP. You can define this access method within the server settings. For more information on defining a server for portal deployment, see Defining servers for importing or publishing portals.

To deploy a portal, follow these steps:

  1. Right-click on the portal you want to deploy. From the menu, select Deploy Portal. The Deploy Portal wizard opens.

  2. In the Select Server window, choose the portal project and portal server that you want to use. If no servers appear in the portal server dialogue box, click New to define a server.

  3. For Deployment Options, choose whether you want to "Deploy portal configuration only" or "Deploy portal configuration and files"; then click Next. Choosing the latter option will allow the wizard to deploy the portal and its theme and skin files.

  4. In the Portlet page, choose which portlets you want to deploy by checking the corresponding boxes in the list of portlets. Required portlets for this project will have a greyed out check box next to their name. You cannot remove these from your portal.

  5. Choose how you want to be prompted for overwrite, and choose an overwrite method; then click Finish. If you are deploying a portal with portlets, it is best to choose "Update" because it will maintain the portlet's existing settings. If you want to clear all of the existing portlet settings on the server, choose "Remove & Deploy".

Once you start the deploy process, do not interrupt it. Errors in a project or an unfinished deploy may break a portal server. As such, you should not deploy directly to a production server. Before running deploy, it is recommended that you back up or image your server.

When the deploy wizard finishes, you will see the following message:

To ensure that the portal server uses the string changes correctly in the project, on the server, copy the contents of WebSphere_install_directory/installedApps/node/wps.ear/wps.war/WEB-INF/classes/nls to Portal_server_install_directory/shared/app/nls. WebSphere_install_directory and Portal_server_install_directory are the installed locations of WebSphere Application Server and WebSphere Portal server, respectively. node is the node name of the server.

Since the portal project does not have any access control information, use administration portlets in the published Portal site to set appropriate access control.

Limitations

 

Related tasks

Defining servers for importing or publishing portals
Exporting portal projects
Optimizing JSP file testing