title: Persistence.xml for JBoss AS 7.1.1
body: <p>I have a client and server setup to run with JBoss AS 7.1.1 and I have a question about my persistence.xml. Currently it looks like this: </p>
  
  <pre><code>&lt;persistence&gt;
      &lt;persistence-unit name="GrahamsProj"&gt;
          &lt;provider&gt;org.hibernate.ejb.HibernatePersistence&lt;/provider&gt;
          &lt;jta-data-source&gt;java:jboss/datasources/WorkCenterDS&lt;/jta-data-source&gt;
          &lt;properties&gt;
              &lt;property name="hibernate.dialect" value="org.hibernate.dialect.HSQLDialect"/&gt;
              &lt;property name="hibernate.hbm2ddl.auto" value="create-drop"/&gt;
              &lt;property name="hibernate.connection.driver_class" value="oracle.jdbc.OracleDriver"/&gt;
          &lt;/properties&gt;
      &lt;/persistence-unit&gt;
  &lt;/persistence&gt;
  </code></pre>
  
  <p>I have persistence.xml in the META-INF folder of my server. I must be missing some properties though because I'm getting this error when I try to query the database I'm connected to.</p>
  
  <pre><code>11:35:07,840 ERROR [org.jboss.ejb3.invocation] (EJB default - 1) JBAS014134: 
  EJB Invocation failed on component GrahamsProjBean for method public abstract 
  void grahamsprojserver.session.interfaces.GrahamsProjBeanRemote.test(): javax.ejb.EJB
  Exception: java.lang.IllegalArgumentException: org.hibernate.hql.internal.ast.QuerySyntaxException: 
  Schemas is not mapped [FROM Schemas s]
  </code></pre>
  
  <p>Is there something I'm missing?</p>