You can change the default portal Uniform Resource Identifier (URI) any time after you
install HCL Digital Experience. Some applications have a fixed context root
that cannot be changed.
About this task
If you are on Combined Cumulative Fix 8, go to Changing the portal URI after an installation.
HCL Digital Experience and Web Services for Remote Portlets are installed with a default URI. You can change
this URI after installation to better suit the requirements of your organization.
Notes:
- To change the HCL DX URI: When you specify the
context root, do not specify a value that is the same as a directory that exists in a portlet WAR
directory. For example, you set the HCL DX context root to
/images. There is a portlet with the directory structure
/myPortlet.ear/myPortlet.war/images. This issue might 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. HCL DX looks for the image resources according to its own
context root path instead of the directory path that is specified by the portlet WAR file.
- For changing the URI of a WSRP Producer portal:
Changing the WSRP Producer context root does not
require that you redeploy all portlets. Run the modify-servlet-path configuration task only.
Important: With Version 8,
the URI of the context root for the WSRP Producer is
/wps/wsrp
.
Before Version 8, this context root was
/wsrp
. If you migrated from
an earlier version, you still might have WSRP Consumers that attempt to access the WSRP Producer
with the previous context root (
/wsrp
). You can correct this issue
in one of the following ways:
- Modify the context root for the WSRP Producer to
/wsrp
. This
change enables the Consumers to access the Producer without requiring further changes to the
Consumers.
- Update the configuration of the WSRP Consumers to use the new context root (
/wps/wsrp
).
- If you use HCL Web Content Manager Syndication, the
Syndicators and Subscribers servers that refer to this
Portal instance must be updated with the modified URI. Log on to the HCL DX syndicating to this instance. Click the Administration menu icon. Then, click . Click the edit icon of the
Syndicator you want to edit. Update the URL with the new context root
information. Then, log on to the HCL DX subscribing to this
instance. Click the Administration menu icon. Then, click . Click the edit icon of the
subscriber you want to edit. Update the URL with the new context root information.
Cluster note: If you modify the URI in a clustered environment,
complete the steps that are described here on the primary node only, except where specified
differently. Also, verify that AutoSynch is set to a frequency
of 1 minute.
Procedure
-
Complete the following steps to manually modify the HCL DX context root:
-
Stop the WebSphere_Portal server.
-
Locate the wkplc.properties and wkplc_comp.properties files in the wp_profile_root/ConfigEngine/properties directory and create backup copies
before you change any values.
-
Use a text editor to open the wkplc.properties file and enter the
appropriate value for your environment in the WpsContextRoot
property.
-
Save and close the file.
-
Use a text editor to open the wkplc_comp.properties file
and enter the appropriate value for your environment in the following properties:
- WsrpContextRoot
- WpsPersonalizedHome
- WpsDefaultHome
Attention: Do not enter the same value for WpsPersonalizedHome and WpsDefaultHome.
-
Save and close the file.
-
Start the WebSphere_Portal server in a stand-alone environment or the deployment manager and
node agent in a clustered environment.
-
Open a command prompt and change to the wp_profile_root/ConfigEngine directory.
-
Complete the following steps to change the HCL DX
URI:
- To change the context root for the values that you entered in the WpsContextRoot, WsrpContextRoot, WpsPersonalizedHome, and or WpsDefaultHome properties, run the following task:
- AIX®
HP-UX
Linux™
Solaris:./ConfigEngine.sh modify-servlet-path -DPortalAdminPwd=password
-DWasPassword=password
- Windows™: ConfigEngine.bat modify-servlet-path -DPortalAdminPwd=password
-DWasPassword=password
- IBM® i: ConfigEngine.sh modify-servlet-path -DPortalAdminPwd=password
-DWasPassword=password
- z/OS®:./ConfigEngine.sh modify-servlet-path -DPortalAdminPwd=password
-DWasPassword=password
Note: Check the output for any error messages before you proceed with the next task. If any of
the configuration tasks fail, verify the values in the wkplc.properties and wkplc_comp.properties files.
- Restart the WebSphere_Portal server.
-
Run the following task to change the context root for the portlets:
- AIX®
HP-UX
Linux™
Solaris: ./ConfigEngine.sh modify-servlet-path-portlets -DPortalAdminPwd=password
-DWasPassword=password
- Windows™: ConfigEngine.bat modify-servlet-path-portlets
-DPortalAdminPwd=password
-DWasPassword=password
- IBM® i: ConfigEngine.sh modify-servlet-path-portlets
-DPortalAdminPwd=password
-DWasPassword=password
- z/OS®: ./ConfigEngine.sh modify-servlet-path-portlets -DPortalAdminPwd=password
-DWasPassword=password
Note: Check the output for any error messages before you proceed with the next task. If any of the
configuration tasks fail, verify the values in the wkplc.properties and wkplc_comp.properties files.
-
Complete the following steps on the Deployment Manager server:
-
Log on to the Deployment Manager WebSphere® Integrated Solutions Console.
-
Go to .
-
Click Trust association in the Web and SIP security
section.
-
Click Interceptors in the Additional Properties
section.
-
Click com.ibm.portal.auth.tai.HTTPBasicAuthTAI.
-
Edit the urlBlackList and urlWhiteList parameters
with the new context path, for example:
- urlBlackList: /wpsmodified/myportalmodified*
- urlWhiteList: /wpsmodified/mycontenthandler*
-
Click Apply.
-
Save all changes.
-
Log out of the Deployment Manager WebSphere® Integrated Solutions Console.
-
If necessary, start the WebSphere_Portal server in a stand-alone environment or the deployment
manager and node agent in a clustered environment.
-
Complete the following steps if you are using an external web server, such as an HTTP Server:
-
Choose one of the following options that are based on your HCL DX environment:
Table 1. configurewebservername command
options
HCL DX environment |
Steps |
Stand-alone configuration |
Complete the following steps in a stand-alone configuration:
- Copy the following script from the plugin_root/bin directory
of the web server to the wp_profile_root/bin directory on your HCL DX server:
- AIX®
HP-UX
Linux™
Solaris: ./configurewebservername.sh
- Windows™: configurewebservername.bat
- IBM® i: configurewebservername.sh
- z/OS®: ./configurewebservername.sh
where webservername is the web server definition name you defined
previously when you configured the HTTP Server for HCL DX,
for example: configurewebserver1.bat.
- Run the following command, from the wp_profile_root/bin directory:
- AIX®
HP-UX
Linux™
Solaris: ./configurewebservername.sh
- Windows™: configurewebservername.bat
- IBM® i: configurewebservername.sh
- z/OS®: ./configurewebservername.sh
|
Clustered configurationIdle
standby configuration |
Complete the following steps in a clustered
configurationidle standby configuration:
- Copy the following script from the plugin_root/bin directory
of the web server to the dmgr_profile/bin directory on your
Deployment Manager server:
- AIX®
HP-UX
Linux™
Solaris : ./configurewebservername.sh
- Windows™: configurewebservername.bat
- IBM® i: configurewebservername.sh
- z/OS®: ./configurewebservername.sh
where webservername is the web server definition name you defined
previously when you configured the HTTP Server for HCL DX,
for example: configurewebserver1.bat.
- Run the following command on the Deployment Manager server:
- AIX®
HP-UX
Linux™
Solaris: ./configurewebservername.sh
- Windows™: configurewebservername.bat
- IBM® i: configurewebservername.sh
- z/OS®: ./configurewebservername.sh
|
-
Regenerate the web server plug-in in WebSphere® Application Server. If
you are using a remote web server, copy the generated plugin-cfg.xml file to the remote server.
Important: Do not complete these steps if you are changing only the WSRP Producer URI.
-
Restart the web server.
-
Restart the WebSphere_Portal server.
-
Complete the following steps to update the registered Application URI entries in the
JCR.ICMSTJCRNODEREGISTER table:
Cluster note: In a clustered environment, complete these steps on the
primary node only.
-
Stop the WebSphere_Portal server.
-
Back up the database.
-
Prior to CF04, start the WebSphere_Portal server. Starting with CF04, do
not restart the WebSphere_Portal server.
-
Complete the following steps to unregister the node types:
- Open the ibmcontentwcm.registernodetypes file, which is in
the /WebSphere/PortalServer/wcm/prereq.wcm/config/nodetypes/
directory.
- Change <registerAction action="register"/> to
<registerAction action="deregister"/>.
- Save your changes.
- Run the following task:
- AIX®
HP-UX
Linux™
Solaris: ./ConfigEngine.sh action-register-wcm-nodetypes -DWasPassword=password
-DPortalAdminPwd=password
- Windows™: ConfigEngine.bat action-register-wcm-nodetypes
-DWasPassword=password
-DPortalAdminPwd=password
- IBM® i: ConfigEngine.sh action-register-wcm-nodetypes
-DWasPassword=password
-DPortalAdminPwd=password
- HP-UX: ./ConfigEngine.sh action-register-wcm-nodetypes
-DWasPassword=password
-DPortalAdminPwd=password
-
Complete the following steps to register the node types:
- Open the ibmcontentwcm.registernodetypes file, which is in
the /WebSphere/PortalServer/wcm/prereq.wcm/config/nodetypes/
directory.
- Change <registerAction action="deregister"/> to
<registerAction action="register"/>.
- Update all lines that contain the <ApplicationURI
name="wps/mypoc/?view=auth&uri=wcm:oid:"/> content.
Change the name of the
attribute value to reflect the new WpsContextRoot value that is
found in the wkplc.properties file. For example, if the original
value for WpsContextRoot was wps and the new value is wp8, change the lines to
<ApplicationURI
name="wp8/mypoc/?view=auth&uri=wcm:oid:"/>.
- Run the following task:
- AIX®
HP-UX
Linux™
Solaris: ./ConfigEngine.sh action-register-wcm-nodetypes -DWasPassword=password
-DPortalAdminPwd=password
- Windows™: ConfigEngine.bat action-register-wcm-nodetypes
-DWasPassword=password
-DPortalAdminPwd=password
- IBM® i: ConfigEngine.sh action-register-wcm-nodetypes
-DWasPassword=password
-DPortalAdminPwd=password
- z/OS®: ./ConfigEngine.sh action-register-wcm-nodetypes
-DWasPassword=password
-DPortalAdminPwd=password
-
Run the following SQL query to verify that the entries in the table now show the new URI:
select * from JCR.ICMSTJCRNODEREGISTER
-
Restart the WebSphere_Portal server.
-
Required if you use HCL Web Content Manager: Complete the following
steps to manually change the JSP components in the Web Resources v70
Library:
Cluster note: In a clustered environment, complete these steps on the
primary node only.
-
Log on to HCL DX.
-
Go to .
-
Under Preferences, select Edit Shared
Settings.
-
Under Library Selection, add Web Resources v70 to
the Selected Libraries list.
-
Click OK.
-
Under Item Views, select .
-
Select every JSP component from the Web Resources
v70 library and then click Edit.
-
Update the Path field for every JSP component with the new context root
path.
The JSP path includes two parts, which are separated by a semi-colon. The first part is the
context path to the HCL Web Content Manager extensions web application
and then the second part is the path to the JSP. Update the path to the web application.
For example, the other path might be: /wcmextension;/jsp/html/general/UpdateItem.jsp. If you changed the context root to
mynewcontext, change the old path to /mynewcontext/wcmextension;/jsp/html/general/UpdateItem.jsp.
- Optional:
Update your custom themes to reference the correct Dojo context root.
The default Dojo context root in HCL DX is /wps/portal_dojo. After you run the modify-servlet-path and modify-servlet-path-portlets
tasks, the Dojo context root is changed to include the new value in the WpsContextRoot parameter as the prefix. For instance, if the new WpsContextRoot value is myco, then
the new Dojo context root becomes /myco/portal_dojo. If your
theme includes hardcoded references to "/wps/portal_dojo",
update those references to the new context root. If you migrated a custom theme, you might find that
it has references to /portal_dojo without the /wps prefix. Look for these references in both the WAR file and in the
WebDAV storage for your theme.
Cluster note: In a clustered environment, complete these steps on the
primary node only.
-
Complete the following steps to edit the context root for every search collection:
Attention: Edit the context root for each existing search collection.
-
Log on to HCL DX as the administrator.
-
To open the Manage Search portlet, click the
Administration menu icon. Then, click .
-
Click Search Collections.
-
Click the search collection that you want to update.
For example: Default Search Collection.
-
Click the Edit Content Source icon for the first content source in the
list.
-
Edit the URL listed in the Collect documents link from the URL with the
new context root.
-
Click Save.
-
Edit the URL in each remaining content source and then save your changes.
-
Start the HCL DX crawler content source for each
collection:
- If the documents are not stored in the search collection but a schedule is defined for the
crawler, the crawler automatically runs at the scheduled time. You can also start the crawler
manually.
- If the documents are already collected, select Regather documents to
update the documents with the new context root information.
-
Click Collections from All Services in the breadcrumb trail and select
the next search collection to modify.
-
Complete the following steps if you changed the context root and you have existing search
scopes:
-
To open the Manage Search portlet, click the
Administration menu icon. Then, click . Then, click
Search Scopes.
-
Delete the following search scopes:
- All Sources
- Managed Web Content
-
Restart the portal server to re-create the search scopes with the correct context.
-
Complete the following steps to change the context root for the
Seedlist_Servlet:
-
Log in to the WebSphere® Integrated Solutions Console.
-
Go to .
-
Click the Seedlist_Servlet application link.
-
Click Context Root For Web Modules.
-
Change the context root and then click OK.
-
Save your changes.
-
Clustered environment only:Idle standby
only: Resynchronize the nodes and restart the cluster.
Table 2. Steps to resynchronize the nodes and restart the cluster.
Cluster type |
Steps |
Static clusterIdle
standby |
Complete the following steps if you have a static
clusteran idle standby environment:
- Open the deployment manager WebSphere® Integrated Solutions Console.
- Click , select the primary node from the list, and click Full
Resynchronize.
- Click .
- Select the cluster and click Stop.
- After the cluster stops, restart it by selecting the cluster. Then, click
Start.
|
Dynamic cluster |
Complete the following steps if you have a dynamic cluster:
- Open the deployment manager WebSphere® Integrated Solutions Console.
- Click , select the primary node from the list, and click Full
Resynchronize.
- Click .
- Click the dynamic cluster that you want to stop and restart.
- Click Dynamic cluster members.
- Select the member name that you want to stop and then click Stop.
- Select the member name that you want to start and then click Start.
|
-
Complete the following steps on the stand-alone server or on each node within your cluster to
create the WebSphere environment variables that HCL Web Content Manager
needs:
-
Locate the wkplc.properties and wkplc_comp.properties files in the wp_profile_root/ConfigEngine/properties directory and create backup copies
before you change any values.
-
Use a text editor to open the wkplc.properties file and
enter the appropriate value for your environment in the WpsContextRoot property.
-
Save and close the file.
-
Use a text editor to open the wkplc_comp.properties file
and enter the appropriate value for your environment in the following properties:
- WsrpContextRoot
- WpsPersonalizedHome
- WpsDefaultHome
Attention: Do not enter the same
value for WpsPersonalizedHome and WpsDefaultHome.
-
Save and close the file.
-
Run the following task to create the WebSphere environment variables for Web Content Manager:
- AIX®
HP-UX
Linux™
Solaris: ./ConfigEngine.sh create-wcm-servletpath-variables
-DServerName=your_application_server_name
-DWasPassword=password
- Windows™: ConfigEngine.bat create-wcm-servletpath-variables
-DServerName=your_application_server_name
-DWasPassword=password
- IBM® i: ConfigEngine.sh create-wcm-servletpath-variables
-DServerName=your_application_server_name
-DWasPassword=password
- z/OS®: ./ConfigEngine.sh create-wcm-servletpath-variables
-DServerName=your_application_server_name
-DWasPassword=password
Note: Check the output for any error messages before you proceed with the next task. If any of the
configuration tasks fail, verify the values in the wkplc.properties and wkplc_comp.properties files.
-
Resynchronize the nodes and restart the cluster.