title: SpringBoot 2.x war deployment failing on websphere 8.5.5.11 with jar issues
body: <blockquote>
    <p><strong>Springboot - 2.1.9.RELEASE war deployment to Websphere 8.5.5.11 failing</strong> </p>
  </blockquote>
  
  <p>[5/17/20 1:05:31:181 EDT] 0000007d ecs           W com.ibm.ws.ecs.internal.scan.context.impl.ScannerContextImpl scanJAR unable to open input stream for resource module-info.class in archive WEB-INF/lib-provided/jaxb-api-2.3.1.jar
                                   java.lang.IllegalArgumentException
      at org.objectweb.asm.ClassReader.(Unknown Source)</p>
  
  <p>[5/17/20 1:05:32:185 EDT] 0000007d ecs           W com.ibm.ws.ecs.internal.scan.context.impl.ScannerContextImpl scanJAR unable to open input stream for resource META-INF/versions/9/module-info.class in archive WEB-INF/lib/byte-buddy-1.9.16.jar
                                   java.lang.IllegalArgumentException
      at org.objectweb.asm.ClassReader.(Unknown Source)</p>
  
  <blockquote>
    <p>here is my pom.xml</p>
  </blockquote>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;project xmlns="http://maven.apache.org/POM/4.0.0"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"&gt;
      &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
  
      &lt;!-- https://medium.com/@james.tran/how-to-deploy-spring-boot-2-x-apps-on-websphere-8-5-5-d0b2e257f606 --&gt;
      &lt;parent&gt;
          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
          &lt;artifactId&gt;spring-boot-starter-parent&lt;/artifactId&gt;
          &lt;version&gt;2.1.9.RELEASE&lt;/version&gt;
          &lt;relativePath /&gt; &lt;!-- lookup parent from repository --&gt;
      &lt;/parent&gt;
  
      &lt;groupId&gt;com.lca.dbs&lt;/groupId&gt;
      &lt;artifactId&gt;my-services&lt;/artifactId&gt;
      &lt;version&gt;1.0.0-SNAPSHOT&lt;/version&gt;
  
      &lt;packaging&gt;war&lt;/packaging&gt;
  
      &lt;name&gt;demographic-bridge-services&lt;/name&gt;
      &lt;description&gt;bridge services project&lt;/description&gt;
  
      &lt;properties&gt;
          &lt;java.version&gt;1.8&lt;/java.version&gt;
  
          &lt;apache.common.version&gt;4.0&lt;/apache.common.version&gt;
          &lt;org.mapstruct.version&gt;1.2.0.Final&lt;/org.mapstruct.version&gt;
          &lt;lombok.version&gt;1.16.16&lt;/lombok.version&gt;
  
          &lt;oracle.db.version&gt;12.1.0.2&lt;/oracle.db.version&gt;
  
          &lt;springfox.swagger.version&gt;2.9.2&lt;/springfox.swagger.version&gt;
          &lt;swagger.version&gt;1.5.20&lt;/swagger.version&gt;
  
          &lt;junit.jupiter.version&gt;5.6.0&lt;/junit.jupiter.version&gt;
          &lt;junit.vintage.version&gt;5.6.0&lt;/junit.vintage.version&gt;
          &lt;mockito.version&gt;2.18.3&lt;/mockito.version&gt;
  
          &lt;plugin.maven-compiler.version&gt;3.7.0&lt;/plugin.maven-compiler.version&gt;
  
          &lt;jacoco.ut.destfile&gt;${project.build.directory}/jacoco.exec&lt;/jacoco.ut.destfile&gt;
          &lt;jacoco.ut.datafile&gt;${project.build.directory}/jacoco.exec&lt;/jacoco.ut.datafile&gt;
          &lt;jacoco.ut.reportdir&gt;${project.reporting.outputDirectory}/jacoco-ut&lt;/jacoco.ut.reportdir&gt;
      &lt;/properties&gt;
  
  
      &lt;dependencies&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-starter-web&lt;/artifactId&gt;
              &lt;exclusions&gt;
                  &lt;exclusion&gt;
                      &lt;groupId&gt;org.apache.logging.log4j&lt;/groupId&gt;
                      &lt;artifactId&gt;log4j-api&lt;/artifactId&gt;
                  &lt;/exclusion&gt;
              &lt;/exclusions&gt;
          &lt;/dependency&gt;
  
          &lt;!-- Disabled for websphere --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-starter-tomcat&lt;/artifactId&gt;
              &lt;scope&gt;provided&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-devtools&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.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-starter-actuator&lt;/artifactId&gt;
          &lt;/dependency&gt;
  
          &lt;!-- ORM --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-starter-jdbc&lt;/artifactId&gt;
          &lt;/dependency&gt;
          &lt;!-- &lt;dependency&gt; &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt; &lt;artifactId&gt;spring-boot-starter-data-jdbc&lt;/artifactId&gt; 
              &lt;/dependency&gt; --&gt;
  
          &lt;!-- Oracle DB Dependencies --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.oracle&lt;/groupId&gt;
              &lt;artifactId&gt;ojdbc&lt;/artifactId&gt;
              &lt;version&gt;${oracle.db.version}&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.oracle&lt;/groupId&gt;
              &lt;artifactId&gt;orai18n&lt;/artifactId&gt;
              &lt;version&gt;${oracle.db.version}&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;!-- utils --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;javax.xml.bind&lt;/groupId&gt;
              &lt;artifactId&gt;jaxb-api&lt;/artifactId&gt;
              &lt;scope&gt;provided&lt;/scope&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;javax.servlet&lt;/groupId&gt;
              &lt;artifactId&gt;javax.servlet-api&lt;/artifactId&gt;
              &lt;scope&gt;provided&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.projectlombok&lt;/groupId&gt;
              &lt;artifactId&gt;lombok&lt;/artifactId&gt;
              &lt;version&gt;${lombok.version}&lt;/version&gt;&lt;!--$NO-MVN-MAN-VER$--&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.mapstruct&lt;/groupId&gt;
              &lt;artifactId&gt;mapstruct&lt;/artifactId&gt;
              &lt;version&gt;${org.mapstruct.version}&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.commons&lt;/groupId&gt;
              &lt;artifactId&gt;commons-lang3&lt;/artifactId&gt;
              &lt;!-- &lt;version&gt;3.7&lt;/version&gt; --&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.commons&lt;/groupId&gt;
              &lt;artifactId&gt;commons-collections4&lt;/artifactId&gt;
              &lt;version&gt;${apache.common.version}&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;!-- Swagger UI/Swagger --&gt;
              &lt;dependency&gt;
                  &lt;groupId&gt;io.swagger&lt;/groupId&gt;
                  &lt;artifactId&gt;swagger-annotations&lt;/artifactId&gt;
                  &lt;version&gt;${swagger.version}&lt;/version&gt;
              &lt;/dependency&gt;
              &lt;dependency&gt;
                  &lt;groupId&gt;io.springfox&lt;/groupId&gt;
                  &lt;artifactId&gt;springfox-swagger2&lt;/artifactId&gt;
                  &lt;version&gt;${springfox.swagger.version}&lt;/version&gt;
              &lt;/dependency&gt;
              &lt;dependency&gt;
                  &lt;groupId&gt;io.springfox&lt;/groupId&gt;
                  &lt;artifactId&gt;springfox-swagger-ui&lt;/artifactId&gt;
                  &lt;version&gt;${springfox.swagger.version}&lt;/version&gt;
              &lt;/dependency&gt;
  
              &lt;!--Unit Testing dependencies --&gt;
              &lt;dependency&gt;
                  &lt;groupId&gt;org.junit.jupiter&lt;/groupId&gt;
                  &lt;artifactId&gt;junit-jupiter-api&lt;/artifactId&gt;
                  &lt;version&gt;${junit.jupiter.version}&lt;/version&gt;
                  &lt;scope&gt;test&lt;/scope&gt;
              &lt;/dependency&gt;
              &lt;dependency&gt;
                  &lt;groupId&gt;org.junit.jupiter&lt;/groupId&gt;
                  &lt;artifactId&gt;junit-jupiter-params&lt;/artifactId&gt;
                  &lt;version&gt;${junit.jupiter.version}&lt;/version&gt;
                  &lt;scope&gt;test&lt;/scope&gt;
              &lt;/dependency&gt;
              &lt;dependency&gt;
                  &lt;groupId&gt;org.junit.jupiter&lt;/groupId&gt;
                  &lt;artifactId&gt;junit-jupiter-engine&lt;/artifactId&gt;
                  &lt;version&gt;${junit.jupiter.version}&lt;/version&gt;
                  &lt;scope&gt;test&lt;/scope&gt;
              &lt;/dependency&gt;
              &lt;dependency&gt;
                  &lt;groupId&gt;org.junit.vintage&lt;/groupId&gt;
                  &lt;artifactId&gt;junit-vintage-engine&lt;/artifactId&gt;
                  &lt;version&gt;${junit.vintage.version}&lt;/version&gt;
                  &lt;scope&gt;test&lt;/scope&gt;
              &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-starter-test&lt;/artifactId&gt;
              &lt;scope&gt;test&lt;/scope&gt;
          &lt;/dependency&gt;
      &lt;/dependencies&gt;
  
  
      &lt;build&gt;
          &lt;finalName&gt;${project.artifactId}&lt;/finalName&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;plugin&gt;
                  &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                  &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
                  &lt;configuration&gt;
                      &lt;source&gt;${java.version}&lt;/source&gt;
                      &lt;target&gt;${java.version}&lt;/target&gt;
                      &lt;annotationProcessorPaths&gt;
                          &lt;path&gt;
                              &lt;groupId&gt;org.projectlombok&lt;/groupId&gt;
                              &lt;artifactId&gt;lombok&lt;/artifactId&gt;
                              &lt;version&gt;${lombok.version}&lt;/version&gt;
                          &lt;/path&gt;
                          &lt;path&gt;
                              &lt;groupId&gt;org.mapstruct&lt;/groupId&gt;
                              &lt;artifactId&gt;mapstruct-processor&lt;/artifactId&gt;
                              &lt;version&gt;${org.mapstruct.version}&lt;/version&gt;
                          &lt;/path&gt;
                      &lt;/annotationProcessorPaths&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
  
          &lt;/plugins&gt;
      &lt;/build&gt;
  &lt;/project&gt;
  </code></pre>