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":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSLKT6","label":"IBM Maximo Asset Management"},"Component":"","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

UID

ibm11133595