title: log4j2 - Root contains an invalid element or attribute
body: <p>Trying to use the sample XML file "Sample 1 / Log4j 2 XML configuration" from the page:</p>
  
  <p><a href="http://logging.apache.org/log4j/2.x/manual/migration.html" rel="nofollow">http://logging.apache.org/log4j/2.x/manual/migration.html</a></p>
  
  <p>but it gives:</p>
  
  <pre><code>2013-09-25 02:22:59,182 ERROR Root contains an invalid element or attribute "AppenderRef"
  </code></pre>
  
  <p>Any ideas?</p>
  
  <p>I am using this dependency in pom.xml,</p>
  
  <pre><code>&lt;dependency&gt;
      &lt;groupId&gt;org.apache.logging.log4j&lt;/groupId&gt;
      &lt;artifactId&gt;log4j-core&lt;/artifactId&gt;
      &lt;version&gt;2.0-beta8&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>and I use this inside the class:</p>
  
  <pre><code>private static final Logger logger = LogManager.getLogger(App.class.getName());
  </code></pre>
  
  <p>and I specify the config file as follows:</p>
  
  <pre><code>java -Dlog4j.configurationFile=log4j2.xml -jar target/project-jar-with-dependencies.jar
  </code></pre>