Thursday, 13 May 2010

IBM WebSphere Portal Content Templates Catalog

Following my previous posting regarding the IBM WebSphere Portal Content Templates Catalog, I had been trying, and failing, to deploy the Catalog into my clustered WP/WCM 6.1.5 environment.

I had, as far as I could tell, modified the and appropriately, but the installation script still completed within 10 seconds, and nothing got deployed.

After some excellent help from Ronan and Esmond in the IBM Dublin labs, I realised where I was going wrong.

Esmond suggested that I check the ConfigEngine registry - /opt/IBM/WebSphere/wp_profile/ConfigEngine/registry.xml - to see whether the Templates had been registered.

Looking at this file, I couldn't see any reference to: -


which suggested that the first step in was failing, albeit without an error message.

Therefore, I looked again at and, quelle surprise, I was being a complete and utter muppet - the install script is written assuming that the user is running against localhost on 10033: -


whereas I am running against a cluster, with an external deployment manager.

Therefore, I ran the two commands, from, manually: -

cd /opt/IBM/WebSphere/wp_profile/ConfigEngine

./ -install -assemblyRoot /opt/IBM/WebSphere/PortalServer/IBM.WebSphere.Portal.Content.Templates.Catalog/ -installPath /opt/IBM/WebSphere/PortalServer/ -user wasadmin -<PASSWORD> -hostname -port 8879 -offeringName PortalServer -assemblyName IBM.WebSphere.Portal.Content.Templates.Catalog -expandBinaries false

( so replacing localhost/10033 with the hostname of the Deployment Manager - - on port 8879 )

which updated the registry.xml as follows: -

<assembly assemblyName="IBM.WebSphere.Portal.Content.Templates.Catalog" installLocation="/opt/IBM/WebSphere/PortalServer//IBM.WebSphere.Portal.Content.Templates.Catalog" lastModified="05/13/2010" version="">
      <component compName="components/sample.ctc.content" installLocation="/opt/IBM/WebSphere/PortalServer//IBM.WebSphere.Portal.Content.Templates.Catalog/components/sample.ctc.content" version="">
        <task taskName="deploy-portlets" failOnError="true" status="FAIL"/>
        <task taskName="remove-portlets" failOnError="true" status="FAIL"/>

I then ran the deploy-portlets script: -

./ deploy-portlets -DComponentList=components/sample.ctc.content -propertyfile /opt/IBM/WebSphere/PortalServer/IBM.WebSphere.Portal.Content.Templates.Catalog/ 

and, quelle surprise, it worked. The deploy-portlets task took 15 minutes, and I now have lots of lovely content to look at :-)

Simple :-)

No comments:

Grokking grep

A colleague was tinkering with grep  and, thanks to him, I discovered a bit more about the trusty little utility. I had not really explored ...