【问题标题】:Strange Eclipse JRebel error奇怪的 Eclipse JRebel 错误
【发布时间】:2016-12-15 16:11:59
【问题描述】:

我从 Eclipse 收到一个奇怪的错误,抱怨我的 rebel.xml。我从我的工作区中删除了该项目并从存储库中重新检查它,现在出现此错误。

<?xml version="1.0" encoding="UTF-8"?>
<application xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.zeroturnaround.com" xsi:schemaLocation="http://www.zeroturnaround.com http://www.zeroturnaround.com/alderaan/rebel-2_0.xsd">

<classpath>
    <dir name="C:/Eclipse/workspace/MyProject/build/classes">
    </dir>
</classpath>

<web>
    <link target="/">
        <dir name="C:/Eclipse_AIJ3/workspace/MyProject/WebContent">
        </dir>
    </link>
</web>

【问题讨论】:

标签: eclipse jrebel


【解决方案1】:

我最终关闭了项目,重新打开,然后清理它以解决此问题。结案。

【讨论】:

  • 这对我的一个同事不起作用,在关闭、重新打开项目和清理后仍然存在完全相同的问题......
【解决方案2】:

关闭和重新打开项目对我也不起作用。我发现,XSD 文件的 URL 发生了变化。 (请参阅http://manuals.zeroturnaround.com/jrebel/standalone/config.html 的 JRebel 在线文档。)

因此,将 rebel.xml 文件的 xsi:schemaLocation 属性更改为 xsi:schemaLocation="http://www.zeroturnaround.com http://update.zeroturnaround.com/jrebel/rebel-2_1.xsd"。这将修复验证错误。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2012-01-14
    • 2013-11-19
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多