Re: [Joost] Using an alternative SAX parser
Status: Beta
Brought to you by:
obecker
From: Vadim B. <vad...@di...> - 2012-01-11 10:03:58
|
Hi Oliver, Thanks for the prompt reply. The parameter seems to be active, but I get: org.xml.sax.SAXException: Can't create XMLReader for class org.apache.xerces.parsers.SAXParser Is this a missing JAR (I added xercesImpl.jar to CLASSPATH, maybe I need something else) or maybe it should be a different class? Best regards, Vadim ----- Original Message ----- From: "Oliver Becker" <ob...@ob...> To: "Discussion list for Joost users" <joo...@li...> Sent: Wednesday, January 11, 2012 8:12 PM Subject: Re: [Joost] Using an alternative SAX parser > Hi Vadim, > >> I am having an issue with the default Xerxes, >> ArrayIndexOutOfBoundsException: 8192. This is a known issue for very >> large XML documents and the cure is to use a newer version of Xerces, or >> another parser. >> >> This is what I am trying to do, using either xercesImpl.jar or >> jaxp-ri.jar. >> The question is, how do I accomplish this. >> >> I tried adding this: >> >> -Djavax.xml.parsers.DocumentBuilderFactory=org.apache.xerces.jaxp.DocumentBuilderFactoryImpl >> \ >> -Djavax.xml.parsers.SAXParserFactory=org.apache.xerces.jaxp.SAXParserFactoryImpl >> \ >> -cp .;xercesImpl.jar >> >> (it's in Windows) >> >> to the command line. Nothing, it crashes with the same trace of >> com.sun.org.apache blah blah which means the reassignment is ignored. > > on the command line > -Dorg.xml.sax.driver=org.apache.xerces.parsers.SAXParser > should do the trick (Joost uses the pure SAX interface here). > > Hope this helps, > Oliver > > > ------------------------------------------------------------------------------ > Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex > infrastructure or vast IT resources to deliver seamless, secure access to > virtual desktops. With this all-in-one solution, easily deploy virtual > desktops for less than the cost of PCs and save 60% on VDI infrastructure > costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox > _______________________________________________ > Joost-help mailing list > Joo...@li... > https://lists.sourceforge.net/lists/listinfo/joost-help |