title: The name of the driver class for the datasource is missing (Netbeans+ PostgreSql + Glassfish)
body: <p>I'm trying to develop an EJB application using Netbeans 8 on a Postgres 9.2 db and Glassfish 4 server.</p>
  
  <p>Once I created connection pool and JDBC resources in the glassfish admin panel, I'm not able to add entities using the datasource. Netbeans still giving me an error: </p>
  
  <blockquote>
    <p>The name of the driver class for the datasource is missing</p>
  </blockquote>
  
  <p>I've already tried adding libraries to the project. I copied postgresql-9.2-1002.jdbc4.jar and postgresql-9.2-1002.jdbc3.jar files in 
  <code>C:\Program Files\glassfish-4.0\glassfish\domains\domain1\lib folder</code>. </p>
  
  <p>Screenshot: <a href="http://imageshack.com/a/img843/6884/w3ko.png" rel="noreferrer">http://imageshack.com/a/img843/6884/w3ko.png</a></p>
  
  <p>If I create entities using a connection created before(in NB Services/Databases), it works, but result set after any query is empty. Any idea?</p>
  
  <p>Here the connection pool I created: <a href="http://imageshack.com/a/img838/8286/bkw8.png" rel="noreferrer">http://imageshack.com/a/img838/8286/bkw8.png</a></p>
  
  <p>This is my persistence.xml:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;persistence version="2.1" xmlns="http://xmlns.jcp.org/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/persistence http://xmlns.jcp.org/xml/ns/persistence/persistence_2_1.xsd"&gt;
    &lt;persistence-unit name="Esempio-ejbPU" transaction-type="JTA"&gt;
      &lt;jta-data-source&gt;try_&lt;/jta-data-source&gt;
      &lt;exclude-unlisted-classes&gt;false&lt;/exclude-unlisted-classes&gt;
      &lt;properties&gt;
        &lt;property name="javax.persistence.schema-generation.database.action" value="create"/&gt;
      &lt;/properties&gt;
    &lt;/persistence-unit&gt;
  &lt;/persistence&gt;
  </code></pre>