Logback file error: no applicable action for [configuration], current ElementPath is [[configuration][configuration]]
<p>I am trying the configure the logback as below but it throws me this error. The configuration file is as follows:</p>
<pre class="lang-xml prettyprint-override"><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;configuration scan=&quot;true&quot; debug=&quot;false&quot;&gt;
    &lt;appender name=&quot;console&quot; class=&quot;ch.qos.logback.core.ConsoleAppender&quot;&gt;
        &lt;!-- encoders are assigned the type ch.qos.logback.classic.encoder.PatternLayoutEncoder by default --&gt;
        &lt;encoder&gt;
            &lt;pattern&gt;%d{ISO8601} %-5p [%c] %msg%n&lt;/pattern&gt;
        &lt;/encoder&gt;
    &lt;/appender&gt;

    &lt;appender name=&quot;mediator&quot; class=&quot;ch.qos.logback.core.rolling.RollingFileAppender&quot;&gt;
        &lt;!-- encoders are assigned the type ch.qos.logback.classic.encoder.PatternLayoutEncoder by default --&gt;
        &lt;file&gt;logs/mediator/cbs_mediator_rapid.log&lt;/file&gt;
        &lt;append&gt;true&lt;/append&gt;
        &lt;rollingPolicy class=&quot;ch.qos.logback.core.rolling.TimeBasedRollingPolicy&quot;&gt;
            &lt;fileNamePattern&gt;logs/mediator/cbs_mediator_rapid_%d{yyyyMMdd}_%d{HHmmss,aux}_%i.log&lt;/fileNamePattern&gt;
            &lt;TimeBasedFileNamingAndTriggeringPolicy class=&quot;com.bosch.cbs.util.log.StartupSizeAndTimeBasedFNATP&quot;&gt;
                &lt;maxFileSize&gt;250MB&lt;/maxFileSize&gt;
            &lt;/TimeBasedFileNamingAndTriggeringPolicy&gt;
            &lt;maxHistory&gt;30&lt;/maxHistory&gt;
        &lt;/rollingPolicy&gt;
        &lt;encoder&gt;
            &lt;charset&gt;utf-8&lt;/charset&gt;
            &lt;pattern&gt;%d{ISO8601} %-5p [%c] %msg%n&lt;/pattern&gt;
        &lt;/encoder&gt;
    &lt;/appender&gt;

    &lt;appender name=&quot;activemq&quot; class=&quot;ch.qos.logback.core.rolling.RollingFileAppender&quot;&gt;
        &lt;!-- encoders are assigned the type ch.qos.logback.classic.encoder.PatternLayoutEncoder by default --&gt;
        &lt;file&gt;logs/activemq/cbs_mediator_rapid_activemq.log&lt;/file&gt;
        &lt;append&gt;true&lt;/append&gt;
        &lt;rollingPolicy class=&quot;ch.qos.logback.core.rolling.TimeBasedRollingPolicy&quot;&gt;
            &lt;fileNamePattern&gt;logs/activemq/cbs_mediator_rapid_activemq_%d{yyyyMMdd}_%d{HHmmss,aux}_%i.log&lt;/fileNamePattern&gt;
            &lt;TimeBasedFileNamingAndTriggeringPolicy class=&quot;com.bosch.cbs.util.log.StartupSizeAndTimeBasedFNATP&quot;&gt;
                &lt;maxFileSize&gt;250MB&lt;/maxFileSize&gt;
            &lt;/TimeBasedFileNamingAndTriggeringPolicy&gt;
            &lt;maxHistory&gt;30&lt;/maxHistory&gt;
        &lt;/rollingPolicy&gt;
        &lt;encoder&gt;
            &lt;charset&gt;utf-8&lt;/charset&gt;
            &lt;pattern&gt;%d{ISO8601} %-5p [%c] %msg%n&lt;/pattern&gt;
        &lt;/encoder&gt;
    &lt;/appender&gt;

    &lt;logger name=&quot;com.bosch.cbs.mediator&quot; level=&quot;INFO&quot; additivity=&quot;false&quot;&gt;
        &lt;appender-ref ref=&quot;mediator&quot; /&gt;
    &lt;/logger&gt;

    &lt;logger name=&quot;org.apache.activemq&quot; level=&quot;INFO&quot; additivity=&quot;false&quot;&gt;
        &lt;appender-ref ref=&quot;activemq&quot; /&gt;
    &lt;/logger&gt;

    &lt;logger name=&quot;org.apache.activemq.spring&quot; level=&quot;WARN&quot; additivity=&quot;false&quot;&gt;
        &lt;appender-ref ref=&quot;activemq&quot; /&gt;
    &lt;/logger&gt;

    &lt;root level=&quot;INFO&quot;&gt;
        &lt;appender-ref ref=&quot;mediator&quot; /&gt;
    &lt;/root&gt;

&lt;/configuration&gt;
</code></pre>
<p>------so on------</p>
<p>I get the following error.</p>
<pre><code>16:56:48,212 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@2:42 - no applicable action for [configuration], current ElementPath  is [[configuration][configuration]]
16:56:48,212 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@4:74 - no applicable action for [appender], current ElementPath  is [[configuration][configuration][appender]]
16:56:48,213 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@6:18 - no applicable action for [encoder], current ElementPath  is [[configuration][configuration][appender][encoder]]
16:56:48,213 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@7:22 - no applicable action for [pattern], current ElementPath  is [[configuration][configuration][appender][encoder][pattern]]
</code></pre>
<p>I have surfed through stackoverflow and correct a few mistakes in this. But it still does not work. Please help!!</p>