Thank-you Scott!

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 16, 2001 10:18 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Crimson sneaking up on you...


Please be aware that the j2ee.jar that Sun has been shipping contains
Crimson.  Since Xerces does not seem to contain
META-INF\services\javax.xml.parsers.SAXParserFactory, etc., and Crimson
does, this means that you can very easily inadvertently be using Crimson,
no matter where crimson.jar or j2ee.jar is on the classpath.

This can be the cause of some hard to diagnose errors.

You can work around this by adding
-Djavax.xml.parsers.DocumentBuilderFactory
="org.apache.xerces.jaxp.DocumentBuilderFactoryImpl"
-Djavax.xml.parsers.SAXParserFactory
="org.apache.xerces.jaxp.SAXParserFactoryImpl" to your command line, or
setting the properties otherwise on the system class path.

As for the Xalan problems with using Crimson, I suspect this has something
to do with Crimson namespace handling with the DOM.  I am slowly tracking
this down.

-scott

Reply via email to