Wednesday, 13 August 2014

IBM Operational Decision Manager - Issue when creating WAS Profile

I'm installing IBM ODM 8.5.1.0 onto an AIX platform, and found that the WAS profile creation phase failed with exceptions such as: -

...
    <message>/opt/ibm/WebSphere/AppServer/profileTemplates/rules/management/ds/actions/copyBinsAndFixPermissions.ant:31: Failed to copy /opt/ibm/WebSphere/AppServer/profileTemplates/rules/lib/rulesTemplateResource.jar to /opt/ibm/lib/rulesTemplateResource.jar due to /opt/ibm/lib/rulesTemplateResource.jar (A file or directory in the path name does not exist.)
...

<record>
    <date>2014-08-13T11:09:53</date>
    <millis>1407924593527</millis>
    <sequence>4274</sequence>
    <logger>com.ibm.ws.install.configmanager.actionengine.ant.utils.ANTLogToCmtLogAdapter</logger>
    <level>WARNING</level>
    <class>com.ibm.ws.install.configmanager.logging.LogUtils</class>
    <method>logException</method>
    <thread>0</thread>
    <message>The exception message is: Failed to copy /opt/ibm/WebSphere/AppServer/profileTemplates/rules/lib/rulesTemplateResource.jar to /opt/ibm/lib/rulesTemplateResource.jar due to /opt/ibm/lib/rulesTemplateResource.jar (A file or directory in the path name does not exist.)</message>
</record>
...

Thanks to a spot of Googling, I found this: -


The problem is due to the fact that I'm over-riding the default location for a WAS profile: -

profilePath=/opt/ibm/WebSphereProfiles/Dmgr01

rather than the default of: - 

profilePath=/opt/ibm/WebSphere/AppServer/profiles/Dmgr01

The circumvention is to change: -

/opt/ibm/WebSphere/AppServer/profileTemplates/rules/management/ds/actions/copyBinsAndFixPermissions.ant

and: -

/opt/ibm/WebSphere/AppServer/profileTemplates/rules/management/dc/actions/copyBinsAndFixPermissions.ant
 
from

<copy todir="${profilePath}/../../lib">

to: -

<copy todir="${WAS_HOME}/lib">

In other words, the Ant scripts were trying to copy JAR files from: -

/opt/ibm/WebSphere/AppServer/profileTemplates/rules/lib/

to: -

/opt/ibm//lib/

because the change of profile path had confused things :-)

Alternatively, I could apply the iFix ( Interim Fix 21 ) or the 8.5.1.1 Fix Pack.

No comments: