Script Portlet installation in WebSphere Portal 8.0.0.1 CF11 or on Portal V8.5
I wanted to install Script Portlet into my local WebSphere Portal instance to explore this further and so I followed following steps. To work with Script portlet, you should have the WebSphere Portal 8.0.0.1 CF11 or Portal V8.5.
1. Download the Script portlet paa archive file from Green house catalog from the link - https://greenhouse.lotus.com/plugins/plugincatalog.nsf/assetDetails.xsp?action=editDocument&documentId=DDB5C467D991413285257C67002476E0
2. Un-archive the above downloaded file locally and this should contain the “scriptportlet-app-x.x-SNAPSHOT.paa” paa file.
3. Go to your Portal profile ConfigEngine directory <WAS_HOME>/<wp_profile>/ConfigEngine and execute following ConfigEngine install-paa command –
In Linux or AIX:
./ConfigEngine.sh install-paa -DPAALocation=<paa_file_location> -DWasPassword=password -DPortalAdminPwd=<password>
Once above install-paa command executed successfully, then execute deploy-paa command as below –
./ConfigEngine.sh deploy-paa -DappName=scriptportlet-app -DWasPassword=password -DPortalAdminPwd=password
In Windows:
ConfigEngine.bat install-paa -DPAALocation=<paa_file_location> -DWasPassword=<password> -DPortalAdminPwd=<password>
Once above install-paa command executed successfully, then execute deploy-paa command as below –
ConfigEngine.bat deploy-paa -DappName=scriptportlet-app -DWasPassword=password -DPortalAdminPwd=password
4. Now exclude the Script portlet from Portal Development Mode applications –
a. Open the wp.base_TargetMapExclList.properties file from <WAS_HOME>/<wp_profile>//PortalServer/config/StartupPerformance/
b. Add “scriptportlet” to end of the file and save and close the file.
5. Now let’s restart your portal server.
Above steps 1 to 5 will install the Script Portlet in your Base Portal and will create WCM library called “Script Portlet Library” inside the Base Portal.
6. In case of using the Script Portlet inside the Virtual Portal, execute the above 1 to 5 steps first then create the WCM Script Portlet Library inside the Virtual Portal using following ConfigEngine task
In Linux or AIX:
./ConfigEngine.sh sp-content -DVirtualPortalContext=virtual portal context
In Windows:
ConfigEngine.bat sp-content -DVirtualPortalContext=virtual portal context
Note –
While executing the deploy-paa command, I was getting error “EJPCE0036W: There are no components available, check that the values in the components.properties file for your assembly are correct” and scriptportlet ear was not deploying successfully, though deploy-paa ConfigEngine task existing with Build Successful message.
To fix this,
a. I opened the components.properties file from the path - <WAS_HOME>\<WP_PROFILE>\paa\scriptportlet-app\ into a text editor.
b. And modified the “components/scriptportlet” value from false to true.
c. Ran the deploy-paa command once again and this time script portlet deployed successfully in Portal Server.
Comments
Post a Comment