Home Features Docs Blog Support GitHub

Does MOE support XPath

(Sachin) #1

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.


Try keep everything from those libraries in proguard.

(Sachin) #3

moeLog.log (71.0 KB)

we tried to add all of the above libraries and got compile time error. I have attached build log


Could you provide a sample project for this issue?

(Sachin) #5

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:


Try xalan-j instead of the full jaxp jar.
And use xalan.jar in the archive.