Skip to Content
0
Aug 09, 2016 at 09:22 AM

JAVA mapping error: Resource not found: PI 7.5

1920 Views

Hello,

Our requirement is to merge 2 XML files (one input file and one attachment) into 1 file by using JAVA mapping. I am referring blog: http://scn.sap.com/community/pi-and-soa-middleware/blog/2014/06/06/merge-multiple-files-without-bpm

Same JAVA code is written in NWDS. We exported JAR from NWDS and imported it in ESR as IA and used it in operation mapping.

However, we are getting below error in operation mapping testing:

  • Resource not found: META-INF/services/javax.xml.transform.TransformerFactory
  • Resource not found: META-INF/services/javax.xml.parsers.DocumentBuilderFactory

Code is referring below imports:

import java.io.*;

import java.util.*;

import javax.xml.parsers.*;

import javax.xml.transform.*;

import javax.xml.transform.dom.DOMSource;

import javax.xml.transform.stream.StreamResult;

import org.w3c.dom.*;

import org.xml.sax.SAXException;

import com.sap.aii.mapping.api.*;

We tried importing the missing JAR files into NWDS (i.e. with “javax.xml.parsers-1_1.jar.zip” and “javax.xml-1.3.4.jar.zip”) for associated package but this is again not resolving the issue while importing in PI. Also did PI system restart completely after JAR import. But error still persists.

We are on PI 7.5, NWDS 7.5. Please suggest possible reasons and solution for resolving this issue.

Thanks in advance

Azhar