title: Tomcat web app - specify TransformerFactoryImpl class doesn't work
body: <p>I need to use an xsl transformation inside a webapp and I decided to use saxon for the xml implementation. I included saxon(version 9.1) in the pom.xml as dependency. But I still keep getting this error - Provider net.sf.saxon.TransformerFactoryImpl not found</p>
  
  <p>I found this thread, 
  <a href="https://stackoverflow.com/questions/2968190/how-to-select-saxon-transformerfactory-in-java">How to select saxon TransformerFactory in Java</a></p>
  
  <p>and did all that was recommended, setting property, specifying a service file with saxon implementation class. For flexibility reasons, I can't directly create an instance of TransformerFactoryImpl. So, do I have any other choice left?</p>
  
  <p>Thanks in advance,</p>
  
  <p>Edit: This is the stack trace of the error - </p>
  
  <pre><code>javax.xml.transform.TransformerFactoryConfigurationError: Provider net.sf.saxon.TransformerFactoryImpl not found
  javax.xml.transform.TransformerFactory.newInstance(TransformerFactory.java:108)
  com.mondeca.sesame.toolkit.repository.XMLtoRDFDataInjector.injectData(XMLtoRDFDataInjector.java:83)
  com.mondeca.sesame.toolkit.repository.LocalMemoryRepositoryProvider.init(LocalMemoryRepositoryProvider.java:105)
  org.datalift.modules.base.XmlConverter.applyXslTransformation(XmlConverter.java:192)
  org.datalift.modules.base.XmlConverter.transformData(XmlConverter.java:204)
  org.datalift.modules.base.XmlConverter.transformData(XmlConverter.java:174)
  org.datalift.modules.base.XmlConverter.loadSourceData(XmlConverter.java:149)
  </code></pre>
  
  <p>From which it's clear that it can't find saxon. But I simply don't understand why! I can see that its packaged in the jar file too!</p>