Win a copy of GANs in ActionE this week in the AI forum
or WebAssembly in Action in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
  • Knute Snortum
  • Liutauras Vilda
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
  • Joe Ess
  • salvin francis
  • fred rosenberger

Xalan Java

Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using Xalan to transfer the xml file into a text document. I have given classpath for xalan.jar,xercesImpl.jar, xml-apis.jar. When I give the command java org.apache.xalan.xslt.Process -IN -XSL -OUT it gives me the following error.
javax.xml.transform.TransformerException: javax.xml.parsers.Facto
ryConfigurationError: Provider for javax.xml.parsers.SAXParserFactory cannot be
WHat is the problem? Can someone help.
Ranch Hand
Posts: 1209
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you try doing this. I hope it fixes the problem

wait you are using the command line.
fine, try putting a file under
the file s'd have entry like this:
javax.xml.parsers.SAXParserFactory= org.apache.xerces.jaxp.SAXParserFactoryImpl
javax.xml.parsers.TransformerFactory= org.apache.xalan.processor.TransformerFactoryImpl
hope it works!
I have a knack for fixing things like this ... um ... sorry ... here is a consilitory tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!