IBM Support

Resolving xerces.jar conflict while calling WebService.

Technical Blog Post


Abstract

Resolving xerces.jar conflict while calling WebService.

Body

Sometimes customers add customized code to make WebService call from MaximoUIWeb module. WebSrervice call might interfear with xerces.jar file included in BIRT engine. Usually users will get an exception like "java.lang.ClassCastException: org.apache.xerces.parsers.XIncludeAwareParserConfiguration incompatible with org.apache.xerces.xni.parser.XMLParserConfiguration". This can be resolved by adding org.apache.axis.utils.XMLUtils.initSAXFactory(null, true, true) just before making the WebService call.

[{"Business Unit":{"code":"BU005","label":"IoT"}, "Product":{"code":"SSLKT6","label":"Maximo Asset Management"},"Component":"","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"","Edition":""}]

UID

ibm11133595