You have the option of deploying your own XDIME theme instead
of modifying the MPATheme.ear. If you choose
this option, you will need to update the mcs-config.xml with
the context-root of the your newly-deployed web application.
About this task
To update the
mcs-config.xml file with
the context-root of the your newly-deployed web application, perform
the following steps.
Procedure
- Copy the mcs-config.xml file
from the wp_profile_root/installedApps/node_name/mcs.ear/mcs.war/WEB-INF directory
to the wp_profile_root/PortalServer/wp.mobile/wp.mobile.mcs directory.
- Edit wp_profile_root/PortalServer/wp.mobile/wp.mobile.mcs/mcs-config.xml. Replace all instances of the following:
base-url="current_context_root"
with:base-url="new_context_root"
page-base="current_context_root"
with:page-base="new_context_root"
where current_context_root is the current
context root (typically, mpa) and new_context_root is
the new context root value.
- Run the following Multi-Channel Server configuration
update process, which deploys an updated file into the Multi-Channel Server EAR
(mcs.ear).
- Make sure that the WebSphere_Portal application server
is running.
- Run
the following command to ensure that the WebSphere® environment
is set up correctly:
- Change your working directory to wp_profile_root/ConfigEngine.
- Run the following command:
./ConfigEngine.sh init mcs-update-config
ConfigEngine init mcs-update-config
Note: For
security reasons, if you do not want to store the WebSphere Portal admin
password and WebSphere Application Server admin
password in the wkplc.properties file, you can specify
the passwords on the portal server command line. For example, when
this topic directs you to enter the ConfigEngine script
or batch file, you would add parameters to the command to specify
the password values as shown here:
./ConfigEngine.sh init mcs-update-config
-DPortalAdminPwd=WP_admin_password_value
-DWasPassword=WAS_admin_password_value
ConfigEngine init mcs-update-config
-DPortalAdminPwd=WP_admin_password_value
-DWasPassword=WAS_admin_password_value
where - WP_admin_password_value is the value of the WebSphere Portal admin
password
- WAS_admin_password_value is the value of the WebSphere Application Server admin
password if WebSphere Application Server security
is enabled
- Restart the portal
server using the following commands:
where server_name is the
name of the WebSphere Application Server instance
(for example, WebSphere_Portal).