Mike Kay, the creator of Saxon, says: " This problem is caused by the fact that you have made AElfred the default XML parser. Tomcat needs a validating parser for its own use, and AElfred isn't a validating parser. You can usually solve the problem by changing the order of things on the classpath, or by removing the file META-INF/javax.xml.parsers.SAXParserFactory from saxon.jar. Searching the Saxon mailing list for "tomcat" will give further suggestions. "
HTH Edmund > -----Original Message----- > From: Maris Orbidans [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, January 29, 2003 10:42 AM > To: [EMAIL PROTECTED] > Subject: I can't use SAXON XML parser in my WEB app, please help > > > hello all > > I want to use SAXON XML parser in my WEB app. I put saxon.jar > and saxon-jdom.jar in web-inf/lib > of my web app. Now Tomcat doesnt work at all, it throws at startup: > > [ERROR] Digester - -Digester.getParser: > <javax.xml.parsers.ParserConfigurationException: > AElfred parser is non-validating> > javax.xml.parsers.ParserConfigurationException: AElfred > parser is non-validating > > It seems that Tomcat tries to SAXON as default XML parser. > > I tried to move Xerces and jaxp jar's from common/endorsed to > /server/lib, it didnt work, ClassCastException was thrown, > it seems because of duplicated classes loaded by saxon.jar and > xmlParserAPIs.jar. (classes are different but with the same name ) > > > > I was very upset, because I have read in Tomcat docs: > > "Common - This class loader contains additional classes that > are made visible to both Tomcat internal classes and to all > web applications. > > xerces.jar - The XML parser that is visible by default to > Tomcat internal classes and to web applications. This can be > overridden, for a particular web application, by including > your desired parser in /WEB-INF/lib. " > > > I use Tomcat 4.1.18 and jdk 1.3.1. (NOT LE) > > thanx in advance > Maris Orbidans > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
