找不到扩展点的架构
我想向我的项目添加扩展,扩展点“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:在 C:\Program Files (x86)\eclipse-rcp-helios-SR1-win32\eclipse\plugins\org.eclipse.wst.xsl.ui 中找不到 JAR 条目 /schema/contentAssistProcessor.exsd。 source_1.1.1.v201009091745.jar
在 sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:122)
在 sun.net.www.protocol.jar.JarURLConnection.getInputStream(JarURLConnection.java:132)
在 java.net.URL.openStream(URL.java:1010)
在 org.eclipse.pde.internal.core.util.SchemaUtil.getInputStream(SchemaUtil.java:40)
在 org.eclipse.pde.internal.core.util.SchemaUtil.parseURL(SchemaUtil.java:46)
在 org.eclipse.pde.internal.ui.wizards.extension.PointSelectionPage.handlePointSelection(PointSelectionPage.java:524)
在 org.eclipse.pde.internal.ui.wizards.extension.PointSelectionPage.selectionChanged(PointSelectionPage.java:489)
在 org.eclipse.jface.viewers.Viewer$2.run(Viewer.java:162)
在 org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
(剪断)
如果我想查看扩展点描述,我会看到一个页面,其中显示:
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 bug 提交者所说的原因是:
实际上,根本问题是 org.eclipse.equinox.registry 插件 不将架构文件夹导出到源包。我将提交一个错误 他们。
我尝试卸载 webtools 插件并重新安装它们,但没有结果。
编辑:我已经通过插件注册表手动启动并诊断了 wst.xsl.ui 插件,没有出现任何问题,因此似乎不存在依赖性问题。
我已经没有什么可以尝试的了...
I want to add an extension to my project, extensionpoint "org.eclipse.wst.xsl.ui.contentAssistProcessor", but I'm unable to load the schema. I keep getting an error message:
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)
If I want to see the extension point description I get a page showing:
Identifier: null.null
Description:
Configuration Markup:
The plugin has been added to my dependencies (done automatically by eclipse) and is added to my project build path.
The plugin has been installed from the update site http://download.eclipse.org/webtools/repository/helios/, latest version 3.2.2
When I look at my plugins directory, I can see both "org.eclipse.wst.xsl.ui.source_1.1.1.v201009091745.jar" and "org.eclipse.wst.xsl.ui_1.1.1.v201009091745.jar"
Unzipping them shows nothing wrong, the schema is there and looks ok.
The error message I'm getting is the same as in the this Eclipse bug which the submitter says is due to:
Actually, the underlying issue is that the org.eclipse.equinox.registry plug-in
does not export the schema folder to the source bundle. I'll file a bug for
them.
I've tried to uninstall the webtools plugins and reinstalling them with no result.
Edit: I have manually started and diagnosed the wst.xsl.ui plugin throught the plugin registry without and problems, so there doesnt seem to be a dependency issue.
I'm running out of things to try...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我建议将 wst.ui 包作为源项目导入到您的工作区中。您可以通过以下方式完成此操作:文件 ->导入...->插件和片段。选择 org.eclipse.wst.xsl.ui 并选择带有源文件夹的项目。
schema
目录应与其一起导入,但如果不是,您可能需要手动导入它(即从 zip 文件复制并粘贴)。这将确保
exsd
可用。I'd recommend importing the wst.ui bundle into your workspace as a source project. You can do this through: File -> Import... -> Plugins and Fragments. Select the org.eclipse.wst.xsl.ui and choose project with source folders. The
schema
directory should be imported along with it, but if it's not, you may need to manually import it (ie- copy and paste from the zip file).This will ensure that the
exsd
is available.