InstallCustomThemesAndSkins - cws-khuntly/WebSphere GitHub Wiki


date: 2025-05-08 15:01:20 created: 2025-05-08 15:01:14 categories:

  • WebSphere / Server Build / Portal Server / Primary Node

Themes/Skins installation

Login to the Portal host via SSH

Source setupCmdLine.sh:

source /opt/IBM/WebSphere/profiles/${PROFILE_NAME}/bin/setupCmdLine.sh

Export the WAS_INSTALL_ROOT variable:

declare -x WAS_INSTALL_ROOT="/opt/IBM/WebSphere/AppServer"

Export the environment variable:

declare -x ENV=XXX

Export the context root variable:

declare -x CONTEXT_ROOT=XXX

Install applications to Portal Server

Create the xmlaccess password file

Copy the template file to the home directory:  - cp  /nfs/software/WebSphere/PortalServer/properties/xmlaccess.properties ${HOME}/workspace/WebSphere/PortalServer/properties/${ENV}/xmlaccess.properties

Edit the file to include the appropriate password:

 - vi ${HOME}/workspace/WebSphere/PortalServer/properties/xmlaccess.properties   - Change the following values:    - Name: com.ibm.SOAP.loginPassword     - Current value: ReplaceWithYourPassword     - New value: See PAM

Save and close the file

${WAS_INSTALL_ROOT}/bin/PropFilePasswordEncoder.sh \     ${HOME}/workspace/WebSphere/PortalServer/properties/${ENV}/xmlaccess.properties \     com.ibm.SOAP.loginPassword

Import the applications, themes and skins:

${USER_INSTALL_ROOT}/PortalServer/bin/xmlaccess.sh \     -in /nfs/software/WebSphere/PortalServer/xmlaccess/InstallThemesAndSkins.xml \     -out ${HOME}/log/xmlaccess/InstallThemesAndSkins-output.xml \     -url https://localhost:10042/${CONTEXT_ROOT}/config \     -truststore ${USER_INSTALL_ROOT}/etc/trust.p12  -trustpwd WebAS -trusttype PKCS12\     -useEncryptedCredentials ${HOME}/workspace/WebSphere/PortalServer/properties/${ENV}/xmlaccess.properties

Import the custom content:

${USER_INSTALL_ROOT}/PortalServer/bin/xmlaccess.sh \     -in /nfs/software/WebSphere/PortalServer/xmlaccess/InstallPortalContent.xml \     -out ${HOME}/log/xmlaccess/InstallPortalContent.xml \     -url https://localhost:10042/${CONTEXT_ROOT}/config \     -truststore ${USER_INSTALL_ROOT}/etc/trust.p12  -trustpwd WebAS -trusttype PKCS12\     -useEncryptedCredentials ${HOME}/workspace/WebSphere/PortalServer/properties/${ENV}/xmlaccess.properties

⚠️ **GitHub.com Fallback** ⚠️