Frage

I use jrebel as a standalone version, not as eclipse plugin, so i made all the rebel.xml files by myself...

with this rebel.xml i got in eclipse the following error at the <configuration> tag

cvc-complex-type.2.4.a: Invalid content was found starting with element 'configuration'. One of '{name, module, deployment, version, "http://www.zeroturnaround.com":classpath, "http:// www.zeroturnaround.com":web, "http://www.zeroturnaround.com":war}' is expected.

<?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">

    <configuration>
      <!--
        root is 2 directoris away from jar/war modules
      -->
      <relativePath>../../</relativePath>

      <rootPath>$${project_name.root}</rootPath>
    </configuration>

    <classpath>
        <dir name="${project_name.root}/datamodel/target/classes" />
    </classpath>

</application>

jRebel is already working, but eclipse shows me errors and this is a little bit annoying! Anyone see the error, or knows how to fix this?

I use: Eclipse Indigo Service Release 2 and jrebel 5.0.1 standalone (jar version)

War es hilfreich?

Lösung

You're mixing maven plugin elements with JRebel elements. rebel.xml should only contain JRebel information otherwise JRebel will ignore elements is does not understand at runtime. The configuration tag is a maven plugin element and should be removed. The eclipse error states the JRebel elements which the schema accepts are name, module, deployment, version, "http://www.zeroturnaround.com":classpath, "http:// www.zeroturnaround.com":web and "http://www.zeroturnaround.com":war. These are the only elements you can use under the root application tag.

HTH -- Simon (ZeroTurnaround Tech Evangelist) @sjmaple

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top