2

I'm using the Eclipse plugin for Google App Engine and I'm having a strange issue with a Xerces dependency. On of my classes depends on the Apache Xerces JAR which I have added to the project's classpath. This however, triggers an error when starting the Jetty app server:

WARNING: failed 
com.google.apphosting.utils.jetty.DevAppEngineWebAppContext@6efde050 
{/,/Users/lenni/dev/gate/war} 
javax.xml.parsers.FactoryConfigurationError: Provider 
org.apache.xerces.jaxp.SAXParserFactoryImpl not found 

When I remove the xercesImpl.jar from my classpath jetty starts fine, however then my classes don't compile anymore since the dependency is missing.

This very much sound like this issue, however I tried switching to JRE 1.6 and still no joy.

Community
  • 1
  • 1
Leonard Ehrenfried
  • 1,573
  • 3
  • 20
  • 34

2 Answers2

1

This appears to relate to Issue 1367 in the GAE/J buglist. Comments 15, 16, and 17 seem to indicate a workaround.

jsight
  • 27,819
  • 25
  • 107
  • 140
  • Thanks for your reply but I the problem is not with the *lack* of the Xerces lib but with its presence on the classpath! – Leonard Ehrenfried Jul 29 '09 at 15:30
  • The comments on the bug mentioned a similar problem to yours if some of the xerces APIs were missing (ie, xercesImpl.jar, but not some of the other jars). It isn't clear from your question if you are copying them all. – jsight Jul 30 '09 at 04:39
0

Take a look at Trouble with Selenium (XercesImpl) and Google App Engine. I had a similar problem with GAE (SAXParserFactoyImpl not found) and solved it by;

  1. Importing the jar to war/WEB-INF/lib
  2. Adding the jar to the build path
Community
  • 1
  • 1