Thursday, 13 September 2018

IBM Master Data Management - Problems with Apache Jettison

I saw this whilst starting my newly minted MDM Cluster: -

[13/09/18 11:52:21:546 BST] 000000b6 jsp           W com.ibm.ws.jsp.taglib.TagLibraryCache loadTldsFromJar jsp error failed to load tld in jar. uri = [/WEB-INF/lib/jettison-1.3.5.jar]
                                 java.io.FileNotFoundException: /opt/ibm/WebSphere/AppServer/profiles/AppSrv01/wstemp/WABS/mdmNode01/MDMClusterMember1_null/com.ibm.mdm.hub.server-E001..11.5.0/com.ibm.mdm.server.ws.restful..11.5.0.war/WEB-INF/lib/jettison-1.3.5.jar (No such file or directory)


Thankfully, I've seen this before, but hadn't yet blogged the problem / solution.

This IBM Technote: -


covers it nicely: -


so I created a Jython script to do this very thing: -

vi setMDMWCProperty.jy 

propertyName = "com.ibm.wsspi.jsp.disableTldSearch"
propertyValue = "true"
serverName = 'MDMClusterMember1'
server = AdminConfig.getid('/Server:'+serverName+'/')
wc = AdminConfig.list('WebContainer',server)
attr = [['name',propertyName],['value',propertyValue]]
AdminConfig.create('Property', wc, attr)

AdminConfig.save()
AdminNodeManagement.syncActiveNodes()

which did the job nicely :-)

No comments: