You are right. If I remove xercesImpl.jar from the class path then it works also.
But there is another observation which is weird. Its that if I have my application anywhere on C: drive then it works. It also works if I have it on D:\Program Files\. If I have it on D:\ then it gives this error. What is the reason for this? How does the discovery mechanism works in reference to drives? Regards, Khurram. On 7/10/07, David Delbecq <[EMAIL PROTECTED]> wrote:
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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]