We have a custom jar which has XPath in its implementation. when we run this project in IOS with MOE, it give runtime error
Caused by: java.lang.RuntimeException: XPathFactory#newInstance() failed to create an XPathFactory for the default object model: http://java.sun.com/jaxp/xpath/dom with the XPathFactoryConfigurationException: javax.xml.xpath.XPathFactoryConfigurationException: No XPathFactory implementation found for the object model: http://java.sun.com/jaxp/xpath/dom
at javax.xml.xpath.XPathFactory.newInstance(XPathFactory.java:76)
at com.custom.base.util.XMLObject.<clinit>(SourceFile:54)
We have tried Xalan, Xerces, and jaxp but nothing really solved this problem.
Does moe support XPath and has anyone successfully implemented XPath in their MOE application.
Following is the MuseumMap sample project from MOE sample repo. The only change i did was to include jaxp.jar in the dependency. As mentioned before i get MOE compile time error and the log has been already added in the thread.
Link to the Project:
Hi i Tried All the libraries that were part of the zip you provided(Individually and collectively adding them as dependencies). i was able to pass the MOE build error but failed to create XpathFactory for the default object model.
The problem is same as before. The xpathfactory implementation was not found in any of the jars.
Below is the log related to the issue.
Caused by: java.lang.RuntimeException: XPathFactory#newInstance() failed to create an XPathFactory for the default object model: http://java.sun.com/jaxp/xpath/dom with the XPathFactoryConfigurationException: javax.xml.xpath.XPathFactoryConfigurationException: No XPathFactory implementation found for the object model: http://java.sun.com/jaxp/xpath/dom
at javax.xml.xpath.XPathFactory.newInstance(XPathFactory.java:76)
at com.binfer.base.util.XMLObject.<clinit>(SourceFile:54)
... 11 more
Were you successfully able to create a object and did not get the error I’m facing. Our app loads an xml document and uses xpath to find data in it.