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]

Reply via email to