Xpand 上的解析器错误:SAXParserFactoryImpl 无法转换为 SAXParserFactory
当我使用 Xpand 构建应用程序时,出现此对话框。
“在以下过程中发生内部错误:“分析项目 my.generator.project 的可访问 EMF 元模型”。 org.apache.xerces.jaxp.SAXParserFactoryImpl 无法转换为 javax.xml.parsers.SAXParserFactory"
解决方案是什么?
I am getting this dialog box when i am building my application with Xpand.
"An internal error occurred during: "Analyzing accessible EMF metamodels for project my.generator.project".
org.apache.xerces.jaxp.SAXParserFactoryImpl cannot be cast to javax.xml.parsers.SAXParserFactory"
What is the solution for it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我遇到了同样的问题,在这里描述了我的解决方案。
基本上,当当前类路径层次结构中有多个 SAX 解析器时,就会发生这种情况;例如,调用插件需要一个 SAXParser,但它已经在另一个插件中创建了,无法通过类路径访问。
解决方案:您的环境中可能有两个 Xerces 插件。使用插件注册表(窗口 > 显示视图 > 插件开发 > 插件注册表)找出哪些插件导致了此问题。就我而言,我有两个插件,它们都提供了
xerces.jar
。I had the same problem and described my solution here.
Basically, this occurs when is more than one SAX parser in your current classpath heirarchy; e.g. the calling plugin requires a SAXParser but one has already been created in another plugin which cannot be accessed through the classpath.
Solution: You may have two Xerces plugins in your environment. Use the Plug-in Registry (Window > Show View > Plug-in Development > Plug-in Registry) to find out which plugins are causing this. In my case, I had two plugins which both contributed a
xerces.jar
.