添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
  • The Java standard libraries of Java 7 can be used.
  • Cloud Integration supports the XML Document Object Model (DOM) to process XML documents.
  • So to perform some XML parsing I used below import statements in my groovy script:

    import org.jdom.Document;

    import org.jdom.Element;

    import org.jdom.input.SAXBuilder;

    import org.jdom.output.XMLOutputter;

    but while deploying getting the below error:

    Message processing failed.
    Processing Time: 8 sec 584 msError Details javax.script.ScriptException: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: EffectiveData__Script.gsh: 11: unable to resolve class org.jaxen.XPath @ line 11, column 1. import org.jaxen.XPath; ^ EffectiveData__Script.gsh: 9: unable to resolve class org.jdom.output.XMLOutputter @ line 9, column 1. import org.jdom.output.XMLOutputter ^ EffectiveData__Script.gsh: 8: unable to resolve class org.jdom.input.SAXBuilder @ line 8, column 1. import org.jdom.input.SAXBuilder; ^ EffectiveData__Script.gsh: 12: unable to resolve class org.jaxen.jdom.JDOMXPath @ line 12, column 1. import org.jaxen.jdom.JDOMXPath; ^ EffectiveData__Script.gsh: 6: unable to resolve class org.jdom.Element @ line 6, column 1. import org.jdom.Element ^ EffectiveData__Script.gsh: 5: unable to resolve class org.jdom.Document @ line 5, column 1. import org.jdom.Document; ^ EffectiveData__Script.gsh: 7: unable to resolve class org.jdom.JDOMExcepti.......
    Ideally it should support DOM but if it's not supporting then can I download the lib from the internet and import/deploy the same to HCI or CPI tenant? Please help.

    Hi Nidhi

    JDOM is a separate library, that you will need to download from the Internet. Also, if you need XPath expressions with JDOM, you also need the Jaxen library.

    In order to add these libraries, upload their JAR files on the Resources tab of your integration flow.

    However, I would suggest that you also consider XmlSlurper, which is a part of Groovy. It doesn't require separate libraries, and it's really easy to use.

    For some examples of using XmlSlurper, please see this blog post by engswee.yeoh .

    Regards,

    Morten

    Passing the DIMENSION ID of an Associated Dimension as URL parameter in Technology Q&A SWEC filter restrictions - filter for adding new item to/deleting item from Sales order in Technology Q&A QUICK CATCHUPS ON TOP-20-SWPM/SUM ERRORS – SAP INSTALLATION ON AIX – ORACLE #ATR in Technology Blogs by Members The system URL is using a self-signed security certificate ! in Technology Q&A