title: Configure Jndi names in Netbeans 8
body: <p>In <code>Netbeans 7.4</code> I used to create a <code>Persistence Unit</code> by choosing a JNDI name and then a database connection. In <code>Netbeans 8</code> I repeated the same process and started to give the old error </p>
  
  <blockquote>
    <p>Invalid resource : jdbc/something__pm</p>
  </blockquote>
  
  <p>I also created a JDB resource with a new connection pool and the problem still remain. My way to solve this mistery was to delete line jdbc/something from persistence source. 
  Is there any problem with this solution?</p>