title: Logback Error Occurred when Migrating to Java 11
body: <p>I'm currently migrating from Java 8 to Java 11. I'm using Spring boot 2.2.7 and Maven 3.6.1. I was able to build my project perfectly without errors but when I tried to start my application, it throws logback errors:</p>
  
  <pre><code>23:54:33,407 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback-test.xml]
  23:54:33,408 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback.groovy]
  23:54:33,408 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Found resource [logback.xml] at [file:/C:/workspace/applicationtest/target/classes/logback.xml]
  23:54:33,410 |-WARN in ch.qos.logback.classic.LoggerContext[default] - Resource [logback.xml] occurs multiple times on the classpath.
  23:54:33,410 |-WARN in ch.qos.logback.classic.LoggerContext[default] - Resource [logback.xml] occurs at [jar:file:/C:/Users/rock/.m2/repository/net/sourceforge/tess4j/tess4j/3.2.1/tess4j-3.2.1.jar!/logback.xml]
  23:54:33,410 |-WARN in ch.qos.logback.classic.LoggerContext[default] - Resource [logback.xml] occurs at [file:/C:/workspace/applicationtest/target/classes/logback.xml]
  23:54:33,509 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - debug attribute not set
  23:54:33,517 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@5:38 - no applicable action for [springProperty], current ElementPath  is [[configuration][springProperty]]
  23:54:33,517 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@7:30 - no applicable action for [springProfile], current ElementPath  is [[configuration][springProfile]]
  23:54:33,517 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@8:58 - no applicable action for [springProperty], current ElementPath  is [[configuration][springProfile][springProperty]]
  </code></pre>
  
  <p>This is the logging part of my pom.xml</p>
  
  <pre><code>&lt;dependency&gt;
      &lt;groupId&gt;ch.qos.logback&lt;/groupId&gt;
      &lt;artifactId&gt;logback-classic&lt;/artifactId&gt;
      &lt;scope&gt;runtime&lt;/scope&gt;
      &lt;optional&gt;true&lt;/optional&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
      &lt;groupId&gt;org.springframework.cloud&lt;/groupId&gt;
      &lt;artifactId&gt;spring-cloud-starter-sleuth&lt;/artifactId&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>It worked fine when I was still using Java 8. I've also tried excluding the logback but still no luck. The jre that I was using was the one generated using jlink.</p>
  
  <p>Any suggestions on how I can resolve this?</p>