Weblogic + Hibernate Error: javax.persistence.JoinTable.indexes()[Ljavax/persistence/Index
<p>I'm migrating a project that was running on Tomcat 8 to Weblogic.
I am using Hibernate + JPA 2. When I deploy in weblogic got the following error:</p>

<pre><code>Failure occurred in the execution of deployment request with ID "26012160125422" for task "114". Error is: "weblogic.application.ModuleException: java.lang.NoSuchMethodError: javax.persistence.JoinTable.indexes()[Ljavax/persistence/Index;"
</code></pre>

<p>weblogic.application.ModuleException: java.lang.NoSuchMethodError: javax.persistence.JoinTable.indexes()[Ljavax/persistence/Index</p>

<p>Environment <br/>
- Java: jdk1.8.0_60 <br/>
- Weblogic: 12.1.3 <br/>
- hibernate-entitymanager: 4.3.1.Final <br/>
- hibernate-core: 4.3.1.Final <br/>
- javaee-api: 7.0 <br/></p>

<p>pom.xml</p>

<pre><code>&lt;dependencies&gt;
    &lt;dependency&gt;
        &lt;groupId&gt;javax&lt;/groupId&gt;
        &lt;artifactId&gt;javaee-api&lt;/artifactId&gt;
        &lt;version&gt;7.0&lt;/version&gt;
    &lt;/dependency&gt;
    &lt;dependency&gt;
        &lt;groupId&gt;org.hibernate&lt;/groupId&gt;
        &lt;artifactId&gt;hibernate-core&lt;/artifactId&gt;
        &lt;version&gt;4.3.1.Final&lt;/version&gt;
    &lt;/dependency&gt;        
    &lt;dependency&gt;
        &lt;groupId&gt;org.hibernate&lt;/groupId&gt;
        &lt;artifactId&gt;hibernate-entitymanager&lt;/artifactId&gt;
        &lt;version&gt;4.3.1.Final&lt;/version&gt;         
    &lt;/dependency&gt;
    &lt;dependency&gt;
        &lt;groupId&gt;com.microsoft.sqlserver&lt;/groupId&gt;
        &lt;artifactId&gt;sqljdbc4&lt;/artifactId&gt;
        &lt;version&gt;4.0&lt;/version&gt;
    &lt;/dependency&gt;    
&lt;/dependencies&gt;
</code></pre>

<p></p>