title: "Table not found" exception with hibernate
body: <p>I'm getting the following exception with hibernate:</p>
  
  <pre><code>10:18:14,795 INFO  [SchemaValidator] Running schema validator
  
  10:18:14,795 INFO  [SchemaValidator] fetching database metadata
  
  10:18:16,958 INFO  [DatabaseMetadata] table not found: DUMMY_TABLE
  
  10:18:16,963 ERROR [AbstractKernelController] Error installing to Start: name=persistence.unit:unitName=bkoMdw-ear.ear/bkoMdw-ejb.jar#bkoMdw state=Create
  javax.persistence.PersistenceException: [PersistenceUnit: bkoMdw] Unable to build EntityManagerFactory
  
  (...)
  
  Caused by: org.hibernate.HibernateException: Missing table: DUMMY_TABLE
       at org.hibernate.cfg.Configuration.validateSchema(Configuration.java:1127)
       at org.hibernate.tool.hbm2ddl.SchemaValidator.validate(SchemaValidator.java:139)
       at org.hibernate.impl.SessionFactoryImpl.&lt;init&gt;(SessionFactoryImpl.java:359)
       at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1341)
       at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:867)
       at 
  
  org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:669)
  </code></pre>
  
  <p>The problem is that the table exists and the datasource file is correctly configured.</p>
  
  <p>What I'm missing? Any advise to troubleshoot this?</p>
  
  <p>Thanks in advance!</p>