Error Package Xerces-2 Was Not Found
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Dealing with “Xerces hell” in Java/Maven? up vote 470 down vote favorite 176 In my office, the mere mention of the word Xerces is enough to incite murderous rage from developers. A cursory glance at the other Xerces questions on SO seem to indicate that almost all Maven users are "touched" by this problem at some point. Unfortunately, understanding the problem requires a bit of knowledge about the history of Xerces... History Xerces is the most widely used XML parser in the Java ecosystem. Almost every library or framework written in Java uses Xerces in some capacity (transitively, if not directly). The Xerces jars included in the official binaries are, to this day, not versioned. For example, the Xerces 2.11.0 implementation jar is named xercesImpl.jar and not xercesImpl-2.11.0.jar. The Xerces team does not use Maven, which means they do not upload an official release to Maven Central. Xerces used to be released as a single jar (xerces.jar), but was split into two jars, one containing the API (xml-apis.jar) and one containing the implementations of those APIs (xercesImpl.jar). Many older Maven POMs still declare a dependency on xerces.jar. At some point in the past, Xerces was also released as xmlParserAPIs.jar, which some older POMs also depend on. The versions assigned to the xml-apis and xercesImpl jars by those who deploy their jars to Maven repositories are often different. For example, xml-apis might be given version 1.3.03 and xercesImpl might be given version 2.8.0, even though both are from Xerces 2.8.0. This is because people often tag the xml-apis jar with the version of the specifications that it implements. There is a very nice, but incomplete breakdown of this here. To complicate matters, Xerces is the XML parser used in the reference implementation of the Java API for XML Processing (JAXP), included in the JRE. The implementation classes a
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up org.apache.xerces.jaxp.SAXParserFactoryImpl not http://stackoverflow.com/questions/11677572/dealing-with-xerces-hell-in-java-maven found when importing Gears API in GWT up vote 7 down vote favorite I've created a GWT project using Eclipse which was working perfectly (I was able to run it in both Hosted Mode and on Google App Engine) until I tried to import the Gears API for Google Web Toolkit. After adding the following line to my java source file: import com.google.gwt.gears.client.geolocation.Geolocation; I http://stackoverflow.com/questions/1016286/org-apache-xerces-jaxp-saxparserfactoryimpl-not-found-when-importing-gears-api-i get the following error when I try to compile: 19-Jun-2009 3:36:09 AM com.google.apphosting.utils.jetty.JettyLogger warn WARNING: failed com.google.apphosting.utils.jetty.DevAppEngineWebAppContext@1c7d682{/,C:\Documents and Settings\Geoff Denning\workspace\TaskPath\war} javax.xml.parsers.FactoryConfigurationError: Provider org.apache.xerces.jaxp.SAXParserFactoryImpl not found I've already added the gwt-gears.jar file to my \war\WEB-INF\lib directory, and I've referenced it in Eclipse as follows: I've even opened the gwt-gears.jar file and confirmed that org/apache/xerces/jaxp/SAXParserFactoryImpl.class does exist. Can anyone give me any pointers as to why I'm getting the above error? java gwt xerces share|improve this question asked Jun 19 '09 at 3:56 Templar 2,91972536 1 what version of java are you using? Have you recently changed the version from 1.4 to 1.5 ? –Rahul Jun 19 '09 at 4:18 I am using jre1.5.0_06. –Templar Jun 19 '09 at 4:58 add a comment| 6 Answers 6 active oldest votes up vote 5 down vote Check that Xerces exists in: $JAVA_HOME/lib/endorsed Sounds like a Java 5 issue. Also check the Java system property for: javax.xml.parsers.SAXParserFactory It should be: org.apache.xerces.jaxp.SAXParserFactoryImpl If not then that's your issue, make sure you set the system property. share|improve this answer answered Jun 19 '09 at 4:36 Jon 34.3k23100136 add a comment| up vote 2 down v
Your Computer "Hello Apache" Critical Xerces Packages Xerces Java DOM In-depth Java Xerces SAX In-depth ⎙ Print + Share This Page 1 of 6 Next > Get http://www.informit.com/articles/article.aspx?p=31349&seqNum=2 a tour of the emerging world of Apache, specifically the Xerces Java XML parser. This chapter introduces the Xerces download component, its integrated parser, documentation, and samples. Then it focuses on the critical packages and shows how to construct working applications, using both the Document Object Model (DOM) and Simple API for XML (SAX) models. This chapter is from the book error package This chapter is from the book XML Schema Complete Reference, The Learn More Buy This chapter is from the book This chapter is from the book XML Schema Complete Reference, The Learn More Buy This chapter is a tour through the emerging world of Apache, specifically the Xerces Java XML parser. The chapter introduces the Xerces download component, its integrated parser, documentation, error package xerces-2 and samples. Then it focuses on the critical packages and shows how to construct working applications, using both the Document Object Model (DOM) and Simple API for XML (SAX) models. You may use these samples as frameworks for further development. Along the way, the chapter introduces every important class and interface, so that by the end of the chapter, you will be adept in the construction of XML applications. We assume that you have at least an intermediate comfort level with Java, that you understand the concepts of paths and classpaths, that you have utilized Java packages, classes, and interfaces, and that you have experience writing, compiling, and running applications. If you meet these requirements, and are comfortable with previous chapters, then hop on board. 17.1 Apache Background Apache is a story that warms the hearts of Internet traditionalists. Sometimes confused with IBM (thanks to the influential corporation's mass acceptance of its software), Apache is actually a pure not-for-profit, open-source endeavor. Formed in 1995 by a half dozen Webmasters to consciously develop "a cog for the Internet," Apache emerged as the most widely accepted HTTP