title: A JDBC Driver or DataSource class name must be specified in the ConnectionDriverName property "How to solve it?"
body: <p>overview : This my first tutorial by Websphere 7 Server &amp; JPA 1.0 &amp; EJB &amp; Derby Database.</p>
  
  <blockquote>
    <p>First : My data source name is EJB3BANK &amp; my target database is SHOP .</p>
  </blockquote>
  
  <p>Second : This the <strong>persistence.xml</strong> file</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;persistence version="1.0"
  xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"&gt;
  &lt;persistence-unit name="ShopJPA" transaction-type="JTA"&gt;
      &lt;jta-data-source&gt;jdbc/EJB3BANK&lt;/jta-data-source&gt;
      &lt;non-jta-data-source&gt;jdbc/EJB3BANK&lt;/non-jta-data-source&gt;
      &lt;properties&gt;
          &lt;property name="openjpa.jdbc.Schema" value="SHOP" /&gt;
      &lt;/properties&gt;
  &lt;/persistence-unit&gt;
  &lt;/persistence&gt; 
  </code></pre>
  
  <p>Third : This partial code of <strong>Item</strong> entity Class</p>
  
  <pre><code>@Entity
  @Table(schema = "SHOP", name = "ITEM")
  @NamedQuery(name = "getItem", query = "SELECT i FROM Item i")
  public class Item{...}
  </code></pre>
  
  <p>Fourth : here is the business class <strong> CartBean </strong>here is the start of the problem </p>
  
  <pre><code>@Stateful
  CartBean implements Cart{
  ....
  ....
  public List&lt;Item&gt; getItems() {      
  javax.persistence.Query query = em.createNamedQuery("getItem");//the problem here
  return query.getResultList();
  }
  }
  </code></pre>
  
  <p>and This is the error message: <strong>A JDBC Driver or DataSource class name must be specified in the ConnectionDriverName property</strong>.
  How to resolve this problem?</p>