Change the WebSphere Portal and WSRP Producer URI
Overview
- Copy your custom portlet .WAR files to...
wp_root/installableAppsThis step is required because after changing the portal URI all portlets must be redeployed.
- Verify whether wcm WAR files ilwwcm-authoring-portlet.war, ilwwcm-localrendering-portlet.war and ilwwcm-remoterendering-portlet.war are present in...
wp_root/installableAppsIf the WAR files are not present, copy the files from...
wp_root/wcm/installableApps...to...
wp_root/installableApps- When specifying the context root (WpsContextRoot property), do not specify a value that is the same as a directory existing in a portlet WAR directory. For example, if you set the context root for WebSphere Portal to be /images (/wps is the default value) and there is also a portlet with the directory structure...
/myPortlet.ear/myPortlet.war/images...this could cause a conflict if the portlet encodes URI references to resources in its own /images directory. In this situation, the portlet would be unable to display images because WebSphere Portal would look for the image resources according to its own context root path instead of the directory path that is specified by the portlet WAR file.
- Go to...
WAS_HOME/AppServer/bin
...and stop WebSphere Portal
stopServer WebSphere_Portal
- Make a backup of $PORTAL_HOME/config/wpconfig.properties
- Edit...
$PORTAL_HOME/config/wpconfig.properties...and change any or all of the following...
Property Value PortalAdminPwd The password for the WebSphere Portal administrator, as defined in the PortalAdminId property. Recommended value: No recommended value for this property
Default value: None
WpsContextRoot The context root or base URI for the portal. All URLs beginning with this path will be reserved for the portal. The value of this property is part of the URL that is used to access WebSphere Portal from a browser. For example, http://hostname.setgetweb.com:9081/wps/portal
Recommended value: None
Sample value: home
Default value: wps
WsrpContextRoot The context root or base URI for WSRP Producer. Recommended value: None
Sample value: wsrp
Default value: wsrp
WpsDefaultHome The default portal page. This is the page for users who are not logged in. The value of this property is part of the URL that is used to access WebSphere Portal from a browser. For example, http://hostname.setgetweb.com:9081/wps/portal Recommended value: portal
Sample value: ibm
Default value: portal
WpsPersonalizedHome The portal page for users who have already logged in to the portal. This page cannot be accessed by anonymous users. The value of this property is part of the URL that is used to access WebSphere Portal from a browser. For example, http://hostname.setgetweb.com:9081/wps/myportal
Recommended value: myportal
Sample value: myibm
Default value: myportal
- Save the file.
- Open a command prompt and change to the following directory.
wp_root/config
- Perform the following steps, depending on whether you are using an internal or external Web server with WebSphere Portal.
- Internal Web server
- To change only the WSRP Producer context root or if no portlets are installed...
WPSconfig.bat modify-servlet-path
Check the output for any error messages before proceeding with the next task. If any of the configuration tasks fail, verify the values in the wpconfig.properties file.
- Configure the WebSphere Portal and/or the WSRP URI...
WPSconfig.bat modify-servlet-path action-update-portlets -DPortalAdminPwd=<password>
Check the output for any error messages before proceeding with the next task. If any of the configuration tasks fail, verify the values in the wpconfig.properties file.
- External Web server (such as IBM HTTP Server)
- Configure the WebSphere Portal URI...
./WPSconfig.sh modify-servlet-path
Check the output for any error messages before proceeding with the next task. If any of the configuration tasks fail, verify the values in the wpconfig.properties file.
- Regenerate the HTTP plugin in WAS. If you are using a remote Web server, copy the generated plugin-cfg.xml file to the remote server.
- Restart the Web server.
- Perform these steps only if you are changing the WebSphere Portal URI or if portlets are installed. The next steps should not be executed if only the WSRP Producer URI is being changed or if no portlets are installed:
- Update the portlets with the new context root information...
WPSconfig.bat action-update-portlets -DPortalAdminPwd=<password>
- Regenerate the HTTP plugin in WAS. If you are using a remote Web server, copy the generated plugin-cfg.xml file to the remote server.
- Restart the Web server.
- Start Portal
cd was_root/bin
startServer WebSphere_Portal
Next steps
You have completed this step. Continue to the next step by choosing one of the following topics:
See also
WebSphere is a trademark of the IBM Corporation in the United States, other countries, or both.
IBM is a trademark of the IBM Corporation in the United States, other countries, or both.