title: log4j2 configuration file not found
body: <p>I'm struggling to understand what is wrong with this issue.</p>
  
  <p>I have a java project (no Eclipse/Maven) structured like the following:</p>
  
  <pre><code>├── build
  │   ├── classes
  │   │   └── oata
  │   │       └── HelloWorld.class
  │   └── jar
  │       └── HelloWorld.jar
  ├── build.xml
  ├── lib
  │   ├── log4j-api-2.3.jar
  │   └── log4j-core-2.3.jar
  ├── myManifest
  └── src
      ├── log4j2.xml
      └── oata
          └── HelloWorld.java
  </code></pre>
  
  <p>when building with ant I keep getting that the log4j2 config file cannot found.
  I already looked at similar questions and the common issues were regarding that the xml file was not in the classpath, which is not my case. Anyway this is the error:</p>
  
  <pre><code>[java] ERROR StatusLogger No log4j2 configuration file found. Using default configuration: logging only errors to the console.
  </code></pre>
  
  <p>This is my config file</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;Configuration package="oata"
  status="WARN"&gt;
  &lt;Appenders&gt;
      &lt;Console name="Console" target="SYSTEM_OUT"&gt;
          &lt;PatternLayout pattern="%d{HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%n"/&gt;
      &lt;/Console&gt;
  &lt;/Appenders&gt;
  &lt;Loggers&gt;
      &lt;Logger name="oata.HelloWorld" level="trace"&gt;
          &lt;AppenderRef ref="Console"/&gt;
      &lt;/Logger&gt;
      &lt;Root level="trace"&gt;
          &lt;AppenderRef ref="Console"/&gt;
      &lt;/Root&gt;
  &lt;/Loggers&gt;
  &lt;/Configuration&gt;
  </code></pre>