title: javax.persistence.spi.PersistenceUnitInfo.getSharedCacheMode() Ljavax/persistence/SharedCacheMode;
body: <p>I have persistence-api-1.0.2,hibernate-jpa-2.0-api-1.0.1.Final and other related jars in the lib directory. However, when I am deploying war file, I am getting the following error</p>
  
  <pre><code>nested exception is java.lang.NoSuchMethodError:
  javax.persistence.spi.PersistenceUnitInfo.getSharedCacheMode()
  Ljavax/persistence/SharedCacheMode; 
  </code></pre>
  
  <p>How can I resolve this issue?</p>
  
  <p>Update</p>
  
  <p>Jars in lib folder</p>
  
  <p><img src="https://i.stack.imgur.com/xcZJ8.png" alt="enter image description here"></p>