title: Regarding JPA persistence.xml
body: <p>I am using hibernate JPA on tomcat. I created a connection pool on tomcat and it works fine independently. Now for my JPA to use this connection pool ; I created persistence.xml as follows:</p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  &lt;persistence&gt;
      &lt;persistence-unit name="kids" transaction-type="JTA"&gt;
          &lt;jta-data-source&gt;jdbc/kids&lt;/jta-data-source&gt;
      &lt;/persistence-unit&gt;
  &lt;/persistence&gt;
  </code></pre>
  
  <p>It is giving me following exception:</p>
  
  <p>javax.persistence.PersistenceException: Invalid persistence.xml.
  Error parsing XML (line-1 : column -1): cvc-elt.1: Cannot find the declaration of element 'persistence'.</p>
  
  <p>Please help.</p>