tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Delbecq <>
Subject Re: weird problem
Date Tue, 10 Jul 2007 10:12:06 GMT
javax.xml.parsers.FactoryConfigurationError loads a implementation of
xml parsers using a J2SE discovery mecanism. This discovery mecanism
uses hints provided in .jars  META-INF/ folder. Since you exploded your
jar of XercesImpl, this JAR does not take part anymore in the discovery
mecanism and jvm falls back to the core xml parser provided by tomcat.
Behaviours is then same as if you simply removed Xerces jar from your
application. You should not provide your own xml parser inside your
webapplication, because jvm will always try to use the core parser (with
or without success, considering the conflict that can arise with class
names depending on classloader used).

"XML Parsers and J2SE 1.4"

En l'instant précis du 10/07/07 11:54, kz s'exprimait en ces termes:
> Hi,
> Im getting the following error while the starting of Tomcat. I have
> version
> 5.5.23 of Tomcat and its an embedded version.
> I had xercesImpl.jar in my classpath which conatins this class.
> INFO: Error registering
> javax.xml.parsers.FactoryConfigurationError: Provider
> org.apache.xerces.jaxp.DocumentBuilderFactoryImpl not found
> The problem is that when I un-jar xercesImpl.jar and set the class
> path of
> that un-jarred folder then it worked all fine. What is the possible
> difference in jar file and accessing flat classes??
> Regards,
> Khurram.

To start a new topic, e-mail:
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message