我想为我的项目添加一个扩展,扩展点“org.eclipse.wst.xsl.ui.contentAssistProcessor”,但我无法加载架构。我不断收到一条错误消息:
JAR entry /schema/contentAssistProcessor.exsd not found in C:\Program Files (x86)\eclipse-rcp-helios-SR1-win32\eclipse\plugins\org.eclipse.wst.xsl.ui.source_1.1.1.v201009091745.jar
java.io.FileNotFoundException: JAR entry /schema/contentAssistProcessor.exsd not found in C:\Program Files (x86)\eclipse-rcp-helios-SR1-win32\eclipse\plugins\org.eclipse.wst.xsl.ui.source_1.1.1.v201009091745.jar
at sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:122)
at sun.net.www.protocol.jar.JarURLConnection.getInputStream(JarURLConnection.java:132)
at java.net.URL.openStream(URL.java:1010)
at org.eclipse.pde.internal.core.util.SchemaUtil.getInputStream(SchemaUtil.java:40)
at org.eclipse.pde.internal.core.util.SchemaUtil.parseURL(SchemaUtil.java:46)
at org.eclipse.pde.internal.ui.wizards.extension.PointSelectionPage.handlePointSelection(PointSelectionPage.java:524)
at org.eclipse.pde.internal.ui.wizards.extension.PointSelectionPage.selectionChanged(PointSelectionPage.java:489)
at org.eclipse.jface.viewers.Viewer$2.run(Viewer.java:162)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
(snip)
如果我想查看扩展点描述,我会看到一个页面显示:
Identifier: null.null
Description:
Configuration Markup:
该插件已添加到我的依赖项中(由 eclipse 自动完成)并添加到我的项目构建路径中。
该插件已从更新站点http://download.eclipse.org/webtools/repository/helios/安装,最新版本 3.2.2
当我查看我的插件目录时,我可以看到“org.eclipse.wst.xsl.ui.source_1.1.1.v201009091745.jar”和“org.eclipse.wst.xsl.ui_1.1.1.v201009091745.jar”
解压缩它们没有任何问题,架构在那里并且看起来不错。
我收到的错误消息与提交者所说的这个 Eclipse 错误相同,原因是:
实际上,根本问题是 org.eclipse.equinox.registry 插件没有将模式文件夹导出到源包。我会为他们提交一个错误。
我试图卸载 webtools 插件并重新安装它们,但没有任何结果。
编辑:我已经通过插件注册表手动启动并诊断了 wst.xsl.ui 插件,没有问题,所以似乎没有依赖问题。
我已经没有东西可以尝试了...