title: Correct the classpath of your application so that it contains a single, compatible version of javax.persistence.Table
body: <pre><code>***************************
  APPLICATION FAILED TO START
  ***************************
  
  Description:
  
  An attempt was made to call a method that does not exist. The attempt was made from the following location:
  
      org.hibernate.cfg.annotations.EntityBinder.processComplementaryTableDefinitions(EntityBinder.java:1236)
  
  The following method did not exist:
  
      javax.persistence.Table.indexes()[Ljavax/persistence/Index;
  
  The method''s class, javax.persistence.Table, is available from the following locations:
  
      jar:file:/C:/jboss-eap-6.4.0/jboss-eap-6.4/modules/system/layers/base/javax/persistence/api/main/hibernate-jpa-2.0-api-1.0.1.Final-redhat-3.jar!/javax/persistence/Table.class
      vfs:/C:/jboss-eap-6.4.0/jboss-eap-6.4/bin/content/bancaws.war/WEB-INF/lib/javax.persistence-api-2.2.jar/javax/persistence/Table.class
  
  It was loaded from the following location:
  
      jar:file:/C:/jboss-eap-6.4.0/jboss-eap-6.4/modules/system/layers/base/javax/persistence/api/main/hibernate-jpa-2.0-api-1.0.1.Final-redhat-3.jar!/
  
  
  Action:
  
  Correct the classpath of your application so that it contains a single, compatible version of javax.persistence.Table
  </code></pre>
  <p>Please help to resolve the above the issue.</p>
  <pre class="lang-xml prettyprint-override"><code>
  &lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
  &lt;project xmlns=&quot;http://maven.apache.org/POM/4.0.0&quot; xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot; xsi:schemaLocation=&quot;http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd&quot;&gt;
     &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
     &lt;groupId&gt;xxxx&lt;/groupId&gt;
     &lt;artifactId&gt;xxxx&lt;/artifactId&gt;
     &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
     &lt;packaging&gt;war&lt;/packaging&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.7.RELEASE&lt;/version&gt;
     &lt;/parent&gt;
     &lt;dependencies&gt;
        &lt;dependency&gt;
           &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
           &lt;artifactId&gt;spring-boot-starter-data-jpa&lt;/artifactId&gt;
           &lt;version&gt;2.1.7.RELEASE&lt;/version&gt;
        &lt;/dependency&gt;
        &lt;dependency&gt;
           &lt;groupId&gt;org.hibernate.javax.persistence&lt;/groupId&gt;
           &lt;artifactId&gt;hibernate-jpa-2.1-api&lt;/artifactId&gt;
           &lt;version&gt;1.0.0.Final&lt;/version&gt;
        &lt;/dependency&gt;
        &lt;!-- testing 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;exclusions&gt;
              &lt;exclusion&gt;
                 &lt;groupId&gt;junit&lt;/groupId&gt;
                 &lt;artifactId&gt;junit&lt;/artifactId&gt;
              &lt;/exclusion&gt;
           &lt;/exclusions&gt;
        &lt;/dependency&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;5.3.2&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;5.3.2&lt;/version&gt;
           &lt;scope&gt;test&lt;/scope&gt;
        &lt;/dependency&gt;
        &lt;!--Oracle JDBC --&gt;
        &lt;dependency&gt;
           &lt;groupId&gt;com.oracle&lt;/groupId&gt;
           &lt;artifactId&gt;ojdbc8&lt;/artifactId&gt;
           &lt;version&gt;18.3&lt;/version&gt;
        &lt;/dependency&gt;
        &lt;!-- HikariCP connection pool --&gt;
        &lt;dependency&gt;
           &lt;groupId&gt;com.zaxxer&lt;/groupId&gt;
           &lt;artifactId&gt;HikariCP&lt;/artifactId&gt;
           &lt;version&gt;2.6.0&lt;/version&gt;
        &lt;/dependency&gt;
        &lt;!-- https://mvnrepository.com/artifact/org.springframework/spring-web --&gt;
        &lt;dependency&gt;
           &lt;groupId&gt;org.springframework&lt;/groupId&gt;
           &lt;artifactId&gt;spring-web&lt;/artifactId&gt;
           &lt;version&gt;5.1.9.RELEASE&lt;/version&gt;
        &lt;/dependency&gt;
        &lt;dependency&gt;
           &lt;groupId&gt;javax&lt;/groupId&gt;
           &lt;artifactId&gt;javaee-api&lt;/artifactId&gt;
           &lt;version&gt;8.0&lt;/version&gt;
           &lt;scope&gt;provided&lt;/scope&gt;
        &lt;/dependency&gt;
     &lt;/dependencies&gt;
     &lt;build&gt;
        &lt;finalName&gt;xxxx&lt;/finalName&gt;
        &lt;plugins&gt;
           &lt;plugin&gt;
              &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
              &lt;version&gt;3.8.0&lt;/version&gt;
              &lt;configuration&gt;
                 &lt;source&gt;1.8&lt;/source&gt;
                 &lt;target&gt;1.8&lt;/target&gt;
              &lt;/configuration&gt;
           &lt;/plugin&gt;
           &lt;plugin&gt;
              &lt;artifactId&gt;maven-war-plugin&lt;/artifactId&gt;
              &lt;version&gt;3.2.1&lt;/version&gt;
              &lt;configuration&gt;
                 &lt;warSourceDirectory&gt;WebContent&lt;/warSourceDirectory&gt;
              &lt;/configuration&gt;
           &lt;/plugin&gt;
           &lt;plugin&gt;
              &lt;artifactId&gt;maven-surefire-plugin&lt;/artifactId&gt;
              &lt;version&gt;2.22.0&lt;/version&gt;
           &lt;/plugin&gt;
        &lt;/plugins&gt;
     &lt;/build&gt;
  &lt;/project&gt;
  </code></pre>