找不到扩展点的架构

时间:2011-01-14 17:38:26

标签: eclipse eclipse-plugin eclipse-wtp

我想在我的项目扩展点“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”。罐“

解压缩它们没有任何问题,架构就在那里并且看起来没问题。

我收到的错误消息与提交者所说的this Eclipse bug相同:

实际上,底层问题是org.eclipse.equinox.registry插件 不会将架构文件夹导出到源包。我会提交一个bug 它们。

我试图卸载webtools插件并重新安装它们没有任何结果。

编辑:我已经通过插件注册表手动启动并诊断了wst.xsl.ui插件没有和问题,所以似乎没有依赖问题。

我的事情已经不多了......

1 个答案:

答案 0 :(得分:3)

我建议将wst.ui包作为源项目导入工作区。您可以通过以下方式执行此操作:文件 - >导入... - >插件和碎片。选择org.eclipse.wst.xsl.ui并选择包含源文件夹的项目。 schema目录应该随之导入,但如果不是,则可能需要手动导入(即从zip文件复制并粘贴)。

这将确保exsd可用。

相关问题