title: Spring-boot jersey maven failed to run war file
body: <p>We are creating a spring-boot jersey application. 
  Now we want to create executable war file. 
  The problem is the application runs fine when I run it with </p>
  
  <pre><code>  mvn spring-boot:run 
  </code></pre>
  
  <p>But when I try to package it to war and run it with java -jar ABD.war
  its giving the following error </p>
  
  <pre><code> Caused by: java.io.FileNotFoundException:       /Users/ABC/ABD-0.0.1-SNAPSHOT.war!/WEB-INF/classes (No such file or directory)
  
  
   Caused by: org.glassfish.jersey.server.internal.scanning.ResourceFinderException:
  </code></pre>
  
  <p>Here are the part of pom.xml I'm using , </p>
  
  <pre><code>&lt;packaging&gt;war&lt;/packaging&gt;
  .
  .
  .
  
   &lt;properties&gt;
          &lt;project.build.sourceEncoding&gt;UTF-8&lt;/project.build.sourceEncoding&gt;
  
  
          &lt;org.slf4j.version&gt;1.7.7&lt;/org.slf4j.version&gt;
  
          &lt;maven-compiler-plugin.version&gt;3.1&lt;/maven-compiler-plugin.version&gt;
  
          &lt;java.version&gt;1.8&lt;/java.version&gt;
  
  
    &lt;/properties&gt;
  
  .
  .
  .
  .
  .
  &lt;build&gt;
      &lt;plugins&gt;
          &lt;plugin&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-maven-plugin&lt;/artifactId&gt;
          &lt;/plugin&gt;
      &lt;/plugins&gt;
  &lt;/build&gt;
  </code></pre>
  
  <p>Although when I unpack the war file I can see the WEB-INF/classes folder is there. </p>