title: No XPathFactory implementation found, xpath factory instance creation issue in ubuntu server. how to resolve the issue?
body: <p>i'm trying to create a new instance of xpath factory, it is running perfectly without any problem in my local machine but in my ubuntu server(16.0) java 1.7 instance throwing following error.</p>
  
  <pre><code>SEVERE: Caught exception : 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:268)
  </code></pre>
  
  <p>I have read the following articles,</p>
  
  <p><a href="https://saxonica.plan.io/issues/1944" rel="nofollow noreferrer">https://saxonica.plan.io/issues/1944</a></p>
  
  <p><a href="https://stackoverflow.com/questions/7914915/syntax-error-in-javax-xml-xpath-xpathfactory-provider-configuration-file-of-saxo">Syntax error in javax.xml.xpath.XPathFactory provider-configuration file of Saxon-HE 9.3</a></p>
  
  <p>And updated my code like the following,</p>
  
  <pre><code> xPathfactory = XPathFactory.newInstance(
               XPathFactory.DEFAULT_OBJECT_MODEL_URI, "net.sf.saxon.xpath.XPathFactoryImpl",
                ClassLoader.getSystemClassLoader());
  </code></pre>
  
  <p>but it is still throwing the following error.</p>
  
  <p>I'm using saxon 9.3.0.5 version in both my local and server instance.</p>
  
  <p>I'm using this version because it gives much faster xslt conversion compare to the latest version.</p>
  
  <p>What am i doing wrong? Any help would be greatly appreciated. Thanks in advance.</p>