title: JPA + Hibernate getting NoSuchFieldError
body: <p>I'm getting strange java.lang.NoSuchFieldError: NONE runtime error which trying to use JPA with Oracle DB. I'm using Maven build. Here are the key files. I'm guessing that there's an issue with some JAR.</p>
  
  <p>pox.xml</p>
  
  <pre><code>    &lt;dependency&gt;
                &lt;groupId&gt;javax.persistence&lt;/groupId&gt;
                &lt;artifactId&gt;persistence-api&lt;/artifactId&gt;
                &lt;version&gt;1.0.2&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;3.5.6-Final&lt;/version&gt;
      &lt;/dependency&gt;
  </code></pre>
  
  <p>persistence.xml</p>
  
  <pre><code>   &lt;persistence-unit name="ifp-test" transaction-type="RESOURCE_LOCAL"&gt;
        &lt;provider&gt;org.hibernate.ejb.HibernatePersistence&lt;/provider&gt;
        &lt;properties&gt;
           &lt;property name="javax.persistence.jdbc.driver" value="oracle.jdbc.OracleDriver"/&gt;
           &lt;property name="javax.persistence.jdbc.user" value="something"/&gt;
           &lt;property name="javax.persistence.jdbc.password" value="something"/&gt;
            &lt;property name="javax.persistence.jdbc.url" value="jdbc:oracle:thin://@something_here"/&gt;
           &lt;property name="hibernate.dialect" value="org.hibernate.dialect.Oracle10gDialect"/&gt;
           &lt;property name="hibernate.hbm2ddl.auto" value="create-drop"/&gt;
        &lt;/properties&gt;
     &lt;/persistence-unit&gt;
  &lt;/persistence&gt;
  </code></pre>
  
  <p>Java Code</p>
  
  <pre><code>    List arr_cust = entityManagerFactory.createEntityManager().createNativeQuery(sql_query).getResultList();
  </code></pre>
  
  <p>Can someone please point in the right direction ?</p>