tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Delbecq <delbd+jaka...@oma.be>
Subject Re: weird problem
Date Tue, 10 Jul 2007 10:12:06 GMT
Hi,
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).

See http://tomcat.apache.org/tomcat-5.5-doc/class-loader-howto.html,
"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: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message