本文介绍了GAE项目类路径上的Xerces JAR导致“SAXParserFactoryImpl not found”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Google App Engine的Eclipse插件,而我的Xerces依赖关系出现了一个奇怪的问题。
我的类依赖于我添加到项目类路径的Apache Xerces JAR。但是,启动Jetty应用服务器时会触发错误:

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 

当我从类路径中删除xercesImpl.jar时,jetty开始罚款,然而我的类不要再编译了,因为依赖缺失。

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.

这个非常好听的这个,但是我尝试切换到JRE 1.6,仍然没有喜悦。

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

推荐答案

这似乎与在GAE / J buglist中。评论15,16和17似乎表明了解决方法。

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

这篇关于GAE项目类路径上的Xerces JAR导致“SAXParserFactoryImpl not found”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-23 16:39